{"resourceType": "MedicationPrescription",
"meta": {
"profile": ["http://fhir.org/fhir/StructureDefinition/by-medicationprescription"]},
"identifier": [
{"system": "http://uiip.bas-net.by/hl7/fhir/serial-number",
"value": "МН-012345678"}],
"contained": [
{"resourceType": "Medication",
"id": "internalMedication2",
"code": {
"coding": [{ "system": "http://www.pharma.by/Справочник.МеждународноеНаименование",
"code": "402005",
"display": "Метопролол"}]},
"isBrand": false},
{"resourceType": "Medication",
"id": "internalMedication1",
"code": {
"coding": [{
"system": "http://www.pharma.by/Справочник.Дозировка",
"code": "52856",
"display": "Эгилок"}]},
"manufacturer": {
"reference": "#internalOrganization1"},
"isBrand": true,
"kind": "product",
"product": {
"form": {
"coding": [{
"system": "http://www.pharma.by/Справочник.ЛекарственнаяФорма",
"code": "0001",
"display": "таблетки"}]},
"ingredient": [{
"item": {
"reference": "#internalMedication2"}}]}},
{ "resourceType": "Organization",
"id": "internalOrganization1",
"identifier": [
{
"system": "http://www.pharma.by/Справочник.Производитель",
"value": "65469"}],
"name":"EGIS Pharmaceuticals PLC, Венгрия/Acino Pharma AG Швейцария"}],
"extension": [{
"url": "http://fhir.org/fhir/StructureDefinition/by-medicamentType",
"valueCodeableConcept": {
"coding": [{
"system": "http://hl7.org/fhir/vs/by-medicament-type",
"code": "medicinal"}]}},
{ "url": "http://fhir.org/fhir/StructureDefinition/by-factor",
"valueDecimal": 0.0},
{ "url": "http://fhir.org/fhir/StructureDefinition/by-speedProduction",
"valueCodeableConcept": {
"coding": [{
"system": "http://hl7.org/fhir/vs/by-speed-production",
"code": "10",
"display": "10"}]}}],
"dateWritten": "2023-12-04",
"status": "active",
"patient": {
"reference": "Patient/{{guid_Patient}}",
"display": "Тестовый Пациент 1",
"extension": [{
"url":"http://uiip.bas-net.by/hl7/fhir/patient-medication-card",
"valueReference":{"reference":"Patient?identifier={{PatientMedicationCard}}"} } ] },
"prescriber": {
"reference": "Practitioner/{{guid_Practitioner}}",
"display":"Тестовый Врач 1",
"extension": [{
"url":"http://uiip.bas-net.by/hl7/fhir/practitioner-personal-passport-number",
"valueReference":{"reference":"Practitioner?identifier={{PractitionerPassportNumber}}"} } ]},
"note": "Дополнительные сведения о рецепте",
"medication": {
"reference": "#internalMedication1"},
"dosageInstruction": [{
"text": "2 раза в день"}],
"dispense": {
"validityPeriod": {
"start": "2023-12-04",
"end": "2024-01-04"},
"numberOfRepeatsAllowed": 1,
"quantity": {
"value": 30.0}}}
<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='402005' />
<display value='Метопролол' />
</coding>
</code>
<isBrand value='false' />
</Medication>
</contained>
<contained>
<Medication>
<id value='internalMedication1' />
<code>
<coding>
<system value='http://www.pharma.by/Справочник.Дозировка' />
<code value='52856' />
<display value='Эгилок' />
</coding>
</code>
<isBrand value='true' />
<kind value='product' />
<manufacturer>
<reference value='#internalOrganization1' />
</manufacturer>
<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>
<contained>
<Organization>
<id value='internalOrganization1' />
<identifier>
<system value='http://www.pharma.by/Справочник.Производитель' />
<value value='65469' />
</identifier>
<name value='EGIS Pharmaceuticals PLC, Венгрия/Acino Pharma AG Швейцария' />
</Organization>
</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='2024-01-26' />
<status value='active' />
<patient>
<reference value='Patient/{{guid_Patient}}' />
<display value='Тестовый Пациент 1' />
<extension url='http://uiip.bas-net.by/hl7/fhir/patient-medication-card'>
<valueReference>
<reference value='Patient?identifier={{PatientMedicationCard}}' />
</valueReference>
</extension>
</patient>
<prescriber>
<display value='Тестовый Врач 1' />
<reference value='Practitioner/{{guid_Practitioner}}' />
<extension url='http://uiip.bas-net.by/hl7/fhir/practitioner-personal-passport-number'>
<valueReference>
<reference value='Practitioner?identifier={{PractitionerPassportNumber}}' />
</valueReference>
</extension>
</prescriber>
<medication>
<reference value='#internalMedication1' />
</medication>
<dosageInstruction>
<text value='По 1 таблетке 3 раза в день' />
</dosageInstruction>
<dispense>
<validityPeriod>
<start value='2024-01-26' />
<end value='2024-03-26' />
</validityPeriod>
<numberOfRepeatsAllowed value='1' />
<quantity>
<value value='10.0' />
</quantity>
</dispense>
</MedicationPrescription>
{ "resourceType":"Parameters",
"parameter":[
{ "name":"medicationprescription",
"resource":
{"resourceType": "MedicationPrescription",
"meta": { "profile": ["http://fhir.org/fhir/StructureDefinition/by-medicationprescription"]},
"identifier": [
{"system": "http://uiip.bas-net.by/hl7/fhir/serial-number",
"value": "МН-012345678"}],
"contained": [
{"resourceType": "Medication",
"id": "internalMedication2",
"code": {
"coding": [{ "system": "http://www.pharma.by/Справочник.МеждународноеНаименование",
"code": "402005",
"display": "Метопролол"}]},
"isBrand": false},
{"resourceType": "Medication",
"id": "internalMedication1",
"code": {
"coding": [{
"system": "http://www.pharma.by/Справочник.Дозировка",
"code": "52856",
"display": "Эгилок"}]},
"manufacturer": {
"reference": "#internalOrganization1"},
"isBrand": true,
"kind": "product",
"product": {
"form": {
"coding": [{
"system": "http://www.pharma.by/Справочник.ЛекарственнаяФорма",
"code": "0001",
"display": "таблетки"}]},
"ingredient": [{
"item": {
"reference": "#internalMedication2"}}]}},
{ "resourceType": "Organization",
"id": "internalOrganization1",
"identifier": [
{"system": "http://www.pharma.by/Справочник.Производитель",
"value": "65469"}],
"name":"EGIS Pharmaceuticals PLC, Венгрия/Acino Pharma AG Швейцария"}],
"extension": [{
"url": "http://fhir.org/fhir/StructureDefinition/by-medicamentType",
"valueCodeableConcept": {
"coding": [{
"system": "http://hl7.org/fhir/vs/by-medicament-type",
"code": "medicinal"}]}},
{ "url": "http://fhir.org/fhir/StructureDefinition/by-factor",
"valueDecimal": 0.0},
{ "url": "http://fhir.org/fhir/StructureDefinition/by-speedProduction",
"valueCodeableConcept": {
"coding": [{
"system": "http://hl7.org/fhir/vs/by-speed-production",
"code": "10",
"display": "10"}]}}],
"dateWritten": "2024-01-17",
"status": "active",
"patient": {
"reference": "Patient/{{guid_Patient}}",
"display": "Тестовый Пациент 1",
"extension": [{
"url":"http://uiip.bas-net.by/hl7/fhir/patient-medication-card", "valueReference":{"reference":"Patient?identifier={{PatientMedicationCard}}"}} ]},
"prescriber": {
"reference": "Practitioner/{{guid_Practitioner}}",
"display":"Тестовый Врач 1",
"extension": [{
"url":"http://uiip.bas-net.by/hl7/fhir/practitioner-personal-passport-number", "valueReference":{"reference":"Practitioner?identifier={{PractitionerPassportNumber}}"}}]},
"note": "Дополнительные сведения о рецепте",
"medication": {
"reference": "#internalMedication1"},
"dosageInstruction": [{
"text": "2 раза в день"}],
"dispense": {
"validityPeriod": {
"start": "2024-01-17",
"end": "2024-02-17"},
"numberOfRepeatsAllowed": 1,
"quantity": {
"value": 30.0}}}},
{"name":"DigitalSignature",
"valueBase64Binary":".."}]}
{"contained":[{"code":{"coding":[{"code":"52856","display":"Эгилок","system":"http://www.pharma.by/Справочник.Дозировка"}]},"id":"internalMedication1","isBrand":true,"kind":"product","manufacturer":{"reference":"#internalOrganization1"},"product":{"form":{"coding":[{"code":"0001","display":"таблетки","system":"http://www.pharma.by/Справочник.ЛекарственнаяФорма"}]},"ingredient":[{"item":{"reference":"#internalMedication2"}}]},"resourceType":"Medication"},{"code":{"coding":[{"code":"402005","display":"Метопролол","system":"http://www.pharma.by/Справочник.МеждународноеНаименование"}]},"id":"internalMedication2","isBrand":false,"resourceType":"Medication"},{"id":"internalOrganization1","identifier":[{"system":"http://www.pharma.by/Справочник.Производитель","value":"65469"}],"name":"EGIS Pharmaceuticals PLC, Венгрия/Acino Pharma AG Швейцария","resourceType":"Organization"}],"dateWritten":"2024-01-17","dispense":{"numberOfRepeatsAllowed":1,"quantity":{"value":30.0},"validityPeriod":{"end":"2024-02-17","start":"2024-01-17"}},"dosageInstruction":[{"text":"2 раза в день"}],"extension":[{"url":"http://fhir.org/fhir/StructureDefinition/by-medicamentType","valueCodeableConcept":{"coding":[{"code":"medicinal","system":"http://hl7.org/fhir/vs/by-medicament-type"}]}},{"url":"http://fhir.org/fhir/StructureDefinition/by-factor","valueDecimal":0.0},{"url":"http://fhir.org/fhir/StructureDefinition/by-speedProduction","valueCodeableConcept":{"coding":[{"code":"10","display":"10","system":"http://hl7.org/fhir/vs/by-speed-production"}]}}],"identifier":[{"system":"http://uiip.bas-net.by/hl7/fhir/serial-number","value":"МН-012345678"}],"medication":{"reference":"#internalMedication1"},"note":"Дополнительные сведения о рецепте","patient":{"display":"Тестовый Пациент 1","extension":[{"url":"http://uiip.bas-net.by/hl7/fhir/patient-medication-card","valueReference":{"reference":"Patient?identifier={{PatientMedicationCard}}"}}]},"prescriber":{"display":"Тестовый Врач 1","extension":[{"url":"http://uiip.bas-net.by/hl7/fhir/practitioner-personal-passport-number","valueReference":{"reference":"Practitioner?identifier={{PractitionerPassportNumber}}"}}]},"resourceType":"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='402005' />
<display value='Метопролол' />
</coding>
</code>
<isBrand value='false' />
</Medication>
</contained>
<contained>
<Medication>
<id value='internalMedication1' />
<code>
<coding>
<system value='http://www.pharma.by/Справочник.Дозировка' />
<code value='52856' />
<display value='Эгилок' />
</coding>
</code>
<isBrand value='true' />
<kind value='product' />
<manufacturer>
<reference value='#internalOrganization1' />
</manufacturer>
<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>
<contained>
<Organization>
<id value='internalOrganization1' />
<identifier>
<system value='http://www.pharma.by/Справочник.Производитель' />
<value value='65469' />
</identifier>
<name value='EGIS Pharmaceuticals PLC, Венгрия/Acino Pharma AG Швейцария' />
</Organization>
</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='2024-01-26' />
<status value='active' />
<patient>
<reference value='Patient/{{guid_Patient}}' />
<display value=Тестовый Пациент 1' />
<extension url='http://uiip.bas-net.by/hl7/fhir/patient-medication-card'>
<valueReference>
<reference value='Patient?identifier={{PatientMedicationCard}}' />
</valueReference>
</extension>
</patient>
<prescriber>
<display value='Тестовый Врач 1' />
<reference value='Practitioner/{{guid_Practitioner}}' />
<extension url='http://uiip.bas-net.by/hl7/fhir/practitioner-personal-passport-number'>
<valueReference>
<reference value='Practitioner?identifier={{PractitionerPassportNumber}}' />
</valueReference>
</extension>
</prescriber>
<medication>
<reference value='#internalMedication1' />
</medication>
<dosageInstruction>
<text value='По 1 таблетке 3 раза в день' />
</dosageInstruction>
<dispense>
<validityPeriod>
<start value='2024-01-26' />
<end value='2024-03-26' />
</validityPeriod>
<numberOfRepeatsAllowed value='1' />
<quantity>
<value value='10.0' />
</quantity>
</dispense>
</MedicationPrescription>
</resource>
</parameter>
<parameter>
<name value="DigitalSignature"/>
<valueBase64Binary value="…"/>
</parameter>
</Parameters>
<MedicationPrescription xmlns="http://hl7.org/fhir"><contained><Medication><code><coding><code value="52856" /><display value="Эгилок" /><system value="http://www.pharma.by/Справочник.Дозировка" /></coding></code><id value="internalMedication1" /><isBrand value="true" /><kind value="product" /><manufacturer><reference value="#internalOrganization1" /></manufacturer><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="402005" /><display value="Метопролол" /><system value="http://www.pharma.by/Справочник.МеждународноеНаименование" /></coding></code><id value="internalMedication2" /><isBrand value="false" /></Medication></contained><contained><Organization><id value="internalOrganization1" /><identifier><system value="http://www.pharma.by/Справочник.Производитель" /><value value="65469" /></identifier><name value="EGIS Pharmaceuticals PLC, Венгрия/Acino Pharma AG Швейцария" /></Organization></contained><dateWritten value="2024-01-26" /><dispense><numberOfRepeatsAllowed value="1" /><quantity><value value="10.0" /></quantity><validityPeriod><end value="2024-03-26" /><start value="2024-01-26" /></validityPeriod></dispense><dosageInstruction><text value="По 1 таблетке 3 раза в день" /></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="Тестовый Пациент 1" /><extension url="http://uiip.bas-net.by/hl7/fhir/patient-medication-card"><valueReference><reference value="Patient?identifier={{PatientMedicationCard}}" /></valueReference></extension></patient><prescriber><display value="Тестовый Врач 1" /><extension url="http://uiip.bas-net.by/hl7/fhir/practitioner-personal-passport-number"><valueReference><reference value="Practitioner?identifier={{PractitionerPassportNumber}}" /></valueReference></extension></prescriber></MedicationPrescription>
{"resourceType":"Parameters",
"parameter":[{
"name":"medicationDispense",
"resource":
{"resourceType": "MedicationDispense",
"meta": {
"profile": ["http://fhir.org/fhir/StructureDefinition/by-medicationdispense"]},
"extension":[{"url":"http://fhir.org/fhir/StructureDefinition/by-finalDispense",
"valueBoolean":false }],
"contained":
[{"resourceType": "Medication",
"id": "internalMedication1",
"code": { "coding": [
{"system": "http://www.pharma.by/Справочник.Дозировка",
"code": "52856"}]},
"manufacturer": {"reference": "#internalOrganization1"},
"isBrand": true},
{"resourceType": "Organization",
"id": "internalOrganization1",
"identifier": [{
"system": "http://www.pharma.by/Справочник.Производитель",
"value": "65469"}],
"name":"EGIS Pharmaceuticals PLC, Венгрия/Acino Pharma AG Швейцария"},
{"resourceType": "Location",
"name": "Наименование организации",
"address": {
"extension": [{
"url": "http://fhir.org/fhir/StructureDefinition/by-AddressType",
"valueCodeableConcept": {
"coding": [
{"system": "http://hl7.org/fhir/vs/by-address-type",
"code": "location"}]}}], "use": "home",
"text": "3, 18, улица Богдановича, Минск, Минская область, Беларусь"}}],
"status": "completed",
"note": "Дополнительная информация отоваривания",
"patient": {"reference": "Patient/{{guid_Patient}}"},
"authorizingPrescription": [{"reference": "MedicationPrescription/{{guid_MedicationPrescription}}"}],
"quantity": {"value": 10.0},
"medication": {"reference": "#internalMedication1"},
"whenHandedOver": "2024-01-26"}},
{"name":"claim",
"resource":
{"resourceType": "Claim",
"meta": {
"profile": ["http://fhir.org/fhir/StructureDefinition/by-claim"]},
"facility": {"reference": "Location/{{guid_Location}}"},
"type": "pharmacy",
"created": "2024-01-26",
"organization": {"reference":"Organization/{{guid_Organization}}"},
"originalPrescription": {"reference": "MedicationPrescription/{{guid_MedicationPrescription}}"},
"patient": {"reference": "Patient/{{guid_Patient}}"},
"item": [{"sequence": 1,
"type": {"display": "Электронный рецепт",
"system": "http://hl7.org/fhir/vs/ActInvoiceGroupCode",
"code": "group"},
"service": {"system": "http://hl7.org/fhir/vs/service-uscls",
"code": "2102"},
"unitPrice": {
"value": 22,
"system": "urn:std:iso:4217",
"code":"BYN"},
"factor": 0.5,
"net": {"value": 11,
"system": "urn:std:iso:4217",
"code": "BYN"}}]}}]}
{"resourceType": "MedicationDispense",
"meta": {
"profile": ["http://fhir.org/fhir/StructureDefinition/by-medicationdispense"]},
"extension":[{"url":"http://fhir.org/fhir/StructureDefinition/by-finalDispense",
"valueBoolean":false }],
"contained":
[{"resourceType": "Medication",
"id": "internalMedication1",
"code": { "coding": [
{"system": "http://www.pharma.by/Справочник.Дозировка",
"code": "52856"}]},
"manufacturer": {"reference": "#internalOrganization1"},
"isBrand": true},
{"resourceType": "Organization",
"id": "internalOrganization1",
"identifier": [{
"system": "http://www.pharma.by/Справочник.Производитель",
"value": "65469"}],
"name":"EGIS Pharmaceuticals PLC, Венгрия/Acino Pharma AG Швейцария"},
{"resourceType": "Location",
"name": "Наименование организации",
"address": {
"extension": [{
"url": "http://fhir.org/fhir/StructureDefinition/by-AddressType",
"valueCodeableConcept": {
"coding": [
{"system": "http://hl7.org/fhir/vs/by-address-type",
"code": "location"}]}}], "use": "home",
"text": "3, 18, улица Богдановича, Минск, Минская область, Беларусь"}}],
"status": "completed",
"note": "Дополнительная информация отоваривания",
"patient": {"reference": "Patient/{{guid_Patient}}"},
"authorizingPrescription": [{"reference": "MedicationPrescription/{{guid_MedicationPrescription}}"}],
"quantity": {"value": 10.0},
"medication": {"reference": "#internalMedication1"},
"whenHandedOver": "2024-01-26"}
- Если при регистрации ресурсов MedicationPrescription, MedicationDispense не указана ссылка "manufacturer": {"reference": "#internalOrganization1"}, но указана информация о производителе, то сервер возвращает ответ 400 с текстом ошибки «Необходимо указать производителя»;
- Если в ресурсах указана ссылка "manufacturer": {"reference": "#internalOrganization1"}, но нет информации о производителе, то сервер возвращает ответ 400 с текстом ошибки "Ссылка указывает на несуществующий ресурс \"#internalOrganization1\"";
- Если в ресурсе MedicationDispense указана информация о производителе при отоваривании электронного рецепта без производителя, то сервер возвращает ответ 400 с описанием ошибки «Нельзя указывать производителя, если в рецепте его нет».