Data Management with FHIR
0.1.0 - ci-build

Data Management with FHIR - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## : 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 2025-10-23

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

    # - resource -------------------------------------------------------------------

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