Skip to content

Commit

Permalink
Add Consent Backbone Elements to TransformSupportServices (#301)
Browse files Browse the repository at this point in the history
* Add Consent backbone elements

* Update Consent backbone elements

* Remove wildcard imports

* Clean up wildcard import

* Import org.hl7.fhir.r4.model.Consent
  • Loading branch information
qiarie authored Oct 17, 2024
1 parent 008a34a commit f82bde0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import org.hl7.fhir.r4.model.AdverseEvent
import org.hl7.fhir.r4.model.Base
import org.hl7.fhir.r4.model.CarePlan
import org.hl7.fhir.r4.model.Coding
import org.hl7.fhir.r4.model.Consent
import org.hl7.fhir.r4.model.Encounter
import org.hl7.fhir.r4.model.EpisodeOfCare
import org.hl7.fhir.r4.model.Group
Expand Down Expand Up @@ -83,6 +84,11 @@ class TransformSupportServices(val simpleWorkerContext: SimpleWorkerContext) :
AdverseEvent.AdverseEventSuspectEntityCausalityComponent()
"Location_Position" -> Location.LocationPositionComponent()
"List_Entry" -> ListResource.ListEntryComponent()
"Consent_Policy" -> Consent.ConsentPolicyComponent()
"Consent_Verification" -> Consent.ConsentVerificationComponent()
"Consent_Provision" -> Consent.provisionComponent()
"Consent_ProvisionActor" -> Consent.provisionActorComponent()
"Consent_ProvisionData" -> Consent.provisionDataComponent()
else -> ResourceFactory.createResourceOrType(name)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import org.hl7.fhir.r4.model.AdverseEvent
import org.hl7.fhir.r4.model.Base
import org.hl7.fhir.r4.model.CarePlan
import org.hl7.fhir.r4.model.Coding
import org.hl7.fhir.r4.model.Consent
import org.hl7.fhir.r4.model.Encounter
import org.hl7.fhir.r4.model.EpisodeOfCare
import org.hl7.fhir.r4.model.Group
Expand Down Expand Up @@ -70,6 +71,11 @@ class TransformSupportServices @Inject constructor(val simpleWorkerContext: Simp
AdverseEvent.AdverseEventSuspectEntityCausalityComponent()
"Location_Position" -> Location.LocationPositionComponent()
"List_Entry" -> ListResource.ListEntryComponent()
"Consent_Policy" -> Consent.ConsentPolicyComponent()
"Consent_Verification" -> Consent.ConsentVerificationComponent()
"Consent_Provision" -> Consent.provisionComponent()
"Consent_ProvisionActor" -> Consent.provisionActorComponent()
"Consent_ProvisionData" -> Consent.provisionDataComponent()
else -> ResourceFactory.createResourceOrType(name)
}
}
Expand Down

0 comments on commit f82bde0

Please sign in to comment.