Data Management with FHIR
0.1.0 - ci-build France (la) flag

Data Management with FHIR - version de développement local (intégration continue v0.1.0) construite par les outils de publication FHIR (HL7® FHIR® Standard). Voir le répertoire des versions publiées

: Alignement de l''expression de besoin vers le modèle physique du DPI dans le cadre de l''usage Core - TTL Representation

Draft as of 2026-07-11

Raw ttl | Download

@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 -------------------------------------------------------------------

<http://hl7.org/fhir/StructureMap/CoreBusiness2Physical> a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "CoreBusiness2Physical"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Narratif généré : StructureMap CoreBusiness2Physical</b></p><a name=\"CoreBusiness2Physical\"> </a><a name=\"hcCoreBusiness2Physical\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreBusiness2Physical<span style=\"color: navy\">\" = \"</span>CoreBusiness2Physical<span style=\"color: navy\">\"#xD;\n#xD;\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Alignement de l''expression de besoin vers le modèle physique du DPI dans le cadre de l''usage Core</span>#xD;\n#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"http://hl7.org/fhir/R4/questionnaireresponse.html\" title=\"QuestionnaireResponse\">http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse</a><span style=\"color: navy\">\" </span><b>alias </b>QR <b>as </b><b>source</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreDataSet<span style=\"color: navy\">\" </span><b>alias </b>DataSet <b>as </b><b>target</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CorePatient<span style=\"color: navy\">\" </span><b>alias </b>PatientTable <b>as </b><b>target</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreAddress<span style=\"color: navy\">\" </span><b>alias </b>AddressTable <b>as </b><b>target</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreSejour<span style=\"color: navy\">\" </span><b>alias </b>SejourTable <b>as </b><b>target</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreBiology<span style=\"color: navy\">\" </span><b>alias </b>BiologyTable <b>as </b><b>target</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreClinical<span style=\"color: navy\">\" </span><b>alias </b>ClinicalTable <b>as </b><b>target</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreDiag<span style=\"color: navy\">\" </span><b>alias </b>DiagTable <b>as </b><b>target</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreActe<span style=\"color: navy\">\" </span><b>alias </b>ActeTable <b>as </b><b>target</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreMedicationAdm<span style=\"color: navy\">\" </span><b>alias </b>MedicationAdmTable <b>as </b><b>target</b>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span>https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreMedicationPre<span style=\"color: navy\">\" </span><b>alias </b>MedicationPreTable <b>as </b><b>target</b>#xD;\n#xD;\n<b>group </b>init<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">srcQR</span><span style=\"color: navy\"> : </span>QR, <b>target</b> <span style=\"color: maroon\">tgtDS</span><span style=\"color: navy\"> : </span>DataSet<span style=\"color: navy\">)</span><b> &lt;&lt;types&gt;&gt;</b><span style=\"color: navy\"> {#xD;\n</span>  srcQR<span style=\"color: navy\"><b> -&gt; </b></span>tgtDS.logicalId = <b>uuid</b><span style=\"color: navy\">(</span><span style=\"color: navy\">)</span> <i>\"setId\"</i><span style=\"color: navy\">;</span>#xD;\n  srcQR<span style=\"color: navy\"><b> -&gt; </b></span> tgtDS.patient<b> as </b><span style=\"color: maroon\">tgtPatient</span><span style=\"color: navy\">, </span> tgtDS.sejour<b> as </b><span style=\"color: maroon\">tgtSejour</span><span style=\"color: navy\">, </span> tgtDS.biology<b> as </b><span style=\"color: maroon\">tgtBiol</span><span style=\"color: navy\">, </span> tgtDS.clinical<b> as </b><span style=\"color: maroon\">tgtClin</span><span style=\"color: navy\">, </span> tgtDS.medicationPre<b> as </b><span style=\"color: maroon\">tgtMedPre</span><span style=\"color: navy\">, </span> tgtDS.medicationAdm<b> as </b><span style=\"color: maroon\">tgtMedAdm</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcQR.subject<b> as </b><span style=\"color: maroon\">srcSubject</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcSubject.identifier<b> as </b><span style=\"color: maroon\">srcSubjectIdentifier</span><b> where </b>system = 'https://dpi.exemple/Patient/PatientNi'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>        srcSubjectIdentifier.value<b> as </b><span style=\"color: maroon\">srcSubjectId</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>          srcQR.item<b> as </b><span style=\"color: maroon\">srcSocioDemoDataItem</span><b> where </b>linkId = '4647259356106'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>            srcSocioDemoDataItem<span style=\"color: navy\"><b> -&gt; </b></span>tgtDS.patient = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'PatientTable'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">newPatient</span><b> then </b>Patient<span style=\"color: navy\">(</span><span style=\"color: maroon\">srcSubjectId</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">srcSocioDemoDataItem</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">newPatient</span><span style=\"color: navy\">)</span> <i>\"setPatient\"</i><span style=\"color: navy\">;</span>#xD;\n            srcSocioDemoDataItem.item<b> as </b><span style=\"color: maroon\">srcEnvItem</span><b> where </b>linkId = '5491974639955'<span style=\"color: navy\"><b> -&gt; </b></span>tgtDS.address = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'AddressTable'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">newAddress</span><b> then </b>Environement<span style=\"color: navy\">(</span><span style=\"color: maroon\">srcSubjectId</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">srcEnvItem</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">newAddress</span><span style=\"color: navy\">)</span> <i>\"setEnvironnement\"</i><span style=\"color: navy\">;</span>#xD;\n          <span style=\"color: navy\">}</span> <i>\"navigationToSocioDemoData\"</i><span style=\"color: navy\">;</span>#xD;\n          srcQR.item<b> as </b><span style=\"color: maroon\">srcPMSIDataItem</span><b> where </b>linkId = '2825244231605'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>            srcPMSIDataItem.item<b> as </b><span style=\"color: maroon\">srcPMSISexeItem</span><b> where </b>linkId = '3894630481120'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>              srcPMSISexeItem.answer<b> as </b><span style=\"color: maroon\">srcPMSISexeAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>                srcPMSISexeAnswer.value<span style=\"color: navy\"> : </span>Coding<b> as </b><span style=\"color: maroon\">srcPMSISexeValueCoding</span><span style=\"color: navy\"><b> -&gt; </b></span>tgtPatient.gender = <span style=\"color: navy\">(</span>%srcPMSISexeValueCoding.code<span style=\"color: navy\">)</span> <i>\"SetPMSISexeValue\"</i><span style=\"color: navy\">;</span>#xD;\n              <span style=\"color: navy\">}</span> <i>\"SetPMSISexeAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n            <span style=\"color: navy\">}</span> <i>\"setPMSISexe\"</i><span style=\"color: navy\">;</span>#xD;\n            srcPMSIDataItem.item<b> as </b><span style=\"color: maroon\">srcPMSIDiagItem</span><b> where </b>linkId = '9391816419630'<span style=\"color: navy\"><b> -&gt; </b></span>tgtDS.diag = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'DiagTable'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">newDiag</span><b> then </b>PMSIDiag<span style=\"color: navy\">(</span><span style=\"color: maroon\">srcSubjectId</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">srcPMSIDiagItem</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">newDiag</span><span style=\"color: navy\">)</span> <i>\"navigationToPMSIDiag\"</i><span style=\"color: navy\">;</span>#xD;\n            srcPMSIDataItem.item<b> as </b><span style=\"color: maroon\">srcPMSIActeItem</span><b> where </b>linkId = '591926901726'<span style=\"color: navy\"><b> -&gt; </b></span>tgtDS.acte = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'ActeTable'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">newActe</span><b> then </b>PMSIActe<span style=\"color: navy\">(</span><span style=\"color: maroon\">srcSubjectId</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">srcPMSIActeItem</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">newActe</span><span style=\"color: navy\">)</span> <i>\"navigationToPMSIDiag\"</i><span style=\"color: navy\">;</span>#xD;\n          <span style=\"color: navy\">}</span> <i>\"navigationToPMSIData\"</i><span style=\"color: navy\">;</span>#xD;\n        <span style=\"color: navy\">}</span> <i>\"setIdentifierValue\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"selectPatientIdentifier\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"setPatientId\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"setTgtVar\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>Patient<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">srcSubjectId</span>, <b>source</b> <span style=\"color: maroon\">srcSocioDemoDataItem</span>, <b>target</b> <span style=\"color: maroon\">newPatient</span><span style=\"color: navy\"> : </span>PatientTable<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  srcSocioDemoDataItem.item<b> as </b><span style=\"color: maroon\">srcPatientIdItem</span><b> where </b>linkId = '2958000860428'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcPatientIdItem.item<b> as </b><span style=\"color: maroon\">srcNomItem</span><b> where </b>linkId = '8605698058770'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcNomItem.answer<b> as </b><span style=\"color: maroon\">srcNomAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>        srcNomAnswer.value<span style=\"color: navy\"> : </span>string<b> as </b><span style=\"color: maroon\">srcNomValue</span><span style=\"color: navy\"><b> -&gt; </b></span>newPatient.name = <span style=\"color: maroon\">srcNomValue</span> <i>\"SetNomValue\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"setNomAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"setNom\"</i><span style=\"color: navy\">;</span>#xD;\n    srcPatientIdItem.item<b> as </b><span style=\"color: maroon\">srcPrenomItem</span><b> where </b>linkId = '6214879623503'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcPrenomItem.answer<b> as </b><span style=\"color: maroon\">srcPrenomAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>        srcPrenomAnswer.value<span style=\"color: navy\"> : </span>string<b> as </b><span style=\"color: maroon\">srcPrenomValue</span><span style=\"color: navy\"><b> -&gt; </b></span>newPatient.firstName = <span style=\"color: maroon\">srcPrenomValue</span> <i>\"SetPrenomValue\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"setPrenomAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"setPrenom\"</i><span style=\"color: navy\">;</span>#xD;\n    srcPatientIdItem.item<b> as </b><span style=\"color: maroon\">srcNIRItem</span><b> where </b>linkId = '5711960356160'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcNIRItem.answer<b> as </b><span style=\"color: maroon\">srcNIRAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>        srcNIRAnswer.value<span style=\"color: navy\"> : </span>string<b> as </b><span style=\"color: maroon\">srcNIRValue</span><span style=\"color: navy\"><b> -&gt; </b></span>newPatient.nir = <span style=\"color: maroon\">srcNIRValue</span> <i>\"SetNIRValue\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"setNIRAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"setNIR\"</i><span style=\"color: navy\">;</span>#xD;\n    srcPatientIdItem.item<b> as </b><span style=\"color: maroon\">srcDDNItem</span><b> where </b>linkId = '5036133558154'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcDDNItem.answer<b> as </b><span style=\"color: maroon\">srcDDNAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>        srcDDNAnswer.value<span style=\"color: navy\"> : </span>date<b> as </b><span style=\"color: maroon\">srcDDNValue</span><span style=\"color: navy\"><b> -&gt; </b></span>newPatient.birthDate = <span style=\"color: maroon\">srcDDNValue</span> <i>\"SetDDNValue\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"setDDNAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"setDDN\"</i><span style=\"color: navy\">;</span>#xD;\n    srcPatientIdItem.item<b> as </b><span style=\"color: maroon\">srcDDDItem</span><b> where </b>linkId = '5036133558154'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcDDDItem.answer<b> as </b><span style=\"color: maroon\">srcDDDAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>        srcDDDAnswer.value<span style=\"color: navy\"> : </span>date<b> as </b><span style=\"color: maroon\">srcDDDValue</span> <i>\"SetDDDValue\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"setDDDAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n      srcDDDItem.item<b> as </b><span style=\"color: maroon\">srcDDDSourceItem</span><b> where </b>linkId = '9098810065693'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>        srcDDDSourceItem.answer<b> as </b><span style=\"color: maroon\">srcDDDSourceAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>          srcDDDSourceAnswer.value<span style=\"color: navy\"> : </span>Coding<b> as </b><span style=\"color: maroon\">srcDDDSourceValue</span> <i>\"SetDDDSourceValue\"</i><span style=\"color: navy\">;</span>#xD;\n        <span style=\"color: navy\">}</span> <i>\"setDDDSourceAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"setDDDSource\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"setDDD\"</i><span style=\"color: navy\">;</span>#xD;\n    srcPatientIdItem.item<b> as </b><span style=\"color: maroon\">srcGemRankItem</span><b> where </b>linkId = '6931296968515'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcGemRankItem.answer<b> as </b><span style=\"color: maroon\">srcGemRankAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>        srcGemRankAnswer.value<span style=\"color: navy\"> : </span>integer<b> as </b><span style=\"color: maroon\">srcGemRankValue</span> <i>\"SetGemRankValue\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"SetGemRankAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"SetGemRank\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"navigationToPatientId\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>Environement<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">srcSubjectId</span>, <b>source</b> <span style=\"color: maroon\">srcEnvItem</span>, <b>target</b> <span style=\"color: maroon\">newAddress</span><span style=\"color: navy\"> : </span>AddressTable<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  srcEnvItem.item<b> as </b><span style=\"color: maroon\">srcGeocodItem</span><b> where </b>linkId = '3816475533472'<span style=\"color: navy\"><b> -&gt; </b></span>newAddress.patientNi<b> as </b><span style=\"color: maroon\">newAddressPatient</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcGeocodItem<span style=\"color: navy\"><b> -&gt; </b></span>newAddressPatient.reference = <span style=\"color: navy\">(</span>'PatientCore/' + %srcSubjectId.toString()<span style=\"color: navy\">)</span> <i>\"setAddressPatientRef\"</i><span style=\"color: navy\">;</span>#xD;\n    srcGeocodItem.item<b> as </b><span style=\"color: maroon\">srcLatItem</span><b> where </b>linkId = '3709843054556'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcLatItem.answer<b> as </b><span style=\"color: maroon\">srcLatAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>        srcLatAnswer.value<span style=\"color: navy\"> : </span>decimal<b> as </b><span style=\"color: maroon\">srcLatValue</span><span style=\"color: navy\"><b> -&gt; </b></span>newAddress.latitude = <span style=\"color: maroon\">srcLatValue</span> <i>\"SetLatValue\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"setLatAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"setLat\"</i><span style=\"color: navy\">;</span>#xD;\n    srcGeocodItem.item<b> as </b><span style=\"color: maroon\">srcLongItem</span><b> where </b>linkId = '7651448032665'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcLongItem.answer<b> as </b><span style=\"color: maroon\">srcLongAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>        srcLongAnswer.value<span style=\"color: navy\"> : </span>decimal<b> as </b><span style=\"color: maroon\">srcLongValue</span><span style=\"color: navy\"><b> -&gt; </b></span>newAddress.longitude = <span style=\"color: maroon\">srcLongValue</span> <i>\"SetLongValue\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"setLongAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"setLong\"</i><span style=\"color: navy\">;</span>#xD;\n    srcGeocodItem.item<b> as </b><span style=\"color: maroon\">srcGeocodDateItem</span><b> where </b>linkId = '1185653257776'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcGeocodDateItem.answer<b> as </b><span style=\"color: maroon\">srcGeocodDateAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>        srcGeocodDateAnswer.value<span style=\"color: navy\"> : </span>date<b> as </b><span style=\"color: maroon\">srcGeocodDateValue</span> <i>\"SetGeocodDateValue\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"setGeocodDateAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"setGeocodDate\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"navigationToGeocod\"</i><span style=\"color: navy\">;</span>#xD;\n  srcEnvItem.item<b> as </b><span style=\"color: maroon\">srcIrisItem</span><b> where </b>linkId = '7621032273792'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcIrisItem.answer<b> as </b><span style=\"color: maroon\">srcIrisAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcIrisAnswer.value<span style=\"color: navy\"> : </span>Coding<b> as </b><span style=\"color: maroon\">srcIrisValue</span> <i>\"SetIrisValue\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"setIrisAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n    srcIrisItem.item<b> as </b><span style=\"color: maroon\">srcIrisDateItem</span><b> where </b>linkId = '4999580038872'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcIrisDateItem.answer<b> as </b><span style=\"color: maroon\">srcIrisDateAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>        srcIrisDateAnswer.value<span style=\"color: navy\"> : </span>date<b> as </b><span style=\"color: maroon\">srcIrisDateValue</span> <i>\"SetIrisDateValue\"</i><span style=\"color: navy\">;</span>#xD;\n      <span style=\"color: navy\">}</span> <i>\"setIrisDateAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"setIrisDate\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"setIris\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>PMSIDiag<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">srcSubjectId</span>, <b>source</b> <span style=\"color: maroon\">srcPMSIDiagItem</span>, <b>target</b> <span style=\"color: maroon\">newDiag</span><span style=\"color: navy\"> : </span>DiagTable<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  srcPMSIDiagItem<span style=\"color: navy\"><b> -&gt; </b></span>newDiag.patientNi<b> as </b><span style=\"color: maroon\">newDiagPatient</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcPMSIDiagItem<span style=\"color: navy\"><b> -&gt; </b></span>newDiagPatient.reference = <span style=\"color: navy\">(</span>'PatientCore/' + %srcSubjectId.toString()<span style=\"color: navy\">)</span> <i>\"setDiagPatientRef\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"setDiagPatient\"</i><span style=\"color: navy\">;</span>#xD;\n  srcPMSIDiagItem.item<b> as </b><span style=\"color: maroon\">srcPMSIDiagDateItem</span><b> where </b>linkId = '7114466839467'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcPMSIDiagDateItem.answer<b> as </b><span style=\"color: maroon\">srcPMSIDiagDateAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcPMSIDiagDateAnswer.value<span style=\"color: navy\"> : </span>date<b> as </b><span style=\"color: maroon\">srcPMSIDiagDateValue</span> <i>\"SetPMSIDiagDateValue\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"SetPMSIDiagDateAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"SetPMSIDiagDate\"</i><span style=\"color: navy\">;</span>#xD;\n  srcPMSIDiagItem.item<b> as </b><span style=\"color: maroon\">srcPMSIDiagTypeItem</span><b> where </b>linkId = '6427586743735'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcPMSIDiagTypeItem.answer<b> as </b><span style=\"color: maroon\">srcPMSIDiagTypeAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcPMSIDiagTypeAnswer.value<span style=\"color: navy\"> : </span>Coding<b> as </b><span style=\"color: maroon\">srcPMSIDiagTypeValueCoding</span><span style=\"color: navy\"><b> -&gt; </b></span>newDiag.codeType = <span style=\"color: navy\">(</span>%srcPMSIDiagTypeValueCoding.display<span style=\"color: navy\">)</span> <i>\"SetPMSIDiagTypeValue\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"SetPMSIDiagTypeAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"SetPMSIDiagType\"</i><span style=\"color: navy\">;</span>#xD;\n  srcPMSIDiagItem.item<b> as </b><span style=\"color: maroon\">srcPMSIDiagCodeItem</span><b> where </b>linkId = '5505101189372'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcPMSIDiagCodeItem.answer<b> as </b><span style=\"color: maroon\">srcPMSIDiagCodeAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcPMSIDiagCodeAnswer.value<span style=\"color: navy\"> : </span>Coding<b> as </b><span style=\"color: maroon\">srcPMSIDiagCodeValueCoding</span><span style=\"color: navy\"><b> -&gt; </b></span>newDiag.code = <span style=\"color: navy\">(</span>%srcPMSIDiagCodeValueCoding.code<span style=\"color: navy\">)</span> <i>\"SetPMSIDiagCodeValue\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"SetPMSIDiagCodeAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"SetPMSIDiagCode\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span><b>group </b>PMSIActe<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">srcSubjectId</span>, <b>source</b> <span style=\"color: maroon\">srcPMSIActeItem</span>, <b>target</b> <span style=\"color: maroon\">newActe</span><span style=\"color: navy\"> : </span>ActeTable<span style=\"color: navy\">)</span><span style=\"color: navy\"> {#xD;\n</span>  srcPMSIActeItem<span style=\"color: navy\"><b> -&gt; </b></span>newActe.patientNi<b> as </b><span style=\"color: maroon\">newActePatient</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcPMSIActeItem<span style=\"color: navy\"><b> -&gt; </b></span>newActePatient.reference = <span style=\"color: navy\">(</span>'PatientCore/' + %srcSubjectId.toString()<span style=\"color: navy\">)</span> <i>\"setActePatientRef\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"setActePatient\"</i><span style=\"color: navy\">;</span>#xD;\n  srcPMSIActeItem.item<b> as </b><span style=\"color: maroon\">srcPMSIActeDateRecItem</span><b> where </b>linkId = '9436509453137'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcPMSIActeDateRecItem.answer<b> as </b><span style=\"color: maroon\">srcPMSIActeDateRecAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcPMSIActeDateRecAnswer.value<span style=\"color: navy\"> : </span>date<b> as </b><span style=\"color: maroon\">srcPMSIActeDateRecValue</span> <i>\"SetPMSIActeDateRecValue\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"SetPMSIActeDateRecAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"SetPMSIActeDateRec\"</i><span style=\"color: navy\">;</span>#xD;\n  srcPMSIActeItem.item<b> as </b><span style=\"color: maroon\">srcPMSIActeDateItem</span><b> where </b>linkId = '5066866286682'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcPMSIActeDateItem.answer<b> as </b><span style=\"color: maroon\">srcPMSIActeDateAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcPMSIActeDateAnswer.value<span style=\"color: navy\"> : </span>dateTime<b> as </b><span style=\"color: maroon\">srcPMSIActeDateValue</span><span style=\"color: navy\"><b> -&gt; </b></span> newActe.dateStart = <span style=\"color: maroon\">srcPMSIActeDateValue</span><span style=\"color: navy\">, </span> newActe.dateEnd = <span style=\"color: maroon\">srcPMSIActeDateValue</span> <i>\"SetPMSIActeDateValue\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"SetPMSIActeDateAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"SetPMSIActeDate\"</i><span style=\"color: navy\">;</span>#xD;\n  srcPMSIActeItem.item<b> as </b><span style=\"color: maroon\">srcPMSIActeCodeItem</span><b> where </b>linkId = '7758110033600'<b> then</b><span style=\"color: navy\"> {#xD;\n</span>    srcPMSIActeCodeItem.answer<b> as </b><span style=\"color: maroon\">srcPMSIActeCodeAnswer</span><b> then</b><span style=\"color: navy\"> {#xD;\n</span>      srcPMSIActeCodeAnswer.value<span style=\"color: navy\"> : </span>Coding<b> as </b><span style=\"color: maroon\">srcPMSIActeCodeValueCoding</span><span style=\"color: navy\"><b> -&gt; </b></span>newActe.code = <span style=\"color: navy\">(</span>%srcPMSIActeCodeValueCoding.code<span style=\"color: navy\">)</span> <i>\"SetPMSIActeCodeValue\"</i><span style=\"color: navy\">;</span>#xD;\n    <span style=\"color: navy\">}</span> <i>\"SetPMSIActeCodeAnswer\"</i><span style=\"color: navy\">;</span>#xD;\n  <span style=\"color: navy\">}</span> <i>\"SetPMSIActeCode\"</i><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"
  ] ;
  fhir:StructureMap.url [ fhir:value "https://interop.aphp.fr/ig/fhir/dm/StructureMap/CoreBusiness2Physical"] ;
  fhir:StructureMap.version [ fhir:value "0.1.0"] ;
  fhir:StructureMap.name [ fhir:value "CoreBusiness2Physical"] ;
  fhir:StructureMap.title [ fhir:value "Alignement de l''expression de besoin vers le modèle physique du DPI dans le cadre de l''usage Core"] ;
  fhir:StructureMap.status [ fhir:value "draft"] ;
  fhir:StructureMap.date [ fhir:value "2026-07-11T15:40:47+00:00"^^xsd:dateTime] ;
  fhir:StructureMap.publisher [ fhir:value "AP-HP"] ;
  fhir:StructureMap.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "AP-HP" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://aphp.fr" ]
     ]
  ] ;
  fhir:StructureMap.description [ fhir:value "Alignement de l''expression de besoin vers le modèle physique du DPI dans le cadre de l''usage Core"] ;
  fhir:StructureMap.jurisdiction [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "FR" ]
     ]
  ] ;
  fhir:StructureMap.structure [
     fhir:index 0 ;
     fhir:StructureMap.structure.url [
       fhir:value "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" ;
       fhir:link <http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "source" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "QR" ]
  ], [
     fhir:index 1 ;
     fhir:StructureMap.structure.url [
       fhir:value "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreDataSet" ;
       fhir:link <https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreDataSet>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "DataSet" ]
  ], [
     fhir:index 2 ;
     fhir:StructureMap.structure.url [
       fhir:value "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CorePatient" ;
       fhir:link <https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CorePatient>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "PatientTable" ]
  ], [
     fhir:index 3 ;
     fhir:StructureMap.structure.url [
       fhir:value "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreAddress" ;
       fhir:link <https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreAddress>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "AddressTable" ]
  ], [
     fhir:index 4 ;
     fhir:StructureMap.structure.url [
       fhir:value "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreSejour" ;
       fhir:link <https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreSejour>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "SejourTable" ]
  ], [
     fhir:index 5 ;
     fhir:StructureMap.structure.url [
       fhir:value "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreBiology" ;
       fhir:link <https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreBiology>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "BiologyTable" ]
  ], [
     fhir:index 6 ;
     fhir:StructureMap.structure.url [
       fhir:value "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreClinical" ;
       fhir:link <https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreClinical>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "ClinicalTable" ]
  ], [
     fhir:index 7 ;
     fhir:StructureMap.structure.url [
       fhir:value "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreDiag" ;
       fhir:link <https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreDiag>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "DiagTable" ]
  ], [
     fhir:index 8 ;
     fhir:StructureMap.structure.url [
       fhir:value "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreActe" ;
       fhir:link <https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreActe>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "ActeTable" ]
  ], [
     fhir:index 9 ;
     fhir:StructureMap.structure.url [
       fhir:value "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreMedicationAdm" ;
       fhir:link <https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreMedicationAdm>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "MedicationAdmTable" ]
  ], [
     fhir:index 10 ;
     fhir:StructureMap.structure.url [
       fhir:value "https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreMedicationPre" ;
       fhir:link <https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/CoreMedicationPre>
     ] ;
     fhir:StructureMap.structure.mode [ fhir:value "target" ] ;
     fhir:StructureMap.structure.alias [ fhir:value "MedicationPreTable" ]
  ] ;
  fhir:StructureMap.group [
     fhir:index 0 ;
     fhir:StructureMap.group.name [ fhir:value "init" ] ;
     fhir:StructureMap.group.typeMode [ fhir:value "types" ] ;
     fhir:StructureMap.group.input [
       fhir:index 0 ;
       fhir:StructureMap.group.input.name [ fhir:value "srcQR" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "QR" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ]
     ], [
       fhir:index 1 ;
       fhir:StructureMap.group.input.name [ fhir:value "tgtDS" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "DataSet" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "target" ]
     ] ;
     fhir:StructureMap.group.rule [
       fhir:index 0 ;
       fhir:StructureMap.group.rule.name [ fhir:value "setId" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "srcQR" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgtDS" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "logicalId" ] ;
         fhir:StructureMap.group.rule.target.transform [ fhir:value "uuid" ]
       ]
     ], [
       fhir:index 1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "setTgtVar" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "srcQR" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgtDS" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "patient" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtPatient" ]
       ], [
         fhir:index 1 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgtDS" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "sejour" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtSejour" ]
       ], [
         fhir:index 2 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgtDS" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "biology" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtBiol" ]
       ], [
         fhir:index 3 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgtDS" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "clinical" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtClin" ]
       ], [
         fhir:index 4 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgtDS" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "medicationPre" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtMedPre" ]
       ], [
         fhir:index 5 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "tgtDS" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "medicationAdm" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "tgtMedAdm" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "setPatientId" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcQR" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "subject" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcSubject" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "selectPatientIdentifier" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcSubject" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "identifier" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcSubjectIdentifier" ] ;
             fhir:StructureMap.group.rule.source.condition [ fhir:value "system = 'https://dpi.exemple/Patient/PatientNi'" ]
           ] ;
           fhir:StructureMap.group.rule.rule [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.name [ fhir:value "setIdentifierValue" ] ;
             fhir:StructureMap.group.rule.source [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.source.context [ fhir:value "srcSubjectIdentifier" ] ;
               fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
               fhir:StructureMap.group.rule.source.variable [ fhir:value "srcSubjectId" ]
             ] ;
             fhir:StructureMap.group.rule.rule [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.name [ fhir:value "navigationToSocioDemoData" ] ;
               fhir:StructureMap.group.rule.source [
                 fhir:index 0 ;
                 fhir:StructureMap.group.rule.source.context [ fhir:value "srcQR" ] ;
                 fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
                 fhir:StructureMap.group.rule.source.variable [ fhir:value "srcSocioDemoDataItem" ] ;
                 fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '4647259356106'" ]
               ] ;
               fhir:StructureMap.group.rule.rule [
                 fhir:index 0 ;
                 fhir:StructureMap.group.rule.name [ fhir:value "setPatient" ] ;
                 fhir:StructureMap.group.rule.source [
                   fhir:index 0 ;
                   fhir:StructureMap.group.rule.source.context [ fhir:value "srcSocioDemoDataItem" ]
                 ] ;
                 fhir:StructureMap.group.rule.target [
                   fhir:index 0 ;
                   fhir:StructureMap.group.rule.target.context [ fhir:value "tgtDS" ] ;
                   fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
                   fhir:StructureMap.group.rule.target.element [ fhir:value "patient" ] ;
                   fhir:StructureMap.group.rule.target.variable [ fhir:value "newPatient" ] ;
                   fhir:StructureMap.group.rule.target.transform [ fhir:value "create" ] ;
                   fhir:StructureMap.group.rule.target.parameter [
                     fhir:index 0 ;
                     fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "PatientTable" ]
                   ]
                 ] ;
                 fhir:StructureMap.group.rule.dependent [
                   fhir:index 0 ;
                   fhir:StructureMap.group.rule.dependent.name [ fhir:value "Patient" ] ;
                   fhir:StructureMap.group.rule.dependent.variable [
                     fhir:value "srcSubjectId" ;
                     fhir:index 0
                   ], [
                     fhir:value "srcSocioDemoDataItem" ;
                     fhir:index 1
                   ], [
                     fhir:value "newPatient" ;
                     fhir:index 2
                   ]
                 ]
               ], [
                 fhir:index 1 ;
                 fhir:StructureMap.group.rule.name [ fhir:value "setEnvironnement" ] ;
                 fhir:StructureMap.group.rule.source [
                   fhir:index 0 ;
                   fhir:StructureMap.group.rule.source.context [ fhir:value "srcSocioDemoDataItem" ] ;
                   fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
                   fhir:StructureMap.group.rule.source.variable [ fhir:value "srcEnvItem" ] ;
                   fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '5491974639955'" ]
                 ] ;
                 fhir:StructureMap.group.rule.target [
                   fhir:index 0 ;
                   fhir:StructureMap.group.rule.target.context [ fhir:value "tgtDS" ] ;
                   fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
                   fhir:StructureMap.group.rule.target.element [ fhir:value "address" ] ;
                   fhir:StructureMap.group.rule.target.variable [ fhir:value "newAddress" ] ;
                   fhir:StructureMap.group.rule.target.transform [ fhir:value "create" ] ;
                   fhir:StructureMap.group.rule.target.parameter [
                     fhir:index 0 ;
                     fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "AddressTable" ]
                   ]
                 ] ;
                 fhir:StructureMap.group.rule.dependent [
                   fhir:index 0 ;
                   fhir:StructureMap.group.rule.dependent.name [ fhir:value "Environement" ] ;
                   fhir:StructureMap.group.rule.dependent.variable [
                     fhir:value "srcSubjectId" ;
                     fhir:index 0
                   ], [
                     fhir:value "srcEnvItem" ;
                     fhir:index 1
                   ], [
                     fhir:value "newAddress" ;
                     fhir:index 2
                   ]
                 ]
               ]
             ], [
               fhir:index 1 ;
               fhir:StructureMap.group.rule.name [ fhir:value "navigationToPMSIData" ] ;
               fhir:StructureMap.group.rule.source [
                 fhir:index 0 ;
                 fhir:StructureMap.group.rule.source.context [ fhir:value "srcQR" ] ;
                 fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
                 fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIDataItem" ] ;
                 fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '2825244231605'" ]
               ] ;
               fhir:StructureMap.group.rule.rule [
                 fhir:index 0 ;
                 fhir:StructureMap.group.rule.name [ fhir:value "setPMSISexe" ] ;
                 fhir:StructureMap.group.rule.source [
                   fhir:index 0 ;
                   fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIDataItem" ] ;
                   fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
                   fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSISexeItem" ] ;
                   fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '3894630481120'" ]
                 ] ;
                 fhir:StructureMap.group.rule.rule [
                   fhir:index 0 ;
                   fhir:StructureMap.group.rule.name [ fhir:value "SetPMSISexeAnswer" ] ;
                   fhir:StructureMap.group.rule.source [
                     fhir:index 0 ;
                     fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSISexeItem" ] ;
                     fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
                     fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSISexeAnswer" ]
                   ] ;
                   fhir:StructureMap.group.rule.rule [
                     fhir:index 0 ;
                     fhir:StructureMap.group.rule.name [ fhir:value "SetPMSISexeValue" ] ;
                     fhir:StructureMap.group.rule.source [
                       fhir:index 0 ;
                       fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSISexeAnswer" ] ;
                       fhir:StructureMap.group.rule.source.type [ fhir:value "Coding" ] ;
                       fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
                       fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSISexeValueCoding" ]
                     ] ;
                     fhir:StructureMap.group.rule.target [
                       fhir:index 0 ;
                       fhir:StructureMap.group.rule.target.context [ fhir:value "tgtPatient" ] ;
                       fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
                       fhir:StructureMap.group.rule.target.element [ fhir:value "gender" ] ;
                       fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ] ;
                       fhir:StructureMap.group.rule.target.parameter [
                         fhir:index 0 ;
                         fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "%srcPMSISexeValueCoding.code" ]
                       ]
                     ]
                   ]
                 ]
               ], [
                 fhir:index 1 ;
                 fhir:StructureMap.group.rule.name [ fhir:value "navigationToPMSIDiag" ] ;
                 fhir:StructureMap.group.rule.source [
                   fhir:index 0 ;
                   fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIDataItem" ] ;
                   fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
                   fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIDiagItem" ] ;
                   fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '9391816419630'" ]
                 ] ;
                 fhir:StructureMap.group.rule.target [
                   fhir:index 0 ;
                   fhir:StructureMap.group.rule.target.context [ fhir:value "tgtDS" ] ;
                   fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
                   fhir:StructureMap.group.rule.target.element [ fhir:value "diag" ] ;
                   fhir:StructureMap.group.rule.target.variable [ fhir:value "newDiag" ] ;
                   fhir:StructureMap.group.rule.target.transform [ fhir:value "create" ] ;
                   fhir:StructureMap.group.rule.target.parameter [
                     fhir:index 0 ;
                     fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "DiagTable" ]
                   ]
                 ] ;
                 fhir:StructureMap.group.rule.dependent [
                   fhir:index 0 ;
                   fhir:StructureMap.group.rule.dependent.name [ fhir:value "PMSIDiag" ] ;
                   fhir:StructureMap.group.rule.dependent.variable [
                     fhir:value "srcSubjectId" ;
                     fhir:index 0
                   ], [
                     fhir:value "srcPMSIDiagItem" ;
                     fhir:index 1
                   ], [
                     fhir:value "newDiag" ;
                     fhir:index 2
                   ]
                 ]
               ], [
                 fhir:index 2 ;
                 fhir:StructureMap.group.rule.name [ fhir:value "navigationToPMSIDiag" ] ;
                 fhir:StructureMap.group.rule.source [
                   fhir:index 0 ;
                   fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIDataItem" ] ;
                   fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
                   fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIActeItem" ] ;
                   fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '591926901726'" ]
                 ] ;
                 fhir:StructureMap.group.rule.target [
                   fhir:index 0 ;
                   fhir:StructureMap.group.rule.target.context [ fhir:value "tgtDS" ] ;
                   fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
                   fhir:StructureMap.group.rule.target.element [ fhir:value "acte" ] ;
                   fhir:StructureMap.group.rule.target.variable [ fhir:value "newActe" ] ;
                   fhir:StructureMap.group.rule.target.transform [ fhir:value "create" ] ;
                   fhir:StructureMap.group.rule.target.parameter [
                     fhir:index 0 ;
                     fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "ActeTable" ]
                   ]
                 ] ;
                 fhir:StructureMap.group.rule.dependent [
                   fhir:index 0 ;
                   fhir:StructureMap.group.rule.dependent.name [ fhir:value "PMSIActe" ] ;
                   fhir:StructureMap.group.rule.dependent.variable [
                     fhir:value "srcSubjectId" ;
                     fhir:index 0
                   ], [
                     fhir:value "srcPMSIActeItem" ;
                     fhir:index 1
                   ], [
                     fhir:value "newActe" ;
                     fhir:index 2
                   ]
                 ]
               ]
             ]
           ]
         ]
       ]
     ]
  ], [
     fhir:index 1 ;
     fhir:StructureMap.group.name [ fhir:value "Patient" ] ;
     fhir:StructureMap.group.typeMode [ fhir:value "none" ] ;
     fhir:StructureMap.group.input [
       fhir:index 0 ;
       fhir:StructureMap.group.input.name [ fhir:value "srcSubjectId" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ]
     ], [
       fhir:index 1 ;
       fhir:StructureMap.group.input.name [ fhir:value "srcSocioDemoDataItem" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ]
     ], [
       fhir:index 2 ;
       fhir:StructureMap.group.input.name [ fhir:value "newPatient" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "PatientTable" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "target" ]
     ] ;
     fhir:StructureMap.group.rule [
       fhir:index 0 ;
       fhir:StructureMap.group.rule.name [ fhir:value "navigationToPatientId" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "srcSocioDemoDataItem" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPatientIdItem" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '2958000860428'" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "setNom" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcPatientIdItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcNomItem" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '8605698058770'" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "setNomAnswer" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcNomItem" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcNomAnswer" ]
           ] ;
           fhir:StructureMap.group.rule.rule [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.name [ fhir:value "SetNomValue" ] ;
             fhir:StructureMap.group.rule.source [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.source.context [ fhir:value "srcNomAnswer" ] ;
               fhir:StructureMap.group.rule.source.type [ fhir:value "string" ] ;
               fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
               fhir:StructureMap.group.rule.source.variable [ fhir:value "srcNomValue" ]
             ] ;
             fhir:StructureMap.group.rule.target [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.target.context [ fhir:value "newPatient" ] ;
               fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
               fhir:StructureMap.group.rule.target.element [ fhir:value "name" ] ;
               fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
               fhir:StructureMap.group.rule.target.parameter [
                 fhir:index 0 ;
                 fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "srcNomValue" ]
               ]
             ]
           ]
         ]
       ], [
         fhir:index 1 ;
         fhir:StructureMap.group.rule.name [ fhir:value "setPrenom" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcPatientIdItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPrenomItem" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '6214879623503'" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "setPrenomAnswer" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcPrenomItem" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPrenomAnswer" ]
           ] ;
           fhir:StructureMap.group.rule.rule [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.name [ fhir:value "SetPrenomValue" ] ;
             fhir:StructureMap.group.rule.source [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.source.context [ fhir:value "srcPrenomAnswer" ] ;
               fhir:StructureMap.group.rule.source.type [ fhir:value "string" ] ;
               fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
               fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPrenomValue" ]
             ] ;
             fhir:StructureMap.group.rule.target [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.target.context [ fhir:value "newPatient" ] ;
               fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
               fhir:StructureMap.group.rule.target.element [ fhir:value "firstName" ] ;
               fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
               fhir:StructureMap.group.rule.target.parameter [
                 fhir:index 0 ;
                 fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "srcPrenomValue" ]
               ]
             ]
           ]
         ]
       ], [
         fhir:index 2 ;
         fhir:StructureMap.group.rule.name [ fhir:value "setNIR" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcPatientIdItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcNIRItem" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '5711960356160'" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "setNIRAnswer" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcNIRItem" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcNIRAnswer" ]
           ] ;
           fhir:StructureMap.group.rule.rule [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.name [ fhir:value "SetNIRValue" ] ;
             fhir:StructureMap.group.rule.source [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.source.context [ fhir:value "srcNIRAnswer" ] ;
               fhir:StructureMap.group.rule.source.type [ fhir:value "string" ] ;
               fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
               fhir:StructureMap.group.rule.source.variable [ fhir:value "srcNIRValue" ]
             ] ;
             fhir:StructureMap.group.rule.target [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.target.context [ fhir:value "newPatient" ] ;
               fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
               fhir:StructureMap.group.rule.target.element [ fhir:value "nir" ] ;
               fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
               fhir:StructureMap.group.rule.target.parameter [
                 fhir:index 0 ;
                 fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "srcNIRValue" ]
               ]
             ]
           ]
         ]
       ], [
         fhir:index 3 ;
         fhir:StructureMap.group.rule.name [ fhir:value "setDDN" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcPatientIdItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcDDNItem" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '5036133558154'" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "setDDNAnswer" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcDDNItem" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcDDNAnswer" ]
           ] ;
           fhir:StructureMap.group.rule.rule [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.name [ fhir:value "SetDDNValue" ] ;
             fhir:StructureMap.group.rule.source [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.source.context [ fhir:value "srcDDNAnswer" ] ;
               fhir:StructureMap.group.rule.source.type [ fhir:value "date" ] ;
               fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
               fhir:StructureMap.group.rule.source.variable [ fhir:value "srcDDNValue" ]
             ] ;
             fhir:StructureMap.group.rule.target [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.target.context [ fhir:value "newPatient" ] ;
               fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
               fhir:StructureMap.group.rule.target.element [ fhir:value "birthDate" ] ;
               fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
               fhir:StructureMap.group.rule.target.parameter [
                 fhir:index 0 ;
                 fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "srcDDNValue" ]
               ]
             ]
           ]
         ]
       ], [
         fhir:index 4 ;
         fhir:StructureMap.group.rule.name [ fhir:value "setDDD" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcPatientIdItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcDDDItem" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '5036133558154'" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "setDDDAnswer" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcDDDItem" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcDDDAnswer" ]
           ] ;
           fhir:StructureMap.group.rule.rule [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.name [ fhir:value "SetDDDValue" ] ;
             fhir:StructureMap.group.rule.source [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.source.context [ fhir:value "srcDDDAnswer" ] ;
               fhir:StructureMap.group.rule.source.type [ fhir:value "date" ] ;
               fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
               fhir:StructureMap.group.rule.source.variable [ fhir:value "srcDDDValue" ]
             ]
           ]
         ], [
           fhir:index 1 ;
           fhir:StructureMap.group.rule.name [ fhir:value "setDDDSource" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcDDDItem" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcDDDSourceItem" ] ;
             fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '9098810065693'" ]
           ] ;
           fhir:StructureMap.group.rule.rule [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.name [ fhir:value "setDDDSourceAnswer" ] ;
             fhir:StructureMap.group.rule.source [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.source.context [ fhir:value "srcDDDSourceItem" ] ;
               fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
               fhir:StructureMap.group.rule.source.variable [ fhir:value "srcDDDSourceAnswer" ]
             ] ;
             fhir:StructureMap.group.rule.rule [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.name [ fhir:value "SetDDDSourceValue" ] ;
               fhir:StructureMap.group.rule.source [
                 fhir:index 0 ;
                 fhir:StructureMap.group.rule.source.context [ fhir:value "srcDDDSourceAnswer" ] ;
                 fhir:StructureMap.group.rule.source.type [ fhir:value "Coding" ] ;
                 fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
                 fhir:StructureMap.group.rule.source.variable [ fhir:value "srcDDDSourceValue" ]
               ]
             ]
           ]
         ]
       ], [
         fhir:index 5 ;
         fhir:StructureMap.group.rule.name [ fhir:value "SetGemRank" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcPatientIdItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcGemRankItem" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '6931296968515'" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "SetGemRankAnswer" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcGemRankItem" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcGemRankAnswer" ]
           ] ;
           fhir:StructureMap.group.rule.rule [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.name [ fhir:value "SetGemRankValue" ] ;
             fhir:StructureMap.group.rule.source [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.source.context [ fhir:value "srcGemRankAnswer" ] ;
               fhir:StructureMap.group.rule.source.type [ fhir:value "integer" ] ;
               fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
               fhir:StructureMap.group.rule.source.variable [ fhir:value "srcGemRankValue" ]
             ]
           ]
         ]
       ]
     ]
  ], [
     fhir:index 2 ;
     fhir:StructureMap.group.name [ fhir:value "Environement" ] ;
     fhir:StructureMap.group.typeMode [ fhir:value "none" ] ;
     fhir:StructureMap.group.input [
       fhir:index 0 ;
       fhir:StructureMap.group.input.name [ fhir:value "srcSubjectId" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ]
     ], [
       fhir:index 1 ;
       fhir:StructureMap.group.input.name [ fhir:value "srcEnvItem" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ]
     ], [
       fhir:index 2 ;
       fhir:StructureMap.group.input.name [ fhir:value "newAddress" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "AddressTable" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "target" ]
     ] ;
     fhir:StructureMap.group.rule [
       fhir:index 0 ;
       fhir:StructureMap.group.rule.name [ fhir:value "navigationToGeocod" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "srcEnvItem" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcGeocodItem" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '3816475533472'" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "newAddress" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "patientNi" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "newAddressPatient" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "setAddressPatientRef" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcGeocodItem" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "newAddressPatient" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "reference" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "'PatientCore/' + %srcSubjectId.toString()" ]
           ]
         ]
       ], [
         fhir:index 1 ;
         fhir:StructureMap.group.rule.name [ fhir:value "setLat" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcGeocodItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcLatItem" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '3709843054556'" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "setLatAnswer" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcLatItem" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcLatAnswer" ]
           ] ;
           fhir:StructureMap.group.rule.rule [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.name [ fhir:value "SetLatValue" ] ;
             fhir:StructureMap.group.rule.source [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.source.context [ fhir:value "srcLatAnswer" ] ;
               fhir:StructureMap.group.rule.source.type [ fhir:value "decimal" ] ;
               fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
               fhir:StructureMap.group.rule.source.variable [ fhir:value "srcLatValue" ]
             ] ;
             fhir:StructureMap.group.rule.target [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.target.context [ fhir:value "newAddress" ] ;
               fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
               fhir:StructureMap.group.rule.target.element [ fhir:value "latitude" ] ;
               fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
               fhir:StructureMap.group.rule.target.parameter [
                 fhir:index 0 ;
                 fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "srcLatValue" ]
               ]
             ]
           ]
         ]
       ], [
         fhir:index 2 ;
         fhir:StructureMap.group.rule.name [ fhir:value "setLong" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcGeocodItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcLongItem" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '7651448032665'" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "setLongAnswer" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcLongItem" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcLongAnswer" ]
           ] ;
           fhir:StructureMap.group.rule.rule [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.name [ fhir:value "SetLongValue" ] ;
             fhir:StructureMap.group.rule.source [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.source.context [ fhir:value "srcLongAnswer" ] ;
               fhir:StructureMap.group.rule.source.type [ fhir:value "decimal" ] ;
               fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
               fhir:StructureMap.group.rule.source.variable [ fhir:value "srcLongValue" ]
             ] ;
             fhir:StructureMap.group.rule.target [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.target.context [ fhir:value "newAddress" ] ;
               fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
               fhir:StructureMap.group.rule.target.element [ fhir:value "longitude" ] ;
               fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
               fhir:StructureMap.group.rule.target.parameter [
                 fhir:index 0 ;
                 fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "srcLongValue" ]
               ]
             ]
           ]
         ]
       ], [
         fhir:index 3 ;
         fhir:StructureMap.group.rule.name [ fhir:value "setGeocodDate" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcGeocodItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcGeocodDateItem" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '1185653257776'" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "setGeocodDateAnswer" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcGeocodDateItem" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcGeocodDateAnswer" ]
           ] ;
           fhir:StructureMap.group.rule.rule [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.name [ fhir:value "SetGeocodDateValue" ] ;
             fhir:StructureMap.group.rule.source [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.source.context [ fhir:value "srcGeocodDateAnswer" ] ;
               fhir:StructureMap.group.rule.source.type [ fhir:value "date" ] ;
               fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
               fhir:StructureMap.group.rule.source.variable [ fhir:value "srcGeocodDateValue" ]
             ]
           ]
         ]
       ]
     ], [
       fhir:index 1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "setIris" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "srcEnvItem" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcIrisItem" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '7621032273792'" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "setIrisAnswer" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcIrisItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcIrisAnswer" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "SetIrisValue" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcIrisAnswer" ] ;
             fhir:StructureMap.group.rule.source.type [ fhir:value "Coding" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcIrisValue" ]
           ]
         ]
       ], [
         fhir:index 1 ;
         fhir:StructureMap.group.rule.name [ fhir:value "setIrisDate" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcIrisItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcIrisDateItem" ] ;
           fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '4999580038872'" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "setIrisDateAnswer" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcIrisDateItem" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcIrisDateAnswer" ]
           ] ;
           fhir:StructureMap.group.rule.rule [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.name [ fhir:value "SetIrisDateValue" ] ;
             fhir:StructureMap.group.rule.source [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.source.context [ fhir:value "srcIrisDateAnswer" ] ;
               fhir:StructureMap.group.rule.source.type [ fhir:value "date" ] ;
               fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
               fhir:StructureMap.group.rule.source.variable [ fhir:value "srcIrisDateValue" ]
             ]
           ]
         ]
       ]
     ]
  ], [
     fhir:index 3 ;
     fhir:StructureMap.group.name [ fhir:value "PMSIDiag" ] ;
     fhir:StructureMap.group.typeMode [ fhir:value "none" ] ;
     fhir:StructureMap.group.input [
       fhir:index 0 ;
       fhir:StructureMap.group.input.name [ fhir:value "srcSubjectId" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ]
     ], [
       fhir:index 1 ;
       fhir:StructureMap.group.input.name [ fhir:value "srcPMSIDiagItem" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ]
     ], [
       fhir:index 2 ;
       fhir:StructureMap.group.input.name [ fhir:value "newDiag" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "DiagTable" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "target" ]
     ] ;
     fhir:StructureMap.group.rule [
       fhir:index 0 ;
       fhir:StructureMap.group.rule.name [ fhir:value "setDiagPatient" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIDiagItem" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "newDiag" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "patientNi" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "newDiagPatient" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "setDiagPatientRef" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIDiagItem" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "newDiagPatient" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "reference" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "'PatientCore/' + %srcSubjectId.toString()" ]
           ]
         ]
       ]
     ], [
       fhir:index 1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIDiagDate" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIDiagItem" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIDiagDateItem" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '7114466839467'" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIDiagDateAnswer" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIDiagDateItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIDiagDateAnswer" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIDiagDateValue" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIDiagDateAnswer" ] ;
             fhir:StructureMap.group.rule.source.type [ fhir:value "date" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIDiagDateValue" ]
           ]
         ]
       ]
     ], [
       fhir:index 2 ;
       fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIDiagType" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIDiagItem" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIDiagTypeItem" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '6427586743735'" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIDiagTypeAnswer" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIDiagTypeItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIDiagTypeAnswer" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIDiagTypeValue" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIDiagTypeAnswer" ] ;
             fhir:StructureMap.group.rule.source.type [ fhir:value "Coding" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIDiagTypeValueCoding" ]
           ] ;
           fhir:StructureMap.group.rule.target [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.context [ fhir:value "newDiag" ] ;
             fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
             fhir:StructureMap.group.rule.target.element [ fhir:value "codeType" ] ;
             fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ] ;
             fhir:StructureMap.group.rule.target.parameter [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "%srcPMSIDiagTypeValueCoding.display" ]
             ]
           ]
         ]
       ]
     ], [
       fhir:index 3 ;
       fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIDiagCode" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIDiagItem" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIDiagCodeItem" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '5505101189372'" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIDiagCodeAnswer" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIDiagCodeItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIDiagCodeAnswer" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIDiagCodeValue" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIDiagCodeAnswer" ] ;
             fhir:StructureMap.group.rule.source.type [ fhir:value "Coding" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIDiagCodeValueCoding" ]
           ] ;
           fhir:StructureMap.group.rule.target [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.context [ fhir:value "newDiag" ] ;
             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 "evaluate" ] ;
             fhir:StructureMap.group.rule.target.parameter [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "%srcPMSIDiagCodeValueCoding.code" ]
             ]
           ]
         ]
       ]
     ]
  ], [
     fhir:index 4 ;
     fhir:StructureMap.group.name [ fhir:value "PMSIActe" ] ;
     fhir:StructureMap.group.typeMode [ fhir:value "none" ] ;
     fhir:StructureMap.group.input [
       fhir:index 0 ;
       fhir:StructureMap.group.input.name [ fhir:value "srcSubjectId" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ]
     ], [
       fhir:index 1 ;
       fhir:StructureMap.group.input.name [ fhir:value "srcPMSIActeItem" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "source" ]
     ], [
       fhir:index 2 ;
       fhir:StructureMap.group.input.name [ fhir:value "newActe" ] ;
       fhir:StructureMap.group.input.type [ fhir:value "ActeTable" ] ;
       fhir:StructureMap.group.input.mode [ fhir:value "target" ]
     ] ;
     fhir:StructureMap.group.rule [
       fhir:index 0 ;
       fhir:StructureMap.group.rule.name [ fhir:value "setActePatient" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIActeItem" ]
       ] ;
       fhir:StructureMap.group.rule.target [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.target.context [ fhir:value "newActe" ] ;
         fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
         fhir:StructureMap.group.rule.target.element [ fhir:value "patientNi" ] ;
         fhir:StructureMap.group.rule.target.variable [ fhir:value "newActePatient" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "setActePatientRef" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIActeItem" ]
         ] ;
         fhir:StructureMap.group.rule.target [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.target.context [ fhir:value "newActePatient" ] ;
           fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
           fhir:StructureMap.group.rule.target.element [ fhir:value "reference" ] ;
           fhir:StructureMap.group.rule.target.transform [ fhir:value "evaluate" ] ;
           fhir:StructureMap.group.rule.target.parameter [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "'PatientCore/' + %srcSubjectId.toString()" ]
           ]
         ]
       ]
     ], [
       fhir:index 1 ;
       fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIActeDateRec" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIActeItem" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIActeDateRecItem" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '9436509453137'" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIActeDateRecAnswer" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIActeDateRecItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIActeDateRecAnswer" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIActeDateRecValue" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIActeDateRecAnswer" ] ;
             fhir:StructureMap.group.rule.source.type [ fhir:value "date" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIActeDateRecValue" ]
           ]
         ]
       ]
     ], [
       fhir:index 2 ;
       fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIActeDate" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIActeItem" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIActeDateItem" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '5066866286682'" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIActeDateAnswer" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIActeDateItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIActeDateAnswer" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIActeDateValue" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIActeDateAnswer" ] ;
             fhir:StructureMap.group.rule.source.type [ fhir:value "dateTime" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIActeDateValue" ]
           ] ;
           fhir:StructureMap.group.rule.target [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.context [ fhir:value "newActe" ] ;
             fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
             fhir:StructureMap.group.rule.target.element [ fhir:value "dateStart" ] ;
             fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
             fhir:StructureMap.group.rule.target.parameter [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "srcPMSIActeDateValue" ]
             ]
           ], [
             fhir:index 1 ;
             fhir:StructureMap.group.rule.target.context [ fhir:value "newActe" ] ;
             fhir:StructureMap.group.rule.target.contextType [ fhir:value "variable" ] ;
             fhir:StructureMap.group.rule.target.element [ fhir:value "dateEnd" ] ;
             fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ] ;
             fhir:StructureMap.group.rule.target.parameter [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.target.parameter.valueId [ fhir:value "srcPMSIActeDateValue" ]
             ]
           ]
         ]
       ]
     ], [
       fhir:index 3 ;
       fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIActeCode" ] ;
       fhir:StructureMap.group.rule.source [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIActeItem" ] ;
         fhir:StructureMap.group.rule.source.element [ fhir:value "item" ] ;
         fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIActeCodeItem" ] ;
         fhir:StructureMap.group.rule.source.condition [ fhir:value "linkId = '7758110033600'" ]
       ] ;
       fhir:StructureMap.group.rule.rule [
         fhir:index 0 ;
         fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIActeCodeAnswer" ] ;
         fhir:StructureMap.group.rule.source [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIActeCodeItem" ] ;
           fhir:StructureMap.group.rule.source.element [ fhir:value "answer" ] ;
           fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIActeCodeAnswer" ]
         ] ;
         fhir:StructureMap.group.rule.rule [
           fhir:index 0 ;
           fhir:StructureMap.group.rule.name [ fhir:value "SetPMSIActeCodeValue" ] ;
           fhir:StructureMap.group.rule.source [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.source.context [ fhir:value "srcPMSIActeCodeAnswer" ] ;
             fhir:StructureMap.group.rule.source.type [ fhir:value "Coding" ] ;
             fhir:StructureMap.group.rule.source.element [ fhir:value "value" ] ;
             fhir:StructureMap.group.rule.source.variable [ fhir:value "srcPMSIActeCodeValueCoding" ]
           ] ;
           fhir:StructureMap.group.rule.target [
             fhir:index 0 ;
             fhir:StructureMap.group.rule.target.context [ fhir:value "newActe" ] ;
             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 "evaluate" ] ;
             fhir:StructureMap.group.rule.target.parameter [
               fhir:index 0 ;
               fhir:StructureMap.group.rule.target.parameter.valueString [ fhir:value "%srcPMSIActeCodeValueCoding.code" ]
             ]
           ]
         ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/StructureMap/CoreBusiness2Physical.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/StructureMap/CoreBusiness2Physical.ttl> .