Перейти к содержанию

XML примеры для выполнения операции выписки электронного рецепта с ЭЦП

Пример 1

Ресурс Parameters с min набором полей в ресурсе MedicationPrescription

  <Parameters xmlns="http://hl7.org/fhir">
  <parameter>
    <name value="medicationprescription" />
    <resource>
   <MedicationPrescription xmlns="http://hl7.org/fhir">
    <meta>
    <profile value="http://fhir.org/fhir/StructureDefinition/by-medicationprescription" />
    </meta>
    <contained>
        <Medication>
            <id value="internalMedication2" />
            <code>
                <coding>
                    <system value="http://www.pharma.by/Справочник.МеждународноеНаименование" />
                    <code value="402019" />
                    <display value="Эналаприл" />
                </coding>
            </code>
            <isBrand value="false" />
        </Medication>
    </contained>
    <contained>
        <Medication>
            <id value="internalMedication1" />
            <code>
                <coding>
                    <system value="http://www.pharma.by/Справочник.Дозировка" />
                    <code value="37254" />
                    <display value="Эналаприл" />
                </coding>
            </code>
            <isBrand value="true" />
            <kind value="product" />
            <product>
                <ingredient>
                    <item>
                        <reference value="#internalMedication2" />
                    </item>
                </ingredient>
            </product>
        </Medication>
    </contained>
    <extension url="http://fhir.org/fhir/StructureDefinition/by-medicamentType">
        <valueCodeableConcept>
            <coding>
                <system value="http://hl7.org/fhir/vs/by-medicament-type" />
                <code value="medicinal" />
            </coding>
        </valueCodeableConcept>
    </extension>
    <dateWritten value="2015-06-15" />
    <status value="active" />
    <patient>
        <reference value="Patient/{{id_patient}}" />
         <display value="Денисенко Кирилл Дмитриевич" />
         <extension url="http://uiip.bas-net.by/hl7/fhir/patient-medication-card">
            <valueReference>
                <reference value="Patient?identifier=5416066995391156" />
            </valueReference>
        </extension>
    </patient>
    <prescriber>
         <display value="Титчев Сергей Леонидович" />
        <reference value="Practitioner/{{id_practitioner}}" />
        <extension url="http://uiip.bas-net.by/hl7/fhir/practitioner-personal-passport-number">
            <valueReference>
                <reference value="Practitioner?identifier=6524020L267RA4" />
            </valueReference>
        </extension>
    </prescriber>
    <medication>
        <reference value="#internalMedication1" />
    </medication>
    <dosageInstruction>
        <text value="По 1 таблетке 2 раза в день" />
    </dosageInstruction>
    <dispense>
        <validityPeriod>
            <start value="2016-10-05" />
            <end value="2020-01-01" />
        </validityPeriod>
        <numberOfRepeatsAllowed value="1" />
        <quantity>
            <value value="10.0" />
        </quantity>
    </dispense>
</MedicationPrescription>
 </resource> 
</parameter>
<parameter>
         <name value="DigitalSignature"/>
         <valueBase64Binary value=""/>
</parameter>
</Parameters>

Ресурс MedicationPrescription, подготовленный для подписи

