From e185ca054994b09a24f82e4fea23d61bfa0e8d38 Mon Sep 17 00:00:00 2001 From: rmrlangford Date: Mon, 19 Feb 2024 12:31:42 +0200 Subject: [PATCH] updated --- .../bundles/smartcare-full-bundle-example.fsh | 128 +++++++++--------- input/fsh/bundles/smartcare-full-bundle.fsh | 52 +++---- 2 files changed, 90 insertions(+), 90 deletions(-) diff --git a/input/fsh/bundles/smartcare-full-bundle-example.fsh b/input/fsh/bundles/smartcare-full-bundle-example.fsh index 5c361b682..50fa23ce4 100644 --- a/input/fsh/bundles/smartcare-full-bundle-example.fsh +++ b/input/fsh/bundles/smartcare-full-bundle-example.fsh @@ -6,70 +6,70 @@ Description: "A bundle containing all Smartcare FHIR resources." * type = #transaction * timestamp = "2024-02-18T09:30:00+02:00" -* entry[SmartcareImmunizationPatient][+].fullUrl = "http://hapi-fhir:8080/Patient/SmartcareImmunizationPatientExample" -* entry[SmartcareImmunizationPatient][=].resource = SmartcareImmunizationPatientExample -* entry[SmartcareImmunizationPatient][=].request.method = #PUT -* entry[SmartcareImmunizationPatient][=].request.url = "Patient/SmartcareImmunizationPatientExample" - -* entry[TargetFacilityEncounter][+].fullUrl = "http://hapi-fhir:8080/Encounter/SmartcareTargetFacilityEncounterExample" -* entry[TargetFacilityEncounter][=].resource = SmartcareTargetFacilityEncounterExample -* entry[TargetFacilityEncounter][=].request.method = #PUT -* entry[TargetFacilityEncounter][=].request.url = "Encounter/SmartcareTargetFacilityEncounterExample" - -* entry[SpouseRelatedPerson][+].fullUrl = "http://hapi-fhir:8080/RelatedPerson/SpouseRelatedPersonExample" -* entry[SpouseRelatedPerson][=].resource = SpouseRelatedPersonExample -* entry[SpouseRelatedPerson][=].request.method = #PUT -* entry[SpouseRelatedPerson][=].request.url = "RelatedPerson/SpouseRelatedPersonExample" - -* entry[ChiefAtBirthRelatedPerson][+].fullUrl = "http://hapi-fhir:8080/RelatedPerson/ChiefAtBirthRelatedPersonExample" -* entry[ChiefAtBirthRelatedPerson][=].resource = ChiefAtBirthRelatedPersonExample -* entry[ChiefAtBirthRelatedPerson][=].request.method = #PUT -* entry[ChiefAtBirthRelatedPerson][=].request.url = "RelatedPerson/ChiefAtBirthRelatedPersonExample" - -* entry[GuardianRelatedPerson][+].fullUrl = "http://hapi-fhir:8080/RelatedPerson/SmartcareGuardianRelatedPersonExample" -* entry[GuardianRelatedPerson][=].resource = SmartcareGuardianRelatedPersonExample -* entry[GuardianRelatedPerson][=].request.method = #PUT -* entry[GuardianRelatedPerson][=].request.url = "RelatedPerson/SmartcareGuardianRelatedPersonExample" - -* entry[PatientMotherRelatedPerson][+].fullUrl = "http://hapi-fhir:8080/RelatedPerson/PatientMotherRelatedPersonExample" -* entry[PatientMotherRelatedPerson][=].resource = PatientMotherRelatedPersonExample -* entry[PatientMotherRelatedPerson][=].request.method = #PUT -* entry[PatientMotherRelatedPerson][=].request.url = "RelatedPerson/PatientMotherRelatedPersonExample" - -* entry[RelativeRelatedPerson][+].fullUrl = "http://hapi-fhir:8080/RelatedPerson/RelativeRelatedPersonExample" -* entry[RelativeRelatedPerson][=].resource = RelativeRelatedPersonExample -* entry[RelativeRelatedPerson][=].request.method = #PUT -* entry[RelativeRelatedPerson][=].request.url = "RelatedPerson/RelativeRelatedPersonExample" - -* entry[PatientFatherRelatedPerson][+].fullUrl = "http://hapi-fhir:8080/RelatedPerson/PatientFatherRelatedPersonExample" -* entry[PatientFatherRelatedPerson][=].resource = PatientFatherRelatedPersonExample -* entry[PatientFatherRelatedPerson][=].request.method = #PUT -* entry[PatientFatherRelatedPerson][=].request.url = "RelatedPerson/PatientFatherRelatedPersonExample" - -* entry[PatientEducationalLevelObservation][+].fullUrl = "http://hapi-fhir:8080/Observation/PatientEducationalLevelObservationExample" -* entry[PatientEducationalLevelObservation][=].resource = PatientEducationalLevelObservationExample -* entry[PatientEducationalLevelObservation][=].request.method = #PUT -* entry[PatientEducationalLevelObservation][=].request.url = "Observation/PatientEducationalLevelObservationExample" - -* entry[DatePatientFirstMarriedObservation][+].fullUrl = "http://hapi-fhir:8080/Observation/DatePatientFirstMarriedObservationExample" -* entry[DatePatientFirstMarriedObservation][=].resource = DatePatientFirstMarriedObservationExample -* entry[DatePatientFirstMarriedObservation][=].request.method = #PUT -* entry[DatePatientFirstMarriedObservation][=].request.url = "Observation/DatePatientFirstMarriedObservationExample" - -* entry[GuardianOccupationObservation][+].fullUrl = "http://hapi-fhir:8080/Observation/GuardianOccupationObservationExample" -* entry[GuardianOccupationObservation][=].resource = GuardianOccupationObservationExample -* entry[GuardianOccupationObservation][=].request.method = #PUT -* entry[GuardianOccupationObservation][=].request.url = "Observation/GuardianOccupationObservationExample" - -* entry[SpouseOccupationObservation][+].fullUrl = "http://hapi-fhir:8080/Observation/SpouseOccupationObservationExample" -* entry[SpouseOccupationObservation][=].resource = SpouseOccupationObservationExample -* entry[SpouseOccupationObservation][=].request.method = #PUT -* entry[SpouseOccupationObservation][=].request.url = "Observation/SpouseOccupationObservationExample" - -* entry[PatientHomeLanguageObservation][+].fullUrl = "http://hapi-fhir:8080/Observation/PatientHomeLanguageObservationExample" -* entry[PatientHomeLanguageObservation][=].resource = PatientHomeLanguageObservationExample -* entry[PatientHomeLanguageObservation][=].request.method = #PUT -* entry[PatientHomeLanguageObservation][=].request.url = "Observation/PatientHomeLanguageObservationExample" +* entry[Patient][+].fullUrl = "http://hapi-fhir:8080/Patient/SmartcareImmunizationPatientExample" +* entry[Patient][=].resource = SmartcareImmunizationPatientExample +* entry[Patient][=].request.method = #PUT +* entry[Patient][=].request.url = "Patient/SmartcareImmunizationPatientExample" + +* entry[Encounter][+].fullUrl = "http://hapi-fhir:8080/Encounter/SmartcareTargetFacilityEncounterExample" +* entry[Encounter][=].resource = SmartcareTargetFacilityEncounterExample +* entry[Encounter][=].request.method = #PUT +* entry[Encounter][=].request.url = "Encounter/SmartcareTargetFacilityEncounterExample" + +* entry[Spouse][+].fullUrl = "http://hapi-fhir:8080/RelatedPerson/SpouseRelatedPersonExample" +* entry[Spouse][=].resource = SpouseRelatedPersonExample +* entry[Spouse][=].request.method = #PUT +* entry[Spouse][=].request.url = "RelatedPerson/SpouseRelatedPersonExample" + +* entry[ChiefAtBirth][+].fullUrl = "http://hapi-fhir:8080/RelatedPerson/ChiefAtBirthRelatedPersonExample" +* entry[ChiefAtBirth][=].resource = ChiefAtBirthRelatedPersonExample +* entry[ChiefAtBirth][=].request.method = #PUT +* entry[ChiefAtBirth][=].request.url = "RelatedPerson/ChiefAtBirthRelatedPersonExample" + +* entry[Guardian][+].fullUrl = "http://hapi-fhir:8080/RelatedPerson/SmartcareGuardianRelatedPersonExample" +* entry[Guardian][=].resource = SmartcareGuardianRelatedPersonExample +* entry[Guardian][=].request.method = #PUT +* entry[Guardian][=].request.url = "RelatedPerson/SmartcareGuardianRelatedPersonExample" + +* entry[Mother][+].fullUrl = "http://hapi-fhir:8080/RelatedPerson/PatientMotherRelatedPersonExample" +* entry[Mother][=].resource = PatientMotherRelatedPersonExample +* entry[Mother][=].request.method = #PUT +* entry[Mother][=].request.url = "RelatedPerson/PatientMotherRelatedPersonExample" + +* entry[Relative][+].fullUrl = "http://hapi-fhir:8080/RelatedPerson/RelativeRelatedPersonExample" +* entry[Relative][=].resource = RelativeRelatedPersonExample +* entry[Relative][=].request.method = #PUT +* entry[Relative][=].request.url = "RelatedPerson/RelativeRelatedPersonExample" + +* entry[Father][+].fullUrl = "http://hapi-fhir:8080/RelatedPerson/PatientFatherRelatedPersonExample" +* entry[Father][=].resource = PatientFatherRelatedPersonExample +* entry[Father][=].request.method = #PUT +* entry[Father][=].request.url = "RelatedPerson/PatientFatherRelatedPersonExample" + +* entry[EducationalLevel][+].fullUrl = "http://hapi-fhir:8080/Observation/PatientEducationalLevelObservationExample" +* entry[EducationalLevel][=].resource = PatientEducationalLevelObservationExample +* entry[EducationalLevel][=].request.method = #PUT +* entry[EducationalLevel][=].request.url = "Observation/PatientEducationalLevelObservationExample" + +* entry[DateFirstMarried][+].fullUrl = "http://hapi-fhir:8080/Observation/DatePatientFirstMarriedObservationExample" +* entry[DateFirstMarried][=].resource = DatePatientFirstMarriedObservationExample +* entry[DateFirstMarried][=].request.method = #PUT +* entry[DateFirstMarried][=].request.url = "Observation/DatePatientFirstMarriedObservationExample" + +* entry[GuardianOccupation][+].fullUrl = "http://hapi-fhir:8080/Observation/GuardianOccupationObservationExample" +* entry[GuardianOccupation][=].resource = GuardianOccupationObservationExample +* entry[GuardianOccupation][=].request.method = #PUT +* entry[GuardianOccupation][=].request.url = "Observation/GuardianOccupationObservationExample" + +* entry[SpouseOccupation][+].fullUrl = "http://hapi-fhir:8080/Observation/SpouseOccupationObservationExample" +* entry[SpouseOccupation][=].resource = SpouseOccupationObservationExample +* entry[SpouseOccupation][=].request.method = #PUT +* entry[SpouseOccupation][=].request.url = "Observation/SpouseOccupationObservationExample" + +* entry[HomeLanguage][+].fullUrl = "http://hapi-fhir:8080/Observation/PatientHomeLanguageObservationExample" +* entry[HomeLanguage][=].resource = PatientHomeLanguageObservationExample +* entry[HomeLanguage][=].request.method = #PUT +* entry[HomeLanguage][=].request.url = "Observation/PatientHomeLanguageObservationExample" * entry[MedicalInsuranceCompany][+].fullUrl = "http://hapi-fhir:8080/Organization/MedicalInsuranceCompanyExample" * entry[MedicalInsuranceCompany][=].resource = MedicalInsuranceCompanyExample diff --git a/input/fsh/bundles/smartcare-full-bundle.fsh b/input/fsh/bundles/smartcare-full-bundle.fsh index 74b630771..456931389 100644 --- a/input/fsh/bundles/smartcare-full-bundle.fsh +++ b/input/fsh/bundles/smartcare-full-bundle.fsh @@ -17,36 +17,36 @@ Description: "This bundle contains all of the Smartcare resources." * entry ^slicing.ordered = false * entry ^slicing.description = "An entry resource included in Smartcare's full document bundle resource." * entry contains - SmartcareImmunizationPatient 1..1 and - TargetFacilityEncounter 1..1 and - SpouseRelatedPerson 0..1 MS and - ChiefAtBirthRelatedPerson 0..1 MS and - GuardianRelatedPerson 0..1 MS and - PatientMotherRelatedPerson 0..1 MS and - RelativeRelatedPerson 0..1 MS and - PatientFatherRelatedPerson 0..1 MS and - PatientEducationalLevelObservation 0..1 MS and - DatePatientFirstMarriedObservation 0..1 MS and - GuardianOccupationObservation 0..1 MS and - SpouseOccupationObservation 0..1 MS and - PatientHomeLanguageObservation 0..1 MS and + Patient 1..1 and + Encounter 1..1 and + Spouse 0..1 MS and + ChiefAtBirth 0..1 MS and + Guardian 0..1 MS and + Mother 0..1 MS and + Relative 0..1 MS and + Father 0..1 MS and + EducationalLevel 0..1 MS and + DateFirstMarried 0..1 MS and + GuardianOccupation 0..1 MS and + SpouseOccupation 0..1 MS and + HomeLanguage 0..1 MS and MedicalInsuranceCompany 0..1 MS and MedicalInsurance 0..1 MS and Vaccines 1..1 -* insert BundleEntry(SmartcareImmunizationPatient, SmartcareImmunizationPatient, reason why this should be supported.) -* insert BundleEntry(TargetFacilityEncounter, TargetFacilityEncounter, reason why this should be supported.) -* insert BundleEntry(SpouseRelatedPerson, SpouseRelatedPerson, reason why this should be supported.) -* insert BundleEntry(ChiefAtBirthRelatedPerson, ChiefAtBirthRelatedPerson, reason why this should be supported.) -* insert BundleEntry(GuardianRelatedPerson, GuardianRelatedPerson, reason why this should be supported.) -* insert BundleEntry(PatientMotherRelatedPerson, PatientMotherRelatedPerson, reason why this should be supported.) -* insert BundleEntry(RelativeRelatedPerson, RelativeRelatedPerson, reason why this should be supported.) -* insert BundleEntry(PatientFatherRelatedPerson, PatientFatherRelatedPerson, reason why this should be supported.) -* insert BundleEntry(PatientEducationalLevelObservation, PatientEducationalLevelObservation, reason why this should be supported.) -* insert BundleEntry(DatePatientFirstMarriedObservation, DatePatientFirstMarriedObservation, reason why this should be supported.) -* insert BundleEntry(GuardianOccupationObservation, GuardianOccupationObservation, reason why this should be supported.) -* insert BundleEntry(SpouseOccupationObservation, SpouseOccupationObservation, reason why this should be supported.) -* insert BundleEntry(PatientHomeLanguageObservation, PatientHomeLanguageObservation, reason why this should be supported.) +* insert BundleEntry(SmartcareImmunizationPatient, Patient, reason why this should be supported.) +* insert BundleEntry(TargetFacilityEncounter, Encounter, reason why this should be supported.) +* insert BundleEntry(SpouseRelatedPerson, Spouse, reason why this should be supported.) +* insert BundleEntry(ChiefAtBirthRelatedPerson, ChiefAtBirth, reason why this should be supported.) +* insert BundleEntry(GuardianRelatedPerson, Guardian, reason why this should be supported.) +* insert BundleEntry(PatientMotherRelatedPerson, Mother, reason why this should be supported.) +* insert BundleEntry(RelativeRelatedPerson, Relative, reason why this should be supported.) +* insert BundleEntry(PatientFatherRelatedPerson, Father, reason why this should be supported.) +* insert BundleEntry(PatientEducationalLevelObservation, EducationalLevel, reason why this should be supported.) +* insert BundleEntry(DatePatientFirstMarriedObservation, DateFirstMarried, reason why this should be supported.) +* insert BundleEntry(GuardianOccupationObservation, GuardianOccupation, reason why this should be supported.) +* insert BundleEntry(SpouseOccupationObservation, SpouseOccupation, reason why this should be supported.) +* insert BundleEntry(PatientHomeLanguageObservation, HomeLanguage, reason why this should be supported.) * insert BundleEntry(MedicalInsuranceCompany, MedicalInsuranceCompany, reason why this should be supported.) * insert BundleEntry(MedicalInsurance, MedicalInsurance, reason why this should be supported.) * insert BundleEntry(Vaccines, Vaccines, reason why this should be supported.) \ No newline at end of file