Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hpv-bundles #29

Merged
merged 2 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.)
Loading