<MedicationPrescription xmlns="http://hl7.org/fhir"><contained><Medication><code><coding><code value="37254" /><display value="Эналаприл" /><system value="http://www.pharma.by/Справочник.Дозировка" /></coding></code><id value="internalMedication1" /><isBrand value="true" /><kind value="product" /><product><ingredient><item><reference value="#internalMedication2" /></item></ingredient></product></Medication></contained><contained><Medication><code><coding><code value="402019" /><display value="Эналаприл" /><system value="http://www.pharma.by/Справочник.МеждународноеНаименование" /></coding></code><id value="internalMedication2" /><isBrand value="false" /></Medication></contained><dateWritten value="2015-06-15" /><dispense><numberOfRepeatsAllowed value="1" /><quantity><value value="10.0" /></quantity><validityPeriod><end value="2020-01-01" /><start value="2016-10-05" /></validityPeriod></dispense><dosageInstruction><text value="По 1 таблетке 2 раза в день" /></dosageInstruction><extension url="http://fhir.org/fhir/StructureDefinition/by-medicamentType"><valueCodeableConcept><coding><code value="medicinal" /><system value="http://hl7.org/fhir/vs/by-medicament-type" /></coding></valueCodeableConcept></extension><medication><reference value="#internalMedication1" /></medication><patient><display value="Денисенко Кирилл Дмитриевич" /><extension url="http://uiip.bas-net.by/hl7/fhir/patient-medication-card"><valueReference><reference value="Patient?identifier=5416066995391156" /></valueReference></extension></patient><prescriber><display value="Титчев Сергей Леонидович" /><extension url="http://uiip.bas-net.by/hl7/fhir/practitioner-personal-passport-number"><valueReference><reference value="Practitioner?identifier=6524020L267RA4" /></valueReference></extension></prescriber></MedicationPrescription>

Пример 2

Ресурс Parameters с max набором полей в ресурсе MedicationPrescription

  <Parameters xmlns="http://hl7.org/fhir">
  <parameter>
    <name value="medicationprescription" />
    <resource>
   <MedicationPrescription xmlns="http://hl7.org/fhir">
    <meta>
    <profile value="http://fhir.org/fhir/StructureDefinition/by-medicationprescription" />
    </meta>
        <identifier>
        <system value="http://uiip.bas-net.by/hl7/fhir/serial-number" />
        <value value="МН-0011234567" />
    </identifier>
    <contained>
        <Medication>
            <id value="internalMedication2" />
            <code>
                <coding>
                    <system value="http://www.pharma.by/Справочник.МеждународноеНаименование" />
                    <code value="402019" />
                    <display value="Эналаприл" />
                </coding>
            </code>
            <isBrand value="false" />
        </Medication>
    </contained>
    <contained>
        <Medication>
            <id value="internalMedication1" />
            <code>
                <coding>
                    <system value="http://www.pharma.by/Справочник.Дозировка" />
                    <code value="37254" />
                    <display value="Эналаприл" />
                </coding>
            </code>
            <isBrand value="true" />
            <kind value="product" />
            <product>
                <form>
                    <coding>
                        <system value="http://www.pharma.by/Справочник.ЛекарственнаяФорма" />
                        <code value="0001" />
                        <display value="таблетки" />
                    </coding>
                </form>
                <ingredient>
                    <item>
                        <reference value="#internalMedication2" />
                    </item>
                </ingredient>
            </product>
        </Medication>
    </contained>
    <extension url="http://fhir.org/fhir/StructureDefinition/by-medicamentType">
        <valueCodeableConcept>
            <coding>
                <system value="http://hl7.org/fhir/vs/by-medicament-type" />
                <code value="medicinal" />
            </coding>
        </valueCodeableConcept>
    </extension>
    <extension url="http://fhir.org/fhir/StructureDefinition/by-iteration">
        <valueCodeableConcept>
            <coding>
                <system value="http://hl7.org/fhir/vs/by-iteration" />
                <code value="once" />
            </coding>
        </valueCodeableConcept>
    </extension>
    <extension url="http://fhir.org/fhir/StructureDefinition/by-quantityInIteration">
        <valueDecimal value="10.0" />
    </extension>
     <extension url="http://fhir.org/fhir/StructureDefinition/by-factor">
        <valueDecimal value="0.9" />
    </extension>
    <extension url="http://fhir.org/fhir/StructureDefinition/by-speedProduction">
        <valueCodeableConcept>
            <coding>
                <code value="10" />
                <display value="10" />
                <system value="http://hl7.org/fhir/vs/by-speed-production" />
                </coding>
        </valueCodeableConcept>
    </extension>
     <dateWritten value="2018-06-15" />
    <status value="active" />
    <patient>
        <reference value="Patient/{{id_patient}}" />
         <display value="Денисенко Кирилл Дмитриевич" />
         <extension url="http://uiip.bas-net.by/hl7/fhir/patient-medication-card">
            <valueReference>
                <reference value="Patient?identifier=5416066995391156" />
            </valueReference>
        </extension>
    </patient>
    <prescriber>
         <display value="Титчев Сергей Леонидович" />
        <reference value="Practitioner/{{id_practitioner}}" />
        <extension url="http://uiip.bas-net.by/hl7/fhir/practitioner-personal-passport-number">
            <valueReference>
                <reference value="Practitioner?identifier=6524020L267RA4" />
            </valueReference>
        </extension>
    </prescriber>
    <medication>
        <reference value="#internalMedication1" />
    </medication>
    <dosageInstruction>
        <text value="По 1 таблетке 2 раза в день" />
    </dosageInstruction>
    <dispense>
        <validityPeriod>
            <start value="2018-10-05" />
            <end value="2022-01-01" />
        </validityPeriod>
        <numberOfRepeatsAllowed value="1" />
        <quantity>
            <value value="10.1" />
        </quantity>
    </dispense>
