{
  "resourceType" : "Bundle",
  "id" : "BundleWithMedicationOrder",
  "meta" : {
    "profile" : ["https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument"]
  },
  "identifier" : {
    "system" : "https://fhir.by/ValueSet/urn:ietf:rfc:3986",
    "value" : "urn:uuid:0c3151bd-1cbf-4d64-b04d-cd9187a4c6t9"
  },
  "type" : "document",
  "timestamp" : "2024-04-07T11:12:21Z",
  "entry" : [{
    "fullUrl" : "Composition/CompositionWithMedicationOrder",
    "resource" : {
      "resourceType" : "Composition",
      "id" : "CompositionWithMedicationOrder",
      "meta" : {
        "profile" : ["https://fhir.by/StructureDefinition/CompDocument"]
      },
      "status" : "registered",
      "type" : {
        "coding" : [{
          "system" : "https://fhir.by/ValueSet/CompositionType",
          "code" : "general",
          "display" : "Общая медицинская информация"
        }]
      },
      "subject" : [{
        "reference" : "Patient/PatientFullBundle"
      }],
      "date" : "2024-05-07T11:12:21Z",
      "author" : [{
        "reference" : "Practitioner/7cc066b9-7db5-4db6-8645-c6edd23ab896IvanovaII"
      }],
      "title" : "CompDocument содержащий сведения о назначении лекарственного средства",
      "custodian" : {
        "reference" : "Organization/9ad86c36-0f29-428d-b476-c8603a7cdd1f"
      },
      "event" : [{
        "detail" : [{
          "reference" : {
            "reference" : "MedicationRequest/ExampleMedicationOrderAmoxiclav"
          }
        }]
      }]
    }
  },
  {
    "fullUrl" : "Patient/PatientFullBundle",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "PatientFullBundle",
      "meta" : {
        "profile" : ["https://fhir.by/StructureDefinition/PatientWithIdentificationNumber"]
      },
      "identifier" : [{
        "type" : {
          "coding" : [{
            "system" : "https://fhir.by/ValueSet/PersonalDocumentType",
            "code" : "INP"
          }]
        },
        "value" : "7001112A009PB3",
        "period" : {
          "start" : "2024-01-31"
        }
      },
      {
        "extension" : [{
          "extension" : [{
            "url" : "https://fhir.by/StructureDefinition/PassportIssuedString",
            "valueString" : "Центральным РУВД г Минска, 11.08.2021"
          },
          {
            "url" : "https://fhir.by/StructureDefinition/PassportIssuedDate",
            "valueDate" : "2021-08-11"
          },
          {
            "url" : "https://fhir.by/StructureDefinition/PassportIssuedCode",
            "valueCodeableConcept" : {
              "coding" : [{
                "system" : "https://fhir.by/ValueSet/OCAM",
                "code" : "106"
              }]
            }
          }],
          "url" : "https://fhir.by/StructureDefinition/PassportIssued"
        }],
        "use" : "usual",
        "type" : {
          "coding" : [{
            "system" : "https://fhir.by/ValueSet/PersonalDocumentType",
            "code" : "Passport-RB"
          }]
        },
        "value" : "MP1234579"
      }],
      "active" : true,
      "name" : [{
        "family" : "Иванов",
        "given" : ["Василий",
        "Васильевич"],
        "period" : {
          "start" : "2024-01-31"
        }
      }],
      "telecom" : [{
        "system" : "phone",
        "value" : "89001234567"
      }],
      "gender" : "male",
      "birthDate" : "1989-01-31",
      "deceasedBoolean" : false,
      "address" : [{
        "extension" : [{
          "url" : "https://fhir.by/StructureDefinition/CoutryForAddresses",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "https://fhir.by/ValueSet/CitizenshipCode",
              "code" : "BY",
              "display" : "Беларусь"
            }]
          }
        },
        {
          "url" : "https://fhir.by/StructureDefinition/StreetGeoRegistry",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "https://fhir.by/ValueSet/StreetGeoRegistry",
              "code" : "72609920778",
              "display" : "Переулок Снежный"
            }]
          }
        },
        {
          "url" : "https://fhir.by/StructureDefinition/ApartmentRoom",
          "valueString" : "кв. 11"
        }],
        "use" : "home",
        "text" : "Могилевская область, г.Могилев, Переулок Гоголя, д.19",
        "postalCode" : "212011"
      }]
    }
  },
  {
    "fullUrl" : "MedicationRequest/ExampleMedicationOrderAmoxiclav",
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "ExampleMedicationOrderAmoxiclav",
      "meta" : {
        "profile" : ["https://fhir.by/StructureDefinition/MedicationOrder"]
      },
      "status" : "active",
      "intent" : "order",
      "category" : [{
        "coding" : [{
          "system" : "https://fhir.by/ValueSet/CourseOfTherapyType",
          "code" : "course",
          "display" : "Короткий курс медикаментозной терапии"
        }]
      }],
      "medication" : {
        "reference" : {
          "reference" : "Medication/64eaa7e3-58e6-40b0-938e-4192ca7f9552"
        }
      },
      "subject" : {
        "reference" : "Patient/PatientFullBundle"
      },
      "informationSource" : [{
        "reference" : "Organization/9ad86c36-0f29-428d-b476-c8603a7cdd1f"
      }],
      "encounter" : {
        "reference" : "Encounter/EncounterFullBundle"
      },
      "authoredOn" : "2024-04-07T11:20:21Z",
      "requester" : {
        "reference" : "PractitionerRole/3c057f8d-4369-4c5e-86be-f710dff3a91c"
      },
      "reason" : [{
        "reference" : {
          "reference" : "Condition/DiagnosisrFullBundle"
        }
      }],
      "effectiveDosePeriod" : {
        "start" : "2024-04-07",
        "end" : "2024-04-16"
      },
      "dosageInstruction" : [{
        "patientInstruction" : "Принимать по одной таблетке три раза в день. Таблетки следует проглатывать целиком, запивая стаканом воды, во время еды или непосредственно перед едой",
        "timing" : {
          "repeat" : {
            "frequency" : 3,
            "period" : 1,
            "periodUnit" : "d"
          },
          "code" : {
            "text" : "Во время еды или непосредственно перед едой"
          }
        },
        "route" : {
          "coding" : [{
            "system" : "https://fhir.by/ValueSet/MedicationRouteAdmin",
            "code" : "070",
            "display" : "гастроэнтеральный"
          }]
        },
        "doseAndRate" : [{
          "doseQuantity" : {
            "value" : 1,
            "unit" : "таблетка",
            "system" : "https://fhir.by/ValueSet/MedicationByUnits",
            "code" : "tablet"
          },
          "rateQuantity" : {
            "value" : 10,
            "unit" : "мг/час",
            "system" : "https://fhir.by/ValueSet/MedicationByRateUnits",
            "code" : "mg/h"
          }
        }]
      }]
    }
  }]
}