{
  "resourceType" : "Bundle",
  "id" : "example-transaction-bundle",
  "language" : "ru",
  "type" : "transaction",
  "entry" : [{
    "fullUrl" : "urn:uuid:a1b2c3d4-5678-90ab-cdef-111111111111",
    "resource" : {
      "resourceType" : "EpisodeOfCare",
      "id" : "UZCoreEpisodeOfCare-Example",
      "meta" : {
        "profile" : ["https://dhp.uz/fhir/core/StructureDefinition/uz-core-episodeofcare"]
      },
      "language" : "ru",
      "text" : {
        "status" : "generated"
      },
      "identifier" : [{
        "system" : "http://dhp.uz/ids/episode-of-care",
        "value" : "EOC-2025-0001"
      }],
      "status" : "active",
      "statusHistory" : [{
        "status" : "planned",
        "period" : {
          "start" : "2025-07-28",
          "end" : "2025-08-01"
        }
      }],
      "type" : [{
        "coding" : [{
          "system" : "https://terminology.dhp.uz/fhir/core/CodeSystem/episode-of-care-type-cs",
          "code" : "mserv-0001-00001"
        }],
        "text" : "Preventive services"
      }],
      "reason" : [{
        "use" : {
          "coding" : [{
            "system" : "https://terminology.dhp.uz/fhir/core/CodeSystem/episode-of-care-reason-use-cs",
            "code" : "mserv-0002-00002"
          }],
          "text" : "Preventive visit"
        },
        "value" : [{
          "reference" : {
            "reference" : "Condition/example-headache"
          }
        }]
      }],
      "diagnosis" : [{
        "condition" : [{
          "reference" : {
            "reference" : "Condition/example-headache"
          }
        }],
        "use" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/diagnosis-role",
            "code" : "DD"
          }],
          "text" : "Primary diagnosis"
        }
      }],
      "patient" : {
        "reference" : "Patient/example-salim"
      },
      "managingOrganization" : {
        "reference" : "Organization/example-organization"
      },
      "period" : {
        "start" : "2025-08-01"
      },
      "careManager" : {
        "reference" : "Practitioner/example-practitioner"
      }
    },
    "request" : {
      "method" : "POST",
      "url" : "EpisodeOfCare"
    }
  },
  {
    "fullUrl" : "urn:uuid:a1b2c3d4-5678-90ab-cdef-222222222222",
    "resource" : {
      "resourceType" : "Encounter",
      "id" : "example-encounter",
      "meta" : {
        "profile" : ["https://dhp.uz/fhir/core/StructureDefinition/uz-core-encounter"]
      },
      "language" : "ru",
      "text" : {
        "status" : "generated"
      },
      "status" : "completed",
      "class" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
          "code" : "IMP",
          "display" : "Inpatient encounter"
        }]
      }],
      "priority" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ActPriority",
          "code" : "EM",
          "display" : "Emergency"
        }]
      },
      "type" : [{
        "coding" : [{
          "system" : "https://terminology.dhp.uz/fhir/core/CodeSystem/encounter-type-cs",
          "code" : "mserv-0001-00004",
          "display" : "Treatment services"
        }]
      }],
      "serviceType" : [{
        "reference" : {
          "reference" : "HealthcareService/example-healthcareservice"
        }
      }],
      "subject" : {
        "reference" : "Patient/example-patient"
      },
      "subjectStatus" : {
        "coding" : [{
          "system" : "https://terminology.dhp.uz/fhir/core/CodeSystem/encounter-subject-status-cs",
          "code" : "gencl-0003-00001",
          "display" : "Awake"
        }]
      },
      "participant" : [{
        "type" : [{
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
            "code" : "ATND",
            "display" : "attender"
          }]
        }],
        "period" : {
          "start" : "2024-01-01T10:00:00Z",
          "end" : "2024-01-01T11:00:00Z"
        }
      }],
      "actualPeriod" : {
        "start" : "2024-01-01T10:00:00Z",
        "end" : "2024-01-01T11:00:00Z"
      },
      "plannedStartDate" : "2024-01-01T10:00:00Z",
      "plannedEndDate" : "2024-01-01T11:00:00Z",
      "reason" : [{
        "use" : [{
          "coding" : [{
            "system" : "https://terminology.dhp.uz/fhir/core/CodeSystem/encounter-reason-use-cs",
            "code" : "mserv-0002-00001",
            "display" : "Disease"
          }]
        }],
        "value" : [{
          "reference" : {
            "reference" : "Condition/example-headache"
          }
        }]
      }],
      "diagnosis" : [{
        "condition" : [{
          "reference" : {
            "reference" : "Condition/example-headache"
          }
        }]
      }],
      "admission" : {
        "admitSource" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/admit-source",
            "code" : "psych",
            "display" : "From psychiatric hospital"
          }]
        },
        "reAdmission" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v2-0092",
            "code" : "R",
            "display" : "Re-admission"
          }]
        },
        "dischargeDisposition" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/discharge-disposition",
            "code" : "home",
            "display" : "Home"
          }]
        }
      },
      "location" : [{
        "location" : {
          "reference" : "Location/example-location"
        },
        "status" : "completed"
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Encounter"
    }
  },
  {
    "fullUrl" : "urn:uuid:a1b2c3d4-5678-90ab-cdef-333333333333",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "blood-pressure-example",
      "meta" : {
        "profile" : ["https://dhp.uz/fhir/core/StructureDefinition/uz-core-observation",
        "http://hl7.org/fhir/StructureDefinition/vitalsigns",
        "http://hl7.org/fhir/StructureDefinition/bp"]
      },
      "language" : "ru",
      "text" : {
        "status" : "generated"
      },
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "vital-signs",
          "display" : "Vital Signs"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "85354-9",
          "display" : "Blood pressure panel with all children optional"
        }]
      },
      "subject" : {
        "reference" : "Patient/example-salim"
      },
      "effectiveDateTime" : "2025-11-04T10:30:00Z",
      "performer" : [{
        "reference" : "Practitioner/example-practitioner"
      }],
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "8480-6",
            "display" : "Systolic blood pressure"
          }]
        },
        "valueQuantity" : {
          "value" : 120,
          "unit" : "mmHg",
          "system" : "http://unitsofmeasure.org",
          "code" : "mm[Hg]"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "8462-4",
            "display" : "Diastolic blood pressure"
          }]
        },
        "valueQuantity" : {
          "value" : 80,
          "unit" : "mmHg",
          "system" : "http://unitsofmeasure.org",
          "code" : "mm[Hg]"
        }
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  },
  {
    "fullUrl" : "urn:uuid:a1b2c3d4-5678-90ab-cdef-444444444444",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "body-weight-example",
      "meta" : {
        "profile" : ["https://dhp.uz/fhir/core/StructureDefinition/uz-core-observation",
        "http://hl7.org/fhir/StructureDefinition/vitalsigns",
        "http://hl7.org/fhir/StructureDefinition/bodyweight"]
      },
      "language" : "ru",
      "text" : {
        "status" : "generated"
      },
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "vital-signs",
          "display" : "Vital Signs"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "29463-7",
          "display" : "Body Weight"
        }]
      },
      "subject" : {
        "reference" : "Patient/example-salim"
      },
      "effectiveDateTime" : "2016-03-28",
      "performer" : [{
        "reference" : "Practitioner/example-practitioner"
      }],
      "valueQuantity" : {
        "value" : 185,
        "unit" : "lbs",
        "system" : "http://unitsofmeasure.org",
        "code" : "[lb_av]"
      }
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  },
  {
    "fullUrl" : "urn:uuid:a1b2c3d4-5678-90ab-cdef-555555555555",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "body-temperature-example",
      "meta" : {
        "profile" : ["https://dhp.uz/fhir/core/StructureDefinition/uz-core-observation",
        "http://hl7.org/fhir/StructureDefinition/vitalsigns",
        "http://hl7.org/fhir/StructureDefinition/bodytemp"]
      },
      "language" : "ru",
      "text" : {
        "status" : "generated"
      },
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "vital-signs",
          "display" : "Vital Signs"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "8310-5",
          "display" : "Body temperature"
        }]
      },
      "subject" : {
        "reference" : "Patient/example-salim"
      },
      "effectiveDateTime" : "1999-07-02",
      "performer" : [{
        "reference" : "Practitioner/example-practitioner"
      }],
      "valueQuantity" : {
        "value" : 36.5,
        "unit" : "C",
        "system" : "http://unitsofmeasure.org",
        "code" : "Cel"
      }
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  }]
}