{
  "resourceType" : "Encounter",
  "id" : "EncounterExternalConsultation",
  "meta" : {
    "profile" : ["https://fhir.by/StructureDefinition/EncounterGeneral"]
  },
  "extension" : [{
    "url" : "https://fhir.by/StructureDefinition/EncounterTypeOfVisit",
    "valueCodeableConcept" : {
      "coding" : [{
        "system" : "https://fhir.by/ValueSet/EncounterTypeOfVisit",
        "code" : "primary",
        "display" : "первичное обращение"
      }]
    }
  }],
  "status" : "completed",
  "class" : [{
    "coding" : [{
      "system" : "https://fhir.by/ValueSet/VSTermsOfService",
      "code" : "1"
    }]
  }],
  "priority" : {
    "coding" : [{
      "system" : "https://fhir.by/ValueSet/HealthCareForms",
      "code" : "emergency"
    }]
  },
  "type" : [{
    "coding" : [{
      "system" : "https://fhir.by/ValueSet/TypeOfHealthCare",
      "code" : "primary"
    }]
  }],
  "subject" : {
    "reference" : "Patient/PatientBundleForTest"
  },
  "serviceProvider" : {
    "reference" : "Organization/9ad86c36-0f29-428d-b476-c8603a7cdd1f"
  },
  "participant" : [{
    "actor" : {
      "reference" : "ExampleDoctor"
    }
  }],
  "actualPeriod" : {
    "start" : "2026-04-07T09:30:00Z",
    "end" : "2026-04-07T10:30:00Z"
  },
  "diagnosis" : [{
    "condition" : [{
      "reference" : {
        "reference" : "Condition/DiagnosisBundleForTest"
      }
    }],
    "use" : [{
      "coding" : [{
        "system" : "https://fhir.by/ValueSet/TypeOfDiagnosis",
        "code" : "mainDiagnosis"
      }]
    }]
  }]
}