</MedicationPrescription>
 </resource> 
</parameter>
<parameter>
         <name value="DigitalSignature"/>
         <valueBase64Binary value=""/>
</parameter>
</Parameters>

Ресурс MedicationPrescription, подготовленный для подписи

<MedicationPrescription xmlns="http://hl7.org/fhir"><contained><Medication><code><coding><code value="37254" /><display value="Эналаприл" /><system value="http://www.pharma.by/Справочник.Дозировка" /></coding></code><id value="internalMedication1" /><isBrand value="true" /><kind value="product" /><product><form><coding><code value="0001" /><display value="таблетки" /><system value="http://www.pharma.by/Справочник.ЛекарственнаяФорма" /></coding></form><ingredient><item><reference value="#internalMedication2" /></item></ingredient></product></Medication></contained><contained><Medication><code><coding><code value="402019" /><display value="Эналаприл" /><system value="http://www.pharma.by/Справочник.МеждународноеНаименование" /></coding></code><id value="internalMedication2" /><isBrand value="false" /></Medication></contained><dateWritten value="2018-06-15" /><dispense><numberOfRepeatsAllowed value="1" /><quantity><value value="10.1" /></quantity><validityPeriod><end value="2022-01-01" /><start value="2018-10-05" /></validityPeriod></dispense><dosageInstruction><text value="По 1 таблетке 2 раза в день" /></dosageInstruction><extension url="http://fhir.org/fhir/StructureDefinition/by-medicamentType"><valueCodeableConcept><coding><code value="medicinal" /><system value="http://hl7.org/fhir/vs/by-medicament-type" /></coding></valueCodeableConcept></extension><extension url="http://fhir.org/fhir/StructureDefinition/by-factor"><valueDecimal value="0.9" /></extension><extension url="http://fhir.org/fhir/StructureDefinition/by-speedProduction"><valueCodeableConcept><coding><code value="10" /><display value="10" /><system value="http://hl7.org/fhir/vs/by-speed-production" /></coding></valueCodeableConcept></extension><identifier><system value="http://uiip.bas-net.by/hl7/fhir/serial-number" /><value value="МН-0011234567" /></identifier><medication><reference value="#internalMedication1" /></medication><patient><display value="Денисенко Кирилл Дмитриевич" /><extension url="http://uiip.bas-net.by/hl7/fhir/patient-medication-card"><valueReference><reference value="Patient?identifier=5416066995391156" /></valueReference></extension></patient><prescriber><display value="Титчев Сергей Леонидович" /><extension url="http://uiip.bas-net.by/hl7/fhir/practitioner-personal-passport-number"><valueReference><reference value="Practitioner?identifier=6524020L267RA4" /></valueReference></extension></prescriber></MedicationPrescription>