{
  "resourceType" : "Encounter",
  "id" : "example-core-encounter-inpatient-discharge-semd-min",
  "meta" : {
    "profile" : ["https://fhir.ru/ig/core/StructureDefinition/core-encounter"]
  },
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Encounter example-core-encounter-inpatient-discharge-semd-min</b></p><a name=\"example-core-encounter-inpatient-discharge-semd-min\"> </a><a name=\"hcexample-core-encounter-inpatient-discharge-semd-min\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-core-encounter.html\">Core Encounter (Случай оказания медицинской помощи)</a></p></div><p><b>identifier</b>: Идентификатор случая оказания медицинской помощи в экземпляре МИС/2120, Номер стационарной медицинской карты в экземпляре МИС/2120/23-3</p><p><b>status</b>: Completed</p><p><b>class</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode IMP}\">inpatient encounter</span></p><p><b>subject</b>: <a href=\"Patient-example-core-patient-ivanov-min.html\">Иван Иванов  Male, DoB: 1985-03-15 ( СНИЛС)</a></p><p><b>serviceProvider</b>: <a href=\"Organization-example-core-organization-polyclinic-min.html\">Organization ГБУЗ Городская поликлиника №1</a></p><blockquote><p><b>diagnosis</b></p><p><b>Core Extension DiagnosisRank (Порядок диагноза)</b>: 1</p><h3>Conditions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Concept</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{urn:oid:1.2.643.5.1.13.13.11.1005 I20.8}\">Стенокардия</span></td></tr></table><p><b>use</b>: <span title=\"Codes:{https://fhir.ru/ig/core/CodeSystem/core-cs-nsi-diagnosis-nosology-kind 1}\">Основное заболевание</span>, <span title=\"Codes:{https://fhir.ru/ig/core/CodeSystem/core-cs-nsi-diagnosis-justification-degree 3}\">Заключительный клинический диагноз</span></p></blockquote></div>"
  },
  "identifier" : [{
    "type" : {
      "coding" : [{
        "system" : "https://fhir.ru/ig/core/CodeSystem/core-cs-semd-identifier-type",
        "code" : "mis-encounter"
      }]
    },
    "system" : "urn:oid:1.2.643.5.1.13.13.12.2.66.6770.100.1.1.15",
    "value" : "2120"
  },
  {
    "type" : {
      "coding" : [{
        "system" : "https://fhir.ru/ig/core/CodeSystem/core-cs-semd-identifier-type",
        "code" : "mis-inpatient-record"
      }]
    },
    "system" : "urn:oid:1.2.643.5.1.13.13.12.2.66.6770.100.1.1.16",
    "value" : "2120/23-3"
  }],
  "status" : "completed",
  "class" : [{
    "coding" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
      "code" : "IMP",
      "display" : "inpatient encounter"
    }]
  }],
  "subject" : {
    "reference" : "Patient/example-core-patient-ivanov-min"
  },
  "serviceProvider" : {
    "reference" : "Organization/example-core-organization-polyclinic-min"
  },
  "diagnosis" : [{
    "extension" : [{
      "url" : "https://fhir.ru/ig/core/StructureDefinition/diagnosis-rank",
      "valuePositiveInt" : 1
    }],
    "condition" : [{
      "concept" : {
        "coding" : [{
          "system" : "urn:oid:1.2.643.5.1.13.13.11.1005",
          "code" : "I20.8",
          "display" : "Другие формы стенокардии"
        }],
        "text" : "Стенокардия"
      }
    }],
    "use" : [{
      "coding" : [{
        "system" : "https://fhir.ru/ig/core/CodeSystem/core-cs-nsi-diagnosis-nosology-kind",
        "code" : "1",
        "display" : "Основное заболевание"
      }]
    },
    {
      "coding" : [{
        "system" : "https://fhir.ru/ig/core/CodeSystem/core-cs-nsi-diagnosis-justification-degree",
        "code" : "3",
        "display" : "Заключительный клинический диагноз"
      }]
    }]
  }]
}