Skip to content

Commit

Permalink
Merge pull request #29 from jembi/hpv-bundles
Browse files Browse the repository at this point in the history
hpv-bundles
  • Loading branch information
rmrlangford authored Feb 22, 2024
2 parents ac8179b + a655053 commit 69bf327
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
42 changes: 42 additions & 0 deletions input/fsh/bundles/hpv-full-bundle-example.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Instance: HPVFullBundleExample
InstanceOf: HPVFullBundle
Usage: #example
Title: "HPV Bundle"
Description: "A bundle containing all HPV FHIR resources."
* type = #transaction
* timestamp = "2024-02-18T09:30:00+02:00"

* entry[Patient][+].fullUrl = "http://hapi-fhir:8080/Patient/HPVImmunizationPatientExample"
* entry[Patient][=].resource = HPVImmunizationPatientExample
* entry[Patient][=].request.method = #PUT
* entry[Patient][=].request.url = "Patient/HPVImmunizationPatientExample"

* entry[Encounter][+].fullUrl = "http://hapi-fhir:8080/Encounter/HPVTargetFacilityEncounterExample"
* entry[Encounter][=].resource = HPVTargetFacilityEncounterExample
* entry[Encounter][=].request.method = #PUT
* entry[Encounter][=].request.url = "Encounter/HPVTargetFacilityEncounterExample"

* entry[Guardian][+].fullUrl = "http://hapi-fhir:8080/RelatedPerson/HPVGuardianRelatedPersonExample"
* entry[Guardian][=].resource = HPVGuardianRelatedPersonExample
* entry[Guardian][=].request.method = #PUT
* entry[Guardian][=].request.url = "RelatedPerson/HPVGuardianRelatedPersonExample"

* entry[Immunocomprommised][+].fullUrl = "http://hapi-fhir:8080/Observation/HPVImmunocomprommisedExample"
* entry[Immunocomprommised][=].resource = HPVImmunocomprommisedExample
* entry[Immunocomprommised][=].request.method = #PUT
* entry[Immunocomprommised][=].request.url = "Observation/HPVImmunocomprommisedExample"

* entry[Vaccines][+].fullUrl = "http://hapi-fhir:8080/Immunization/HPVImmunizationExample"
* entry[Vaccines][=].resource = HPVImmunizationExample
* entry[Vaccines][=].request.method = #PUT
* entry[Vaccines][=].request.url = "Immunization/HPVImmunizationExample"

* entry[Medication][+].fullUrl = "http://hapi-fhir:8080/Medication/HPVVaccineExample"
* entry[Medication][=].resource = HPVVaccineExample
* entry[Medication][=].request.method = #PUT
* entry[Medication][=].request.url = "Medication/HPVVaccineExample"

* entry[SiteType][+].fullUrl = "http://hapi-fhir:8080/Organization/HPVVaccinationSiteTypeExample"
* entry[SiteType][=].resource = HPVVaccinationSiteTypeExample
* entry[SiteType][=].request.method = #PUT
* entry[SiteType][=].request.url = "Organization/HPVVaccinationSiteTypeExample"
34 changes: 34 additions & 0 deletions input/fsh/bundles/hpv-full-bundle.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Profile: HPVFullBundle
Parent: Bundle
Id: hpv-full-bundle
Title: "HPV Full Bundle"
Description: "This bundle contains all of the HPV resources."
* type 1..1
* type = #transaction
* timestamp 1..1
* entry 1..*
* entry ^definition =
"reason(s) why this should be supported."
* entry ^slicing.discriminator[+].type = #type
* entry ^slicing.discriminator[=].path = "resource"
* entry ^slicing.discriminator[+].type = #profile
* entry ^slicing.discriminator[=].path = "resource"
* entry ^slicing.rules = #open
* entry ^slicing.ordered = false
* entry ^slicing.description = "An entry resource included in HPV's full document bundle resource."
* entry contains
Patient 1..1 and
Encounter 1..1 and
Guardian 0..1 MS and
Immunocomprommised 0..1 MS and
Medication 0..1 MS and
Vaccines 1..1 and
SiteType 0..1 MS

* insert BundleEntry(HPVImmunizationPatient, Patient, reason why this should be supported.)
* insert BundleEntry(TargetFacilityEncounter, Encounter, reason why this should be supported.)
* insert BundleEntry(GuardianRelatedPerson, Guardian, reason why this should be supported.)
* insert BundleEntry(HPVImmunocomprommised, Immunocomprommised, reason why this should be supported.)
* insert BundleEntry(HPVImmunization, Vaccines, reason why this should be supported.)
* insert BundleEntry(HPVVaccine, Medication, reason why this should be supported.)
* insert BundleEntry(HPVVaccinationSiteType, SiteType, reason why this should be supported.)

0 comments on commit 69bf327

Please sign in to comment.