CDA-FHIR-Maps (R4)
0.3.0 - DSTU 1
This page is part of the CDA-FHIR-Maps (R4) (v0.3.0: DSTU 1) based on FHIR R4. . For a full list of available versions, see the Directory of published versions
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
a fhir:StructureMap;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "BundleToCdaChEmedMedicationPrescriptionDocument"];
fhir:Resource.meta [
fhir:Meta.versionId [ fhir:value "2" ];
fhir:Meta.lastUpdated [ fhir:value "2021-11-04T13:33:05.187+01:00"^^xsd:dateTime ]
];
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ];
fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <pre>map "http://fhir.ch/ig/cda-fhir-maps/StructureMap/BundleToCdaChEmedMedicationPrescriptionDocument" = "BundleToCdaChEmedMedicationPrescriptionDocument"\n\n// Medication Prescription document, 2.16.756.5.30.1.1.10.1.4\n// 2020-01-27 Michaela Ziegler, copyright ahdis ag, Apache License\n// CDA-CH-EMED: https://art-decor.org/art-decor/decor-project--cdachemed-\n// FHIR CH-EMED: http://fhir.ch/ig/ch-emed/index.html\n\nuses "http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument" alias ClinicalDocument as target\nuses "http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor" alias AssignedAuthor as target\nuses "http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity" alias AssignedEntity as target\nuses "http://hl7.org/fhir/cda/StructureDefinition/Author" alias Author as target\nuses "http://hl7.org/fhir/cda/StructureDefinition/CustodianOrganization" alias CustodianOrganization as target\nuses "http://hl7.org/fhir/cda/StructureDefinition/IVL_TS" alias IVL_TS as target\nuses "http://hl7.org/fhir/cda/StructureDefinition/EIVL_TS" alias EIVL_TS as target\nuses "http://hl7.org/fhir/cda/StructureDefinition/PatientRole" alias PatientRole as target\nuses "http://hl7.org/fhir/cda/StructureDefinition/RecordTarget" alias RecordTarget as target\nuses "http://hl7.org/fhir/cda/StructureDefinition/Section" alias Section as target\nuses "http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration" alias SubstanceAdministration as target\nuses "http://hl7.org/fhir/cda/StructureDefinition/SXPR_TS" alias SXPR_TS as target\nuses "http://hl7.org/fhir/cda/StructureDefinition/Supply" alias Supply as target\nuses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as source\nuses "http://hl7.org/fhir/StructureDefinition/Composition" alias Composition as source\nuses "http://hl7.org/fhir/StructureDefinition/Patient" alias Patient as source\nuses "http://hl7.org/fhir/StructureDefinition/Practitioner" alias Practitioner as source\nuses "http://hl7.org/fhir/StructureDefinition/Organization" alias Organization as source\nuses "http://hl7.org/fhir/StructureDefinition/MedicationRequest" alias MedicationRequest as source\nuses "http://hl7.org/fhir/StructureDefinition/Dosage" alias Dosage as source\n\nimports "http://fhir.ch/ig/cda-fhir-maps/StructureMap/FhirToCdaTypes"\nimports "http://fhir.ch/ig/cda-fhir-maps/StructureMap/BundleToCda"\nimports "http://fhir.ch/ig/cda-fhir-maps/StructureMap/BundleToCdaCh"\nimports "http://fhir.ch/ig/cda-fhir-maps/StructureMap/BundleToCdaChEmed"\n\n// source: http://build.fhir.org/ig/hl7ch/ch-emed/StructureDefinition-ch-emed-composition-medicationprescription.html\n// target: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.1.4\ngroup BundleToCdaChEmedMedicationPrescriptionDocument(source bundle : Bundle, target cda : ClinicalDocument) {\n bundle -> cda.recordTarget as recordTarget, cda.author as author then BundleToClinicalDocumentEmedMedicationPrescriptionDocument(bundle, recordTarget, author, cda) "bundle";\n}\n\n// source: http://build.fhir.org/ig/hl7ch/ch-emed/StructureDefinition-ch-emed-composition-medicationprescription.html\n// target: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.1.4\ngroup CompositionClinicalDocumentChEmedMedicationPrescriptionDocument(source bundle : Bundle, source composition : Composition, target cda : ClinicalDocument) {\n composition.type -> cda.code as code, code.codeSystem = '2.16.840.1.113883.6.1', code.codeSystemName = 'LOINC', code.code = '57833-6', code.displayName = 'Prescription for medication' "fixloinc";\n composition.section as section where $this.code.coding.where((system = 'http://loinc.org') and (code = '57828-6')) -> cda.component as component then {\n section -> component.contextConductionInd = true "contextConductionInd";\n section -> component.structuredBody as structuredBody, structuredBody.component as component, component.section as cdasection then SectionPrescriptionSectionContentModule(bundle, section, cdasection) "cdasection";\n } "SectionPrescriptionSectionContentModule";\n composition.section as section where $this.code.coding.where((system = 'http://loinc.org') and (code = '48767-8')) -> cda.component as component then {\n section -> component.contextConductionInd = true "contextConductionInd";\n section -> component.structuredBody as structuredBody, structuredBody.component as component, component.section as cdasection then SectionCdaRemarksCoded(bundle, section, cdasection) "cdasection";\n } "SectionRemarksCoded";\n composition.section as section where $this.code.coding.where((system = 'http://loinc.org') and (code = '55108-5')) -> cda.component as component then {\n section -> component.contextConductionInd = true "contextConductionInd";\n section -> component.structuredBody as structuredBody, structuredBody.component as component, component.section as cdasection then SectionCdaOriginalRepresentation(bundle, section, cdasection) "cdasection";\n } "SectionCdaOriginalRepresentation";\n}\n\n// _________________________ Section Level Templates _________________________\n// source: http://build.fhir.org/ig/hl7ch/ch-emed/StructureDefinition-ch-emed-composition-medicationprescription.html\n// target: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.3.10\ngroup SectionPrescriptionSectionContentModule(source bundle : Bundle, source section : Section, target cdasection : CdaSection) extends SectionCdaSection {\n section -> cdasection.templateId as templateId, templateId.root = '2.16.756.5.30.1.1.10.3.10' "CH-PHARM-PrescriptionSectionContentModule";\n section -> cdasection.templateId as templateId, templateId.root = '1.3.6.1.4.1.19376.1.9.1.2.1' "IHE-PrescriptionSectionContentModule";\n section where text.exists() = false -> cdasection.text = '<div xmlns=\\"http://www.w3.org/1999/xhtml\\"><span id=\\"refpdf\\">see pdf</span></div>' "Section";\n bundle.entry as entry then {\n entry.fullUrl where ($this in %section.entry.reference) and $this.startsWith('urn:uuid') then {\n entry.resource as medicationRequest where $this.ofType(FHIR.MedicationRequest) -> cdasection.entry as entry, entry.substanceAdministration as substanceAdministration then PrescriptionItemEntryContentModule(bundle, medicationRequest, substanceAdministration) "MedicationRequest";\n } "fullUrlAsUuid";\n entry.resource as medicationRequest where $this.ofType(FHIR.MedicationRequest) and (('MedicationRequest' + '/' + $this.id) in %section.entry.reference) -> cdasection.entry as entry, entry.substanceAdministration as substanceAdministration then PrescriptionItemEntryContentModule(bundle, medicationRequest, substanceAdministration) "MedicationRequest";\n };\n}\n\n// _________________________ Header Level Templates _________________________\n// source: http://build.fhir.org/ig/hl7ch/ch-emed/StructureDefinition-ch-emed-composition-medicationprescription.html\n// target:\ngroup BundleToClinicalDocumentEmedMedicationPrescriptionDocument(source bundle : Bundle, target recordTarget : RecordTarget, target author : Author, target cda : ClinicalDocument) extends BundleToClinicalDocumentCh {\n bundle -> cda.templateId as templateId, templateId.root = '2.16.756.5.30.1.127.1.4' "ExchangeFormatAccordingToTheSwissEPR";\n bundle -> cda.templateId as templateId, templateId.root = '1.3.6.1.4.1.19376.1.5.3.1.1.1' "IHE-PCC";\n bundle -> cda.templateId as templateId, templateId.root = '1.3.6.1.4.1.19376.1.9.1.1.1' "IHE-PRE";\n bundle -> cda.templateId as templateId, templateId.root = '2.16.756.5.30.1.1.10.1.4' "CDA-CH-EMED-MedicationPrescriptionDocument";\n bundle.entry as entry then {\n entry.resource as resource where $this.ofType(FHIR.Composition) then CompositionClinicalDocumentChEmedMedicationPrescriptionDocument(bundle, resource, cda);\n };\n}\n\n</pre>\n </div>"
];
fhir:StructureMap.url [ fhir:value "http://fhir.ch/ig/cda-fhir-maps/StructureMap/BundleToCdaChEmedMedicationPrescriptionDocument"];
fhir:StructureMap.version [ fhir:value "0.3.0"];
fhir:StructureMap.name [ fhir:value "BundleToCdaChEmedMedicationPrescriptionDocument"];
fhir:StructureMap.status [ fhir:value "draft"];
fhir:StructureMap.date [ fhir:value "2022-02-11T11:14:39+01:00"^^xsd:dateTime];
fhir:StructureMap.publisher [ fhir:value "ahdis"];
fhir:StructureMap.contact [
fhir:index 0;
fhir:ContactDetail.name [ fhir:value "ahdis" ];
fhir:ContactDetail.telecom [
fhir:index 0;
fhir:ContactPoint.system [ fhir:value "url" ];
fhir:ContactPoint.value [ fhir:value "http://www.ahdis.ch/" ] ]
];
fhir:StructureMap.description [ fhir:value "Medication Prescription document, 2.16.756.5.30.1.1.10.1.4\r\n2020-01-27 Michaela Ziegler, copyright ahdis ag, Apache License\r\nCDA-CH-EMED: https://art-decor.org/art-decor/decor-project--cdachemed-\r\nFHIR CH-EMED: http://fhir.ch/ig/ch-emed/index.html"];
fhir:StructureMap.copyright [ fhir:value "CC-BY-SA-4.0"];
fhir:StructureMap.structure [
fhir:index 0;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument";
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/ClinicalDocument> ];
fhir:StructureMap.structure.mode [ fhir:value "target" ];
fhir:StructureMap.structure.alias [ fhir:value "ClinicalDocument" ]
], [
fhir:index 1;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor";
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/AssignedAuthor> ];
fhir:StructureMap.structure.mode [ fhir:value "target" ];
fhir:StructureMap.structure.alias [ fhir:value "AssignedAuthor" ]
], [
fhir:index 2;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity";
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity> ];
fhir:StructureMap.structure.mode [ fhir:value "target" ];
fhir:StructureMap.structure.alias [ fhir:value "AssignedEntity" ]
], [
fhir:index 3;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Author";
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/Author> ];
fhir:StructureMap.structure.mode [ fhir:value "target" ];
fhir:StructureMap.structure.alias [ fhir:value "Author" ]
], [
fhir:index 4;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/cda/StructureDefinition/CustodianOrganization";
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/CustodianOrganization> ];
fhir:StructureMap.structure.mode [ fhir:value "target" ];
fhir:StructureMap.structure.alias [ fhir:value "CustodianOrganization" ]
], [
fhir:index 5;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/cda/StructureDefinition/IVL_TS";
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/IVL_TS> ];
fhir:StructureMap.structure.mode [ fhir:value "target" ];
fhir:StructureMap.structure.alias [ fhir:value "IVL_TS" ]
], [
fhir:index 6;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/cda/StructureDefinition/EIVL_TS";
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/EIVL_TS> ];
fhir:StructureMap.structure.mode [ fhir:value "target" ];
fhir:StructureMap.structure.alias [ fhir:value "EIVL_TS" ]
], [
fhir:index 7;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/cda/StructureDefinition/PatientRole";
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/PatientRole> ];
fhir:StructureMap.structure.mode [ fhir:value "target" ];
fhir:StructureMap.structure.alias [ fhir:value "PatientRole" ]
], [
fhir:index 8;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/cda/StructureDefinition/RecordTarget";
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/RecordTarget> ];
fhir:StructureMap.structure.mode [ fhir:value "target" ];
fhir:StructureMap.structure.alias [ fhir:value "RecordTarget" ]
], [
fhir:index 9;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Section";
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/Section> ];
fhir:StructureMap.structure.mode [ fhir:value "target" ];
fhir:StructureMap.structure.alias [ fhir:value "Section" ]
], [
fhir:index 10;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration";
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration> ];
fhir:StructureMap.structure.mode [ fhir:value "target" ];
fhir:StructureMap.structure.alias [ fhir:value "SubstanceAdministration" ]
], [
fhir:index 11;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/cda/StructureDefinition/SXPR_TS";
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/SXPR_TS> ];
fhir:StructureMap.structure.mode [ fhir:value "target" ];
fhir:StructureMap.structure.alias [ fhir:value "SXPR_TS" ]
], [
fhir:index 12;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Supply";
fhir:link <http://hl7.org/fhir/cda/StructureDefinition/Supply> ];
fhir:StructureMap.structure.mode [ fhir:value "target" ];
fhir:StructureMap.structure.alias [ fhir:value "Supply" ]
], [
fhir:index 13;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/StructureDefinition/Bundle";
fhir:link <http://hl7.org/fhir/StructureDefinition/Bundle> ];
fhir:StructureMap.structure.mode [ fhir:value "source" ];
fhir:StructureMap.structure.alias [ fhir:value "Bundle" ]
], [
fhir:index 14;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/StructureDefinition/Composition";
fhir:link <http://hl7.org/fhir/StructureDefinition/Composition> ];
fhir:StructureMap.structure.mode [ fhir:value "source" ];
fhir:StructureMap.structure.alias [ fhir:value "Composition" ]
], [
fhir:index 15;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/StructureDefinition/Patient";
fhir:link <http://hl7.org/fhir/StructureDefinition/Patient> ];
fhir:StructureMap.structure.mode [ fhir:value "source" ];
fhir:StructureMap.structure.alias [ fhir:value "Patient" ]
], [
fhir:index 16;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner";
fhir:link <http://hl7.org/fhir/StructureDefinition/Practitioner> ];
fhir:StructureMap.structure.mode [ fhir:value "source" ];
fhir:StructureMap.structure.alias [ fhir:value "Practitioner" ]
], [
fhir:index 17;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/StructureDefinition/Organization";
fhir:link <http://hl7.org/fhir/StructureDefinition/Organization> ];
fhir:StructureMap.structure.mode [ fhir:value "source" ];
fhir:StructureMap.structure.alias [ fhir:value "Organization" ]
], [
fhir:index 18;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationRequest";
fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationRequest> ];
fhir:StructureMap.structure.mode [ fhir:value "source" ];
fhir:StructureMap.structure.alias [ fhir:value "MedicationRequest" ]
], [
fhir:index 19;
fhir:StructureMap.structure.url [
fhir:value "http://hl7.org/fhir/StructureDefinition/Dosage";
fhir:link <http://hl7.org/fhir/StructureDefinition/Dosage> ];
fhir:StructureMap.structure.mode [ fhir:value "source" ];
fhir:StructureMap.structure.alias [ fhir:value "Dosage" ]
];
fhir:StructureMap.import [
fhir:value "http://fhir.ch/ig/cda-fhir-maps/StructureMap/FhirToCdaTypes";
fhir:index 0;
fhir:link <http://fhir.ch/ig/cda-fhir-maps/StructureMap/FhirToCdaTypes>
], [
fhir:value "http://fhir.ch/ig/cda-fhir-maps/StructureMap/BundleToCda";
fhir:index 1;
fhir:link <http://fhir.ch/ig/cda-fhir-maps/StructureMap/BundleToCda>
], [
fhir:value "http://fhir.ch/ig/cda-fhir-maps/StructureMap/BundleToCdaCh";
fhir:index 2;
fhir:link <http://fhir.ch/ig/cda-fhir-maps/StructureMap/BundleToCdaCh>
], [
fhir:value "http://fhir.ch/ig/cda-fhir-maps/StructureMap/BundleToCdaChEmed";
fhir:index 3;
fhir:link <http://fhir.ch/ig/cda-fhir-maps/StructureMap/BundleToCdaChEmed>
];
fhir:StructureMap.group [
fhir:index 0;
fhir:StructureMap.group.name [ fhir:value "BundleToCdaChEmedMedicationPrescriptionDocument" ];
fhir:StructureMap.group.typeMode [ fhir:value "none" ];
fhir:StructureMap.group.documentation [ fhir:value "source: http://build.fhir.org/ig/hl7ch/ch-emed/StructureDefinition-ch-emed-composition-medicationprescription.html\r\ntarget: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.1.4" ];
fhir:StructureMap.group.input [
fhir:index 0;
fhir:StructureMap.group.input.name [ fhir:value "bundle" ];
fhir:StructureMap.group.input.type [ fhir:value "Bundle" ];
fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [
fhir:index 1;
fhir:StructureMap.group.input.name [ fhir:value "cda" ];
fhir:StructureMap.group.input.type [ fhir:value "ClinicalDocument" ];
fhir:StructureMap.group.input.mode [ fhir:value "target" ] ];
fhir:StructureMap.group.rule [
fhir:index 0;
fhir:StructureMap.group.rule.name [ fhir:value "bundle" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "bundle" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "cda" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "recordTarget" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "recordTarget" ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.target.context [ fhir:value "cda" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "author" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "author" ] ];
fhir:StructureMap.group.rule.dependent [
fhir:index 0;
fhir:StructureMap.group.rule.dependent.name [ fhir:value "BundleToClinicalDocumentEmedMedicationPrescriptionDocument" ];
fhir:StructureMap.group.rule.dependent.variable [
fhir:value "bundle";
fhir:index 0 ], [
fhir:value "recordTarget";
fhir:index 1 ], [
fhir:value "author";
fhir:index 2 ], [
fhir:value "cda";
fhir:index 3 ] ] ]
], [
fhir:index 1;
fhir:StructureMap.group.name [ fhir:value "CompositionClinicalDocumentChEmedMedicationPrescriptionDocument" ];
fhir:StructureMap.group.typeMode [ fhir:value "none" ];
fhir:StructureMap.group.documentation [ fhir:value "source: http://build.fhir.org/ig/hl7ch/ch-emed/StructureDefinition-ch-emed-composition-medicationprescription.html\r\ntarget: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.1.4" ];
fhir:StructureMap.group.input [
fhir:index 0;
fhir:StructureMap.group.input.name [ fhir:value "bundle" ];
fhir:StructureMap.group.input.type [ fhir:value "Bundle" ];
fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [
fhir:index 1;
fhir:StructureMap.group.input.name [ fhir:value "composition" ];
fhir:StructureMap.group.input.type [ fhir:value "Composition" ];
fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [
fhir:index 2;
fhir:StructureMap.group.input.name [ fhir:value "cda" ];
fhir:StructureMap.group.input.type [ fhir:value "ClinicalDocument" ];
fhir:StructureMap.group.input.mode [ fhir:value "target" ] ];
fhir:StructureMap.group.rule [
fhir:index 0;
fhir:StructureMap.group.rule.name [ fhir:value "fixloinc" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "composition" ];
fhir:StructureMap.group.rule.source.element [ fhir:value "type" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "cda" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "code" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "code" ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.target.context [ fhir:value "code" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "codeSystem" ];
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ];
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "2.16.840.1.113883.6.1" ] ] ], [
fhir:index 2;
fhir:StructureMap.group.rule.target.context [ fhir:value "code" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "codeSystemName" ];
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ];
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "LOINC" ] ] ], [
fhir:index 3;
fhir:StructureMap.group.rule.target.context [ fhir:value "code" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "code" ];
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ];
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "57833-6" ] ] ], [
fhir:index 4;
fhir:StructureMap.group.rule.target.context [ fhir:value "code" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "displayName" ];
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ];
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "Prescription for medication" ] ] ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.name [ fhir:value "SectionPrescriptionSectionContentModule" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "composition" ];
fhir:StructureMap.group.rule.source.element [ fhir:value "section" ];
fhir:StructureMap.group.rule.source.variable [ fhir:value "section" ];
fhir:StructureMap.group.rule.source.condition [ fhir:value "$this.code.coding.where((system = 'http://loinc.org') and (code = '57828-6'))" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "cda" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "component" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "component" ] ];
fhir:StructureMap.group.rule.rule [
fhir:index 0;
fhir:StructureMap.group.rule.name [ fhir:value "contextConductionInd" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "section" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "component" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "contextConductionInd" ];
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ];
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0;
fhir:StructureMap.group.rule.target.parameter.valueBoolean [ fhir:value "true"^^xsd:boolean ] ] ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.name [ fhir:value "cdasection" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "section" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "component" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "structuredBody" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "structuredBody" ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.target.context [ fhir:value "structuredBody" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "component" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "component" ] ], [
fhir:index 2;
fhir:StructureMap.group.rule.target.context [ fhir:value "component" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "section" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "cdasection" ] ];
fhir:StructureMap.group.rule.dependent [
fhir:index 0;
fhir:StructureMap.group.rule.dependent.name [ fhir:value "SectionPrescriptionSectionContentModule" ];
fhir:StructureMap.group.rule.dependent.variable [
fhir:value "bundle";
fhir:index 0 ], [
fhir:value "section";
fhir:index 1 ], [
fhir:value "cdasection";
fhir:index 2 ] ] ] ], [
fhir:index 2;
fhir:StructureMap.group.rule.name [ fhir:value "SectionRemarksCoded" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "composition" ];
fhir:StructureMap.group.rule.source.element [ fhir:value "section" ];
fhir:StructureMap.group.rule.source.variable [ fhir:value "section" ];
fhir:StructureMap.group.rule.source.condition [ fhir:value "$this.code.coding.where((system = 'http://loinc.org') and (code = '48767-8'))" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "cda" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "component" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "component" ] ];
fhir:StructureMap.group.rule.rule [
fhir:index 0;
fhir:StructureMap.group.rule.name [ fhir:value "contextConductionInd" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "section" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "component" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "contextConductionInd" ];
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ];
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0;
fhir:StructureMap.group.rule.target.parameter.valueBoolean [ fhir:value "true"^^xsd:boolean ] ] ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.name [ fhir:value "cdasection" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "section" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "component" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "structuredBody" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "structuredBody" ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.target.context [ fhir:value "structuredBody" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "component" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "component" ] ], [
fhir:index 2;
fhir:StructureMap.group.rule.target.context [ fhir:value "component" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "section" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "cdasection" ] ];
fhir:StructureMap.group.rule.dependent [
fhir:index 0;
fhir:StructureMap.group.rule.dependent.name [ fhir:value "SectionCdaRemarksCoded" ];
fhir:StructureMap.group.rule.dependent.variable [
fhir:value "bundle";
fhir:index 0 ], [
fhir:value "section";
fhir:index 1 ], [
fhir:value "cdasection";
fhir:index 2 ] ] ] ], [
fhir:index 3;
fhir:StructureMap.group.rule.name [ fhir:value "SectionCdaOriginalRepresentation" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "composition" ];
fhir:StructureMap.group.rule.source.element [ fhir:value "section" ];
fhir:StructureMap.group.rule.source.variable [ fhir:value "section" ];
fhir:StructureMap.group.rule.source.condition [ fhir:value "$this.code.coding.where((system = 'http://loinc.org') and (code = '55108-5'))" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "cda" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "component" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "component" ] ];
fhir:StructureMap.group.rule.rule [
fhir:index 0;
fhir:StructureMap.group.rule.name [ fhir:value "contextConductionInd" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "section" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "component" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "contextConductionInd" ];
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ];
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0;
fhir:StructureMap.group.rule.target.parameter.valueBoolean [ fhir:value "true"^^xsd:boolean ] ] ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.name [ fhir:value "cdasection" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "section" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "component" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "structuredBody" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "structuredBody" ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.target.context [ fhir:value "structuredBody" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "component" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "component" ] ], [
fhir:index 2;
fhir:StructureMap.group.rule.target.context [ fhir:value "component" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "section" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "cdasection" ] ];
fhir:StructureMap.group.rule.dependent [
fhir:index 0;
fhir:StructureMap.group.rule.dependent.name [ fhir:value "SectionCdaOriginalRepresentation" ];
fhir:StructureMap.group.rule.dependent.variable [
fhir:value "bundle";
fhir:index 0 ], [
fhir:value "section";
fhir:index 1 ], [
fhir:value "cdasection";
fhir:index 2 ] ] ] ]
], [
fhir:index 2;
fhir:StructureMap.group.name [ fhir:value "SectionPrescriptionSectionContentModule" ];
fhir:StructureMap.group.extends [ fhir:value "SectionCdaSection" ];
fhir:StructureMap.group.typeMode [ fhir:value "none" ];
fhir:StructureMap.group.documentation [ fhir:value "_________________________ Section Level Templates _________________________\r\nsource: http://build.fhir.org/ig/hl7ch/ch-emed/StructureDefinition-ch-emed-composition-medicationprescription.html\r\ntarget: https://art-decor.org/art-decor/decor-templates--cdachemed-?section=templates&id=2.16.756.5.30.1.1.10.3.10" ];
fhir:StructureMap.group.input [
fhir:index 0;
fhir:StructureMap.group.input.name [ fhir:value "bundle" ];
fhir:StructureMap.group.input.type [ fhir:value "Bundle" ];
fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [
fhir:index 1;
fhir:StructureMap.group.input.name [ fhir:value "section" ];
fhir:StructureMap.group.input.type [ fhir:value "Section" ];
fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [
fhir:index 2;
fhir:StructureMap.group.input.name [ fhir:value "cdasection" ];
fhir:StructureMap.group.input.type [ fhir:value "CdaSection" ];
fhir:StructureMap.group.input.mode [ fhir:value "target" ] ];
fhir:StructureMap.group.rule [
fhir:index 0;
fhir:StructureMap.group.rule.name [ fhir:value "CH-PHARM-PrescriptionSectionContentModule" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "section" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "cdasection" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "templateId" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "templateId" ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.target.context [ fhir:value "templateId" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "root" ];
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ];
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "2.16.756.5.30.1.1.10.3.10" ] ] ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.name [ fhir:value "IHE-PrescriptionSectionContentModule" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "section" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "cdasection" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "templateId" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "templateId" ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.target.context [ fhir:value "templateId" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "root" ];
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ];
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "1.3.6.1.4.1.19376.1.9.1.2.1" ] ] ] ], [
fhir:index 2;
fhir:StructureMap.group.rule.name [ fhir:value "Section" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "section" ];
fhir:StructureMap.group.rule.source.condition [ fhir:value "text.exists() = false" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "cdasection" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "text" ];
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ];
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "<div xmlns=\"http://www.w3.org/1999/xhtml\"><span id=\"refpdf\">see pdf</span></div>" ] ] ] ], [
fhir:index 3;
fhir:StructureMap.group.rule.name [ fhir:value "entry" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "bundle" ];
fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ];
fhir:StructureMap.group.rule.source.variable [ fhir:value "entry" ] ];
fhir:StructureMap.group.rule.rule [
fhir:index 0;
fhir:StructureMap.group.rule.name [ fhir:value "fullUrlAsUuid" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "entry" ];
fhir:StructureMap.group.rule.source.element [ fhir:value "fullUrl" ];
fhir:StructureMap.group.rule.source.condition [ fhir:value "($this in %section.entry.reference) and $this.startsWith('urn:uuid')" ] ];
fhir:StructureMap.group.rule.rule [
fhir:index 0;
fhir:StructureMap.group.rule.name [ fhir:value "MedicationRequest" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "entry" ];
fhir:StructureMap.group.rule.source.element [ fhir:value "resource" ];
fhir:StructureMap.group.rule.source.variable [ fhir:value "medicationRequest" ];
fhir:StructureMap.group.rule.source.condition [ fhir:value "$this.ofType(FHIR.MedicationRequest)" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "cdasection" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "entry" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "entry" ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.target.context [ fhir:value "entry" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "substanceAdministration" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "substanceAdministration" ] ];
fhir:StructureMap.group.rule.dependent [
fhir:index 0;
fhir:StructureMap.group.rule.dependent.name [ fhir:value "PrescriptionItemEntryContentModule" ];
fhir:StructureMap.group.rule.dependent.variable [
fhir:value "bundle";
fhir:index 0 ], [
fhir:value "medicationRequest";
fhir:index 1 ], [
fhir:value "substanceAdministration";
fhir:index 2 ] ] ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.name [ fhir:value "MedicationRequest" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "entry" ];
fhir:StructureMap.group.rule.source.element [ fhir:value "resource" ];
fhir:StructureMap.group.rule.source.variable [ fhir:value "medicationRequest" ];
fhir:StructureMap.group.rule.source.condition [ fhir:value "$this.ofType(FHIR.MedicationRequest) and (('MedicationRequest' + '/' + $this.id) in %section.entry.reference)" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "cdasection" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "entry" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "entry" ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.target.context [ fhir:value "entry" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "substanceAdministration" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "substanceAdministration" ] ];
fhir:StructureMap.group.rule.dependent [
fhir:index 0;
fhir:StructureMap.group.rule.dependent.name [ fhir:value "PrescriptionItemEntryContentModule" ];
fhir:StructureMap.group.rule.dependent.variable [
fhir:value "bundle";
fhir:index 0 ], [
fhir:value "medicationRequest";
fhir:index 1 ], [
fhir:value "substanceAdministration";
fhir:index 2 ] ] ] ]
], [
fhir:index 3;
fhir:StructureMap.group.name [ fhir:value "BundleToClinicalDocumentEmedMedicationPrescriptionDocument" ];
fhir:StructureMap.group.extends [ fhir:value "BundleToClinicalDocumentCh" ];
fhir:StructureMap.group.typeMode [ fhir:value "none" ];
fhir:StructureMap.group.documentation [ fhir:value "_________________________ Header Level Templates _________________________\r\nsource: http://build.fhir.org/ig/hl7ch/ch-emed/StructureDefinition-ch-emed-composition-medicationprescription.html\r\ntarget:" ];
fhir:StructureMap.group.input [
fhir:index 0;
fhir:StructureMap.group.input.name [ fhir:value "bundle" ];
fhir:StructureMap.group.input.type [ fhir:value "Bundle" ];
fhir:StructureMap.group.input.mode [ fhir:value "source" ] ], [
fhir:index 1;
fhir:StructureMap.group.input.name [ fhir:value "recordTarget" ];
fhir:StructureMap.group.input.type [ fhir:value "RecordTarget" ];
fhir:StructureMap.group.input.mode [ fhir:value "target" ] ], [
fhir:index 2;
fhir:StructureMap.group.input.name [ fhir:value "author" ];
fhir:StructureMap.group.input.type [ fhir:value "Author" ];
fhir:StructureMap.group.input.mode [ fhir:value "target" ] ], [
fhir:index 3;
fhir:StructureMap.group.input.name [ fhir:value "cda" ];
fhir:StructureMap.group.input.type [ fhir:value "ClinicalDocument" ];
fhir:StructureMap.group.input.mode [ fhir:value "target" ] ];
fhir:StructureMap.group.rule [
fhir:index 0;
fhir:StructureMap.group.rule.name [ fhir:value "ExchangeFormatAccordingToTheSwissEPR" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "bundle" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "cda" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "templateId" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "templateId" ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.target.context [ fhir:value "templateId" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "root" ];
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ];
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "2.16.756.5.30.1.127.1.4" ] ] ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.name [ fhir:value "IHE-PCC" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "bundle" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "cda" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "templateId" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "templateId" ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.target.context [ fhir:value "templateId" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "root" ];
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ];
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "1.3.6.1.4.1.19376.1.5.3.1.1.1" ] ] ] ], [
fhir:index 2;
fhir:StructureMap.group.rule.name [ fhir:value "IHE-PRE" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "bundle" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "cda" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "templateId" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "templateId" ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.target.context [ fhir:value "templateId" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "root" ];
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ];
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "1.3.6.1.4.1.19376.1.9.1.1.1" ] ] ] ], [
fhir:index 3;
fhir:StructureMap.group.rule.name [ fhir:value "CDA-CH-EMED-MedicationPrescriptionDocument" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "bundle" ] ];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "cda" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "templateId" ];
fhir:StructureMap.group.rule.target.variable [ fhir:value "templateId" ] ], [
fhir:index 1;
fhir:StructureMap.group.rule.target.context [ fhir:value "templateId" ];
fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "root" ];
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ];
fhir:StructureMap.group.rule.target.parameter [
fhir:index 0;
fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "2.16.756.5.30.1.1.10.1.4" ] ] ] ], [
fhir:index 4;
fhir:StructureMap.group.rule.name [ fhir:value "entry" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "bundle" ];
fhir:StructureMap.group.rule.source.element [ fhir:value "entry" ];
fhir:StructureMap.group.rule.source.variable [ fhir:value "entry" ] ];
fhir:StructureMap.group.rule.rule [
fhir:index 0;
fhir:StructureMap.group.rule.name [ fhir:value "resource" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "entry" ];
fhir:StructureMap.group.rule.source.element [ fhir:value "resource" ];
fhir:StructureMap.group.rule.source.variable [ fhir:value "resource" ];
fhir:StructureMap.group.rule.source.condition [ fhir:value "$this.ofType(FHIR.Composition)" ] ];
fhir:StructureMap.group.rule.dependent [
fhir:index 0;
fhir:StructureMap.group.rule.dependent.name [ fhir:value "CompositionClinicalDocumentChEmedMedicationPrescriptionDocument" ];
fhir:StructureMap.group.rule.dependent.variable [
fhir:value "bundle";
fhir:index 0 ], [
fhir:value "resource";
fhir:index 1 ], [
fhir:value "cda";
fhir:index 2 ] ] ] ]
].
# - ontology header ------------------------------------------------------------
a owl:Ontology;
owl:imports fhir:fhir.ttl.