diff --git a/input/fsh/bundles/hpv-full-bundle-example.fsh b/input/fsh/bundles/hpv-full-bundle-example.fsh new file mode 100644 index 000000000..714b3dc92 --- /dev/null +++ b/input/fsh/bundles/hpv-full-bundle-example.fsh @@ -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" \ No newline at end of file diff --git a/input/fsh/bundles/hpv-full-bundle.fsh b/input/fsh/bundles/hpv-full-bundle.fsh new file mode 100644 index 000000000..847d3e966 --- /dev/null +++ b/input/fsh/bundles/hpv-full-bundle.fsh @@ -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.) \ No newline at end of file