-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
application dev config changed with two profiles dev-r4 & dev-r5, Sup…
…port for summary improved with custom organization/ author === Tenant, Summary restrained to Immunization, now supported with R5
- Loading branch information
Showing
13 changed files
with
187 additions
and
114 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/main/java/org/immregistries/iis/kernal/fhir/ips/IpsGenerationStrategyR4.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package org.immregistries.iis.kernal.fhir.ips; | ||
|
||
import ca.uhn.fhir.jpa.ips.api.SectionRegistry; | ||
import ca.uhn.fhir.jpa.ips.strategy.DefaultIpsGenerationStrategy; | ||
import org.hl7.fhir.instance.model.api.IBaseResource; | ||
import org.hl7.fhir.r4.model.Address; | ||
import org.hl7.fhir.r4.model.IdType; | ||
import org.hl7.fhir.r4.model.Organization; | ||
import org.immregistries.iis.kernal.fhir.security.ServletHelper; | ||
import org.immregistries.iis.kernal.mapping.forR4.OrganizationMapperR4; | ||
import org.immregistries.iis.kernal.model.Tenant; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
|
||
public class IpsGenerationStrategyR4 extends DefaultIpsGenerationStrategy { | ||
|
||
@Autowired | ||
OrganizationMapperR4 organizationMapper; | ||
|
||
/** | ||
* Constructor | ||
*/ | ||
public IpsGenerationStrategyR4() { | ||
super(); | ||
this.setSectionRegistry(new SectionRegistryR4()); | ||
} | ||
|
||
@Override | ||
public IBaseResource createAuthor() { | ||
Tenant tenant = ServletHelper.getTenant(); | ||
|
||
Organization organization = organizationMapper.getFhirResource(tenant); | ||
return organization; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/main/java/org/immregistries/iis/kernal/fhir/ips/SectionRegistryR4.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.immregistries.iis.kernal.fhir.ips; | ||
|
||
import ca.uhn.fhir.jpa.ips.api.SectionRegistry; | ||
|
||
public class SectionRegistryR4 extends SectionRegistry { | ||
|
||
@Override | ||
/** | ||
* Add the various sections to the registry in order. overridden for | ||
* customization. | ||
*/ | ||
protected void addSections() { | ||
// addSectionAllergyIntolerance(); | ||
// addSectionMedicationSummary(); | ||
// addSectionProblemList(); | ||
addSectionImmunizations(); | ||
// addSectionProcedures(); | ||
// addSectionMedicalDevices(); | ||
// addSectionDiagnosticResults(); | ||
// addSectionVitalSigns(); | ||
// addSectionPregnancy(); | ||
// addSectionSocialHistory(); | ||
// addSectionIllnessHistory(); | ||
// addSectionFunctionalStatus(); | ||
// addSectionPlanOfCare(); | ||
// addSectionAdvanceDirectives(); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/org/immregistries/iis/kernal/fhir/ips/SectionRegistryR5.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.immregistries.iis.kernal.fhir.ips; | ||
|
||
import ca.uhn.fhir.jpa.ips.api.SectionRegistry; | ||
|
||
public class SectionRegistryR5 extends SectionRegistry { | ||
|
||
@Override | ||
/** | ||
* Add the various sections to the registry in order. overridden for | ||
* customization. | ||
*/ | ||
protected void addSections() { | ||
// addSectionAllergyIntolerance(); | ||
// addSectionMedicationSummary(); | ||
// addSectionProblemList(); | ||
addSectionImmunizations(); | ||
// addSectionProcedures(); | ||
// addSectionMedicalDevices(); | ||
// addSectionDiagnosticResults(); | ||
// addSectionVitalSigns(); | ||
// addSectionPregnancy(); | ||
// addSectionSocialHistory(); | ||
// addSectionIllnessHistory(); | ||
// addSectionFunctionalStatus(); | ||
// addSectionPlanOfCare(); | ||
// addSectionAdvanceDirectives(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.