Current Build

Переводит команда Health Samurai. Приглашаем поучаствовать в русификации стандарта FHIR: GitHub, Email.

Encounter.profile.json

Patient Administration Work GroupMaturity Level: N/ABallot Status: InformativeCompartments: Encounter, Patient, Practitioner, RelatedPerson

Raw JSON (каноническая форма + also see JSON Format Specification)

StructureDefinition for encounter

{
  "resourceType" : "StructureDefinition",
  "id" : "Encounter",
  "meta" : {
    "lastUpdated" : "2019-05-17T12:34:53.932+00:00"
  },
  "text" : {
    "status" : "generated",
    "div" : "<div>!-- Snipped for Brevity --></div>"
  },
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "trial-use"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 2
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
    "valueCode" : "patient"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "pa"
  }],
  "url" : "http://hl7.org/fhir/StructureDefinition/Encounter",
  "version" : "3.6.0",
  "name" : "Encounter",
  "status" : "draft",
  "date" : "2019-05-17T12:34:53+00:00",
  "publisher" : "Health Level Seven International (Patient Administration)",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "http://hl7.org/fhir"
    }]
  },
  {
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/pafm/index.cfm"
    }]
  }],
  "description" : "Взаимодействие между пациентом и поставщиками медицинских услуг в целях предоставления медицинских услуг или оценки медицинского состояния пациента.",
  "fhirVersion" : "3.6.0",
  "mapping" : [{
    "identity" : "workflow",
    "uri" : "http://hl7.org/fhir/workflow",
    "name" : "Workflow Pattern"
  },
  {
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  },
  {
    "identity" : "w5",
    "uri" : "http://hl7.org/fhir/fivews",
    "name" : "FiveWs Pattern"
  },
  {
    "identity" : "v2",
    "uri" : "http://hl7.org/v2",
    "name" : "HL7 v2 Mapping"
  }],
  "kind" : "resource",
  "abstract" : false,
  "type" : "Encounter",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "derivation" : "specialization",
  "snapshot" : {
    "element" : [{
      "id" : "Encounter",
      "path" : "Encounter",
      "short" : "Взаимодействие, во время которого пациенту предоставляются услуги",
      "definition" : "Взаимодействие между пациентом и поставщиками медицинских услуг в целях предоставления медицинских услуг или оценки медицинского состояния пациента.",
      "alias" : ["Visit"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter",
        "min" : 0,
        "max" : "*"
      },
      "constraint" : [{
        "key" : "dom-2",
        "severity" : "error",
        "human" : "Если ресурс встроен в другой ресурс, он НЕ ДОЛЖЕН содержать описательной части",
        "expression" : "contained.contained.empty()",
        "xpath" : "not(parent::f:contained and f:contained)",
        "source" : "DomainResource"
      },
      {
        "key" : "dom-4",
        "severity" : "error",
        "human" : "Если ресурс встроен в другой ресурс, он НЕ ДОЛЖЕН иметь meta.versionId или meta.lastUpdated",
        "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
        "xpath" : "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source" : "DomainResource"
      },
      {
        "key" : "dom-3",
        "severity" : "error",
        "human" : "Если ресурс встроен в другой ресурс, где-то в родительском ресурсе на него ДОЛЖНА БЫТЬ дана ссылка or SHALL refer to the containing resource",
        "expression" : "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
        "xpath" : "not(exists(for $contained in f:contained return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "source" : "DomainResource"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean" : true
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown" : "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
        }],
        "key" : "dom-6",
        "severity" : "warning",
        "human" : "A resource should have narrative for robust management",
        "expression" : "text.div.exists()",
        "xpath" : "exists(f:text/h:div)",
        "source" : "DomainResource"
      },
      {
        "key" : "dom-5",
        "severity" : "error",
        "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
        "expression" : "contained.meta.security.empty()",
        "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
        "source" : "DomainResource"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "Entity. Role, or Act"
      },
      {
        "identity" : "workflow",
        "map" : "Event"
      },
      {
        "identity" : "rim",
        "map" : "Encounter[@moodCode='EVN']"
      }]
    },
    {
      "id" : "Encounter.id",
      "path" : "Encounter.id",
      "short" : "Logical id of this artifact",
      "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "comment" : "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Resource.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "id"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "Encounter.meta",
      "path" : "Encounter.meta",
      "short" : "Метаданные ресурса",
      "definition" : "Метаданные ресурса. Это такая информация, которая поддерживается инфраструктурой. Изменения этой информации не всегда можно ассоциировать с версионными изменениями ресурса.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Resource.meta",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Meta"
      }],
      "isModifier" : false,
      "isSummary" : true
    },
    {
      "id" : "Encounter.implicitRules",
      "path" : "Encounter.implicitRules",
      "short" : "Свод правил, в соответствии с которыми создавалось это содержимое",
      "definition" : "Ссылка на свод правил, которым следовали при создании этого ресурса и которые необходимо понимать при обработке этого содержимого. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
      "comment" : "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Resource.implicitRules",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "uri"
      }],
      "isModifier" : true,
      "isModifierReason" : "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
      "isSummary" : true
    },
    {
      "id" : "Encounter.language",
      "path" : "Encounter.language",
      "short" : "Язык содержимого ресурса",
      "definition" : "Основной язык, на котором написан ресурс.",
      "comment" : "Язык указывается для поддержки предварительной обработки текстов и доступности для понимания (например при преобразовании текста в речь используется языковой тег). HTML-тег language в описательной части применяется к этой описательной части. Языковой тег ресурса может использоваться для указания языков других представлений, генерируемых из данных ресурса\n\nНе все содержание ресурса должно быть на указанном основном языке. Resource.language нельзя автоматически принимать за язык описательной части. Если язык указан, его также следует указать в элементе div в HTML (информацию о связи между xml:lang и HTML-атрибутом lang см. в правилах HTML5).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Resource.language",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical" : "http://hl7.org/fhir/ValueSet/all-languages"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "Language"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean" : true
        }],
        "strength" : "preferred",
        "description" : "Естественный язык.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
      }
    },
    {
      "id" : "Encounter.text",
      "path" : "Encounter.text",
      "short" : "Краткое текстовое изложение ресурса для интерпретации человеком",
      "definition" : "Человекочитаемая описательная часть, содержащая краткое изложение ресурса, которая может использоваться для представления содержимого ресурса человеку. От описательной части не требуется кодировать все структурированные данные, но она должна содержать достаточно сведений, чтобы простое её прочтение человеком было \"клинически безопасным\". Определения ресурсов могут описывать, какое содержимое должно быть представлено в описательной части для обеспечения клинической безопасной.",
      "comment" : "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
      "alias" : ["narrative",
      "html",
      "xhtml",
      "display"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "DomainResource.text",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Narrative"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "Act.text?"
      }]
    },
    {
      "id" : "Encounter.contained",
      "path" : "Encounter.contained",
      "short" : "Вложенные, встроенные инлайн ресурсы",
      "definition" : "Эти ресурсы не обладают независимым существованием вне ресурса, который их содержит - их нельзя идентифицировать независимо, и они не могут иметь своей собственной независимой транзакционной области действия.",
      "comment" : "Этого не следует делать, когда содержимое может быть идентифицировано должным образом, поскольку, потеряв идентификацию, будет чрезвычайно сложно (и контекстно-зависимо) снова восстановить её. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
      "alias" : ["inline resources",
      "anonymous resources",
      "contained resources"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DomainResource.contained",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Resource"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Encounter.extension",
      "path" : "Encounter.extension",
      "short" : "Дополнительное содержимое, определенное реализаторами",
      "definition" : "Может использоваться для представления дополнительной информации, не являющейся частью базового определения ресурса. Чтобы сделать использование расширений надежным и управляемым, существует строгий набор управления применительно к определению и использованию расширений. Хотя каждому реализатору разрешается определять расширения, имеется набор требований, которые должны выполняться в рамках определения расширения.",
      "comment" : "Не должно быть никаких предрассудков по использованию расширений любыми приложениями, проектами или стандартами - вне зависимости от учреждения или юрисдикции, которые используют или задают расширение. Именно использование расширений позволяет спецификации FHIR сохранять простоту для всех.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DomainResource.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Encounter.modifierExtension",
      "path" : "Encounter.modifierExtension",
      "short" : "Расширения, которые нельзя игнорировать",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "Не должно быть никаких предрассудков по использованию расширений любыми приложениями, проектами или стандартами - вне зависимости от учреждения или юрисдикции, которые используют или задают расширение. Именно использование расширений позволяет спецификации FHIR сохранять простоту для всех.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "DomainResource.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Encounter.identifier",
      "path" : "Encounter.identifier",
      "short" : "Идентификаторы, присвоенные данному случаю обслуживания",
      "definition" : "Идентификаторы, присвоенные данному случаю обслуживания.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.identifier",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Identifier"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.identifier"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.identifier"
      },
      {
        "identity" : "v2",
        "map" : "PV1-19"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      }]
    },
    {
      "id" : "Encounter.status",
      "path" : "Encounter.status",
      "short" : "planned | arrived | triaged | in-progress | onleave | finished | cancelled +",
      "definition" : "planned | arrived | triaged | in-progress | onleave | finished | cancelled +.",
      "comment" : "Note that internal business rules will detemine the appropriate transitions that may occur between statuses (and also classes).",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Encounter.status",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : true,
      "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterStatus"
        }],
        "strength" : "required",
        "description" : "Текущий статус случая обслуживания.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-status"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.status"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.status"
      },
      {
        "identity" : "v2",
        "map" : "No clear equivalent in HL7 v2; active/finished could be inferred from PV1-44, PV1-45, PV2-24; inactive could be inferred from PV2-16"
      },
      {
        "identity" : "rim",
        "map" : ".statusCode"
      }]
    },
    {
      "id" : "Encounter.statusHistory",
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
        "valueString" : "StatusHistory"
      }],
      "path" : "Encounter.statusHistory",
      "short" : "Перечень предыдущих статусов случая обслуживания",
      "definition" : "Этот элемент позволяет ресурсу Encounter содержать в себе историю изменения статусов без необходимости чтения всех архивных версий ресурса и даже необходимости серверу хранить их.",
      "comment" : "Текущий статус всегда указан в текущей версии ресурса, а не в истории изменения статусов.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.statusHistory",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.statusHistory.id",
      "path" : "Encounter.statusHistory.id",
      "representation" : ["xmlAttr"],
      "short" : "xml:id (or equivalent in JSON)",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.statusHistory.extension",
      "path" : "Encounter.statusHistory.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.statusHistory.modifierExtension",
      "path" : "Encounter.statusHistory.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Encounter.statusHistory.status",
      "path" : "Encounter.statusHistory.status",
      "short" : "planned | arrived | triaged | in-progress | onleave | finished | cancelled +",
      "definition" : "planned | arrived | triaged | in-progress | onleave | finished | cancelled +.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Encounter.statusHistory.status",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterStatus"
        }],
        "strength" : "required",
        "description" : "Текущий статус случая обслуживания.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-status"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.statusHistory.period",
      "path" : "Encounter.statusHistory.period",
      "short" : "Время, когда эпизод имел указанный статус",
      "definition" : "Время, когда эпизод имел указанный статус.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Encounter.statusHistory.period",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "Period"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.class",
      "path" : "Encounter.class",
      "short" : "Classification of patient encounter",
      "definition" : "Concepts representing classification of patient encounter such as ambulatory (outpatient), inpatient, emergency, home health or others due to local variations.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Encounter.class",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "Coding"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterClass"
        }],
        "strength" : "extensible",
        "description" : "Классификация случая обслуживания.",
        "valueSet" : "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.class"
      },
      {
        "identity" : "v2",
        "map" : "PV1-2"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=LIST].code"
      }]
    },
    {
      "id" : "Encounter.classHistory",
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
        "valueString" : "ClassHistory"
      }],
      "path" : "Encounter.classHistory",
      "short" : "List of past encounter classes",
      "definition" : "The class history permits the tracking of the encounters transitions without needing to go  through the resource history.  This would be used for a case where an admission starts of as an emergency encounter, then transisions into an inpatient scenario. Doing this and not restarting a new encounter ensures that any lab/diagnostic results can more easily follow the patient and not require re-processing and not get lost or cancelled during a kindof discharge from emergency to inpatient.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.classHistory",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.classHistory.id",
      "path" : "Encounter.classHistory.id",
      "representation" : ["xmlAttr"],
      "short" : "xml:id (or equivalent in JSON)",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.classHistory.extension",
      "path" : "Encounter.classHistory.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.classHistory.modifierExtension",
      "path" : "Encounter.classHistory.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Encounter.classHistory.class",
      "path" : "Encounter.classHistory.class",
      "short" : "inpatient | outpatient | ambulatory | emergency +",
      "definition" : "inpatient | outpatient | ambulatory | emergency +.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Encounter.classHistory.class",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "Coding"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterClass"
        }],
        "strength" : "extensible",
        "description" : "Классификация случая обслуживания.",
        "valueSet" : "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.classHistory.period",
      "path" : "Encounter.classHistory.period",
      "short" : "The time that the episode was in the specified class",
      "definition" : "The time that the episode was in the specified class.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Encounter.classHistory.period",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "Period"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.type",
      "path" : "Encounter.type",
      "short" : "Конкретный тип случая обслуживания",
      "definition" : "Конкретный тип случая обслуживания (например консультация по электронной почте, хирургический дневной стационар, квалифицированный уход, реабилитация).",
      "comment" : "Поскольку существует много способов дальнейшей классификации случаев обслуживания, кардинальное множество этого элемента 0..*.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.type",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterType"
        }],
        "strength" : "example",
        "description" : "Тип случая обслуживания.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-type"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.code"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.class"
      },
      {
        "identity" : "v2",
        "map" : "PV1-4 / PV1-18"
      },
      {
        "identity" : "rim",
        "map" : ".code"
      }]
    },
    {
      "id" : "Encounter.serviceType",
      "path" : "Encounter.serviceType",
      "short" : "Specific type of service",
      "definition" : "Broad categorization of the service that is to be provided (e.g. cardiology).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.serviceType",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterServiceType"
        }],
        "strength" : "example",
        "description" : "Broad categorization of the service that is to be provided.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/service-type"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.code"
      },
      {
        "identity" : "v2",
        "map" : "PV1-10"
      },
      {
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.priority",
      "path" : "Encounter.priority",
      "short" : "Указывает срочность случая обслуживания",
      "definition" : "Указывает срочность случая обслуживания.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.priority",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "Priority"
        }],
        "strength" : "example",
        "description" : "Обозначает срочность случая обслуживания.",
        "valueSet" : "http://terminology.hl7.org/ValueSet/v3-ActPriority"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.grade"
      },
      {
        "identity" : "v2",
        "map" : "PV2-25"
      },
      {
        "identity" : "rim",
        "map" : ".priorityCode"
      }]
    },
    {
      "id" : "Encounter.subject",
      "path" : "Encounter.subject",
      "short" : "The patient or group present at the encounter",
      "definition" : "The patient or group present at the encounter.",
      "comment" : "While the encounter is always about the patient, the patient might not actually be known in all contexts of use, and there may be a group of patients that could be anonymous (such as in a group therapy for Alcoholics Anonymous - where the recording of the encounter could be used for billing on the number of people/staff and not important to the context of the specific patients) or alternately in veterinary care a herd of sheep receiving treatment (where the animals are not individually tracked).",
      "alias" : ["patient"],
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.subject",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Group"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.subject"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject[x]"
      },
      {
        "identity" : "v2",
        "map" : "PID-3"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=SBJ]/role[classCode=PAT]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject"
      }]
    },
    {
      "id" : "Encounter.episodeOfCare",
      "path" : "Encounter.episodeOfCare",
      "short" : "Эпизод лечения, в который должен войти этот случай обслуживания",
      "definition" : "Это поле следует использовать, если данный случай обслуживания следует отнести к некоторому эпизоду (или эпизодам) лечения. Указание этой связи облегчит группировку связанных случаев обслуживания, например для официальных отчётов, отслеживания проблемных вопросов, поиска связи с распространённой проблемой. Связь указывается в ресурсах Encounter, поскольку они обычно создаются после эпизода лечения, и группируются при вводе, а не редактируют эпизод лечения, добавляя к нему очередной случай обслуживания (эпизод лечения может длиться годами).",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.episodeOfCare",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.context"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.context"
      },
      {
        "identity" : "v2",
        "map" : "PV1-54, PV1-53"
      },
      {
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.basedOn",
      "path" : "Encounter.basedOn",
      "short" : "The ServiceRequest that initiated this encounter",
      "definition" : "The request this encounter satisfies (e.g. incoming referral or procedure request).",
      "alias" : ["incomingReferral"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.basedOn",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.basedOn"
      },
      {
        "identity" : "rim",
        "map" : ".reason.ClinicalDocument"
      }]
    },
    {
      "id" : "Encounter.participant",
      "path" : "Encounter.participant",
      "short" : "Перечень участников случая обслуживания",
      "definition" : "The list of people responsible for providing the service.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.participant",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer"
      },
      {
        "identity" : "v2",
        "map" : "ROL"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=PFM]"
      }]
    },
    {
      "id" : "Encounter.participant.id",
      "path" : "Encounter.participant.id",
      "representation" : ["xmlAttr"],
      "short" : "xml:id (or equivalent in JSON)",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.participant.extension",
      "path" : "Encounter.participant.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.participant.modifierExtension",
      "path" : "Encounter.participant.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Encounter.participant.type",
      "path" : "Encounter.participant.type",
      "short" : "Роль участника случая обслуживания",
      "definition" : "Роль участника случая обслуживания.",
      "comment" : "В элементе ParticipantType указывается, каким образом человек участвует в случае обслуживания. Сюда входят участники, не являющиеся врачами, а для врачей здесь описывается тип действия в контексте данного случая обслуживания (например врач приемного покоя, лечащий врач, переводчик, врач-консультант). Эта информация отличается от роли участника, где указываются функциональные роли, вытекающие из условий найма, образования лицензирования и т. п.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.participant.type",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ParticipantType"
        }],
        "strength" : "extensible",
        "description" : "Роль участника случая обслуживания.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-participant-type"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.function"
      },
      {
        "identity" : "v2",
        "map" : "ROL-3 (or maybe PRT-4)"
      },
      {
        "identity" : "rim",
        "map" : ".functionCode"
      }]
    },
    {
      "id" : "Encounter.participant.period",
      "path" : "Encounter.participant.period",
      "short" : "Period of time during the encounter that the participant participated",
      "definition" : "The period of time that the specified participant participated in the encounter. These can overlap or be sub-sets of the overall encounter's period.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.participant.period",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Period"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "v2",
        "map" : "ROL-5, ROL-6 (or maybe PRT-5)"
      },
      {
        "identity" : "rim",
        "map" : ".time"
      }]
    },
    {
      "id" : "Encounter.participant.individual",
      "path" : "Encounter.participant.individual",
      "short" : "Лица, участвующие в случае обслуживания, кроме пациента",
      "definition" : "Лица, участвующие в случае обслуживания, кроме пациента.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.participant.individual",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.actor"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.who"
      },
      {
        "identity" : "v2",
        "map" : "ROL-4"
      },
      {
        "identity" : "rim",
        "map" : ".role"
      }]
    },
    {
      "id" : "Encounter.appointment",
      "path" : "Encounter.appointment",
      "short" : "Запись на приём, по которой был запланирован этот случай обслуживания",
      "definition" : "Запись на приём, по которой был запланирован этот случай обслуживания.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.appointment",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Appointment"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.basedOn"
      },
      {
        "identity" : "v2",
        "map" : "SCH-1 / SCH-2"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=FLFS].target[classCode=ENC, moodCode=APT]"
      }]
    },
    {
      "id" : "Encounter.period",
      "path" : "Encounter.period",
      "short" : "Время начала и время окончания случая обслуживания",
      "definition" : "Время начала и время окончания случая обслуживания.",
      "comment" : "Если время окончания не известно (пока что), то оно может быть опущено.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.period",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Period"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.occurrence[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.done[x]"
      },
      {
        "identity" : "v2",
        "map" : "PV1-44, PV1-45"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime (low & high)"
      }]
    },
    {
      "id" : "Encounter.length",
      "path" : "Encounter.length",
      "short" : "Количество времени, которое длился случай обслуживания (без времени отсутствия)",
      "definition" : "Количество времени, которое длился случай обслуживания. Сюда не входит время отсутствия.",
      "comment" : "Может отличаться от времени, указанном в поле Encounter.period, из-за времени отсутствия.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.length",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Duration"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.occurrence[x]"
      },
      {
        "identity" : "v2",
        "map" : "(PV1-45 less PV1-44) iff ( (PV1-44 not empty) and (PV1-45 not empty) ); units in minutes"
      },
      {
        "identity" : "rim",
        "map" : ".lengthOfStayQuantity"
      }]
    },
    {
      "id" : "Encounter.reasonCode",
      "path" : "Encounter.reasonCode",
      "short" : "Coded reason the encounter takes place",
      "definition" : "Основание проведения случая обслуживания, выраженное в виде кода. Для госпитализации может использоваться в качестве кодированного диагноза при поступлении.",
      "comment" : "Для тех систем, которым нужно знать, какой из диагнозов является основным, они будут помечены с помощью стандартного расширения primaryDiagnosis (это будет не флаг, а последовательная нумерация диагнозов, где под номером 1 будет идти основной диагноз).",
      "alias" : ["Indication",
      "Admission diagnosis"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.reasonCode",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterReason"
        }],
        "strength" : "preferred",
        "description" : "Основание проведения encounter.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-reason"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.reasonCode"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "v2",
        "map" : "EVN-4 / PV2-3 (note: PV2-3 is nominally constrained to inpatient admissions; HL7 v2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )"
      },
      {
        "identity" : "rim",
        "map" : ".reasonCode"
      }]
    },
    {
      "id" : "Encounter.reasonReference",
      "path" : "Encounter.reasonReference",
      "short" : "Reason the encounter takes place (reference)",
      "definition" : "Основание проведения случая обслуживания, выраженное в виде кода. Для госпитализации может использоваться в качестве кодированного диагноза при поступлении.",
      "comment" : "Для тех систем, которым нужно знать, какой из диагнозов является основным, они будут помечены с помощью стандартного расширения primaryDiagnosis (это будет не флаг, а последовательная нумерация диагнозов, где под номером 1 будет идти основной диагноз).",
      "alias" : ["Indication",
      "Admission diagnosis"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.reasonReference",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition",
        "http://hl7.org/fhir/StructureDefinition/Procedure",
        "http://hl7.org/fhir/StructureDefinition/Observation",
        "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.reasonCode"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "v2",
        "map" : "EVN-4 / PV2-3 (note: PV2-3 is nominally constrained to inpatient admissions; HL7 v2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )"
      },
      {
        "identity" : "rim",
        "map" : ".reasonCode"
      }]
    },
    {
      "id" : "Encounter.diagnosis",
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
        "valueString" : "Diagnosis"
      }],
      "path" : "Encounter.diagnosis",
      "short" : "The list of diagnosis relevant to this encounter",
      "definition" : "The list of diagnosis relevant to this encounter.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.diagnosis",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=RSON]"
      }]
    },
    {
      "id" : "Encounter.diagnosis.id",
      "path" : "Encounter.diagnosis.id",
      "representation" : ["xmlAttr"],
      "short" : "xml:id (or equivalent in JSON)",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.diagnosis.extension",
      "path" : "Encounter.diagnosis.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.diagnosis.modifierExtension",
      "path" : "Encounter.diagnosis.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Encounter.diagnosis.condition",
      "path" : "Encounter.diagnosis.condition",
      "short" : "The diagnosis or procedure relevant to the encounter",
      "definition" : "Основание для проведения случая обслуживания, указанное с помощью ссылки на другой ресурс. Для госпитализации это будет диагноз при поступлении.\nКак правило, это будет ссылка на ресурс Condition (со ссылками на другие ресурсы в поле evidence.detail) или Procedure.",
      "comment" : "Для тех систем, которым нужно знать, какой из диагнозов является основным, они будут помечены с помощью стандартного расширения primaryDiagnosis (это будет не флаг, а последовательная нумерация диагнозов, где под номером 1 будет идти основной диагноз).",
      "alias" : ["Admission diagnosis",
      "discharge diagnosis",
      "indication"],
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Encounter.diagnosis.condition",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition",
        "http://hl7.org/fhir/StructureDefinition/Procedure"]
      }],
      "isModifier" : false,
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.reasonReference"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "v2",
        "map" : "Ресурсы, на которые обычно ссылается поле Encounter.indication, это Condition и/или Procedure. Наиболее близко они соответствуют сегментам DG1/PRB и PR1, соответственно."
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=RSON].target"
      }]
    },
    {
      "id" : "Encounter.diagnosis.use",
      "path" : "Encounter.diagnosis.use",
      "short" : "Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …)",
      "definition" : "Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.diagnosis.use",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "DiagnosisRole"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean" : true
        }],
        "strength" : "preferred",
        "description" : "The type of diagnosis this condition represents.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/diagnosis-role"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.diagnosis.rank",
      "path" : "Encounter.diagnosis.rank",
      "short" : "Ranking of the diagnosis (for each role type)",
      "definition" : "Ranking of the diagnosis (for each role type).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.diagnosis.rank",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "positiveInt"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=RSON].priority"
      }]
    },
    {
      "id" : "Encounter.account",
      "path" : "Encounter.account",
      "short" : "The set of accounts that may be used for billing for this Encounter",
      "definition" : "The set of accounts that may be used for billing for this Encounter.",
      "comment" : "The billing system may choose to allocate billable items associated with the Encounter to different referenced Accounts based on internal business rules.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.account",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Account"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".pertains.A_Account"
      }]
    },
    {
      "id" : "Encounter.hospitalization",
      "path" : "Encounter.hospitalization",
      "short" : "Сведения о госпитализации в медицинском учреждении",
      "definition" : "Сведения о госпитализации в медицинском учреждении.",
      "comment" : "Ресурс Encounter может описывать не только стационарное пребывание пациента в больнице. Такие контексты, как амбулаторное посещение, общественные поликлиники, уход за престарелыми, также описываются этим ресурсом.\n\nПериод, указываемый в продолжительности случая обслуживания, охватывает полностью всю запись о госпитализации.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.hospitalization",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP].target[classCode=ENC, moodCode=EVN]"
      }]
    },
    {
      "id" : "Encounter.hospitalization.id",
      "path" : "Encounter.hospitalization.id",
      "representation" : ["xmlAttr"],
      "short" : "xml:id (or equivalent in JSON)",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.hospitalization.extension",
      "path" : "Encounter.hospitalization.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.hospitalization.modifierExtension",
      "path" : "Encounter.hospitalization.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Encounter.hospitalization.preAdmissionIdentifier",
      "path" : "Encounter.hospitalization.preAdmissionIdentifier",
      "short" : "Догоспитальный идентификатор",
      "definition" : "Догоспитальный идентификатор.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.hospitalization.preAdmissionIdentifier",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Identifier"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-5"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      }]
    },
    {
      "id" : "Encounter.hospitalization.origin",
      "path" : "Encounter.hospitalization.origin",
      "short" : "The location/organization from which the patient came before admission",
      "definition" : "The location/organization from which the patient came before admission.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.hospitalization.origin",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location",
        "http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=ORG].role"
      }]
    },
    {
      "id" : "Encounter.hospitalization.admitSource",
      "path" : "Encounter.hospitalization.admitSource",
      "short" : "Откуда пациент был принят (направление врача, перевод)",
      "definition" : "Откуда пациент был принят (направление врача, перевод).",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.hospitalization.admitSource",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "AdmitSource"
        }],
        "strength" : "preferred",
        "description" : "Откуда был госпитализирован пациент.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-admit-source"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-14"
      },
      {
        "identity" : "rim",
        "map" : ".admissionReferralSourceCode"
      }]
    },
    {
      "id" : "Encounter.hospitalization.reAdmission",
      "path" : "Encounter.hospitalization.reAdmission",
      "short" : "The type of hospital re-admission that has occurred (if any). If the value is absent, then this is not identified as a readmission",
      "definition" : "Является ли данная госпитализация повторным приемом (регоспитализацией) и почему, если известно.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.hospitalization.reAdmission",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ReAdmissionType"
        }],
        "strength" : "example",
        "description" : "Обоснование для повторной госпитализации в рамках этого случая обслуживания.",
        "valueSet" : "http://terminology.hl7.org/ValueSet/v2-0092"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-13"
      },
      {
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.hospitalization.dietPreference",
      "path" : "Encounter.hospitalization.dietPreference",
      "short" : "Предпочтения по питанию, о которых сообщил пациент",
      "definition" : "Предпочтения по питанию, о которых сообщил пациент.",
      "comment" : "Например, пациент может попросить исключить из своего питания молоко и орехи (не взаимоисключающие предпочтения).",
      "requirements" : "Используется для отслеживания диетических ограничений и/или предпочтений пациента. Для полного описания необходимого питания для пациента на время пребывания необходимо использовать ресурс nutritionOrder, который привязывается к Encounter.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.hospitalization.dietPreference",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "PatientDiet"
        }],
        "strength" : "example",
        "description" : "Медицинские, культурные или этические предпочтения, связанные с пищей, для выполнения требований питания.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-diet"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-38"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=EVN, code=\"diet\"]"
      }]
    },
    {
      "id" : "Encounter.hospitalization.specialCourtesy",
      "path" : "Encounter.hospitalization.specialCourtesy",
      "short" : "Особые знаки внимания (VIP, член совета директоров)",
      "definition" : "Особые знаки внимания (VIP, член совета директоров).",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.hospitalization.specialCourtesy",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "Courtesies"
        }],
        "strength" : "preferred",
        "description" : "Особые знаки внимания.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-special-courtesy"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-16"
      },
      {
        "identity" : "rim",
        "map" : ".specialCourtesiesCode"
      }]
    },
    {
      "id" : "Encounter.hospitalization.specialArrangement",
      "path" : "Encounter.hospitalization.specialArrangement",
      "short" : "Инвалидная коляска, переводчик, носилки и т. п",
      "definition" : "Any special requests that have been made for this hospitalization encounter, such as the provision of specific equipment or other things.",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.hospitalization.specialArrangement",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "Arrangements"
        }],
        "strength" : "preferred",
        "description" : "Особые договоренности.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-special-arrangements"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-15 / OBR-30 / OBR-43"
      },
      {
        "identity" : "rim",
        "map" : ".specialArrangementCode"
      }]
    },
    {
      "id" : "Encounter.hospitalization.destination",
      "path" : "Encounter.hospitalization.destination",
      "short" : "Location/organization to which the patient is discharged",
      "definition" : "Location/organization to which the patient is discharged.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.hospitalization.destination",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location",
        "http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-37"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=DST]"
      }]
    },
    {
      "id" : "Encounter.hospitalization.dischargeDisposition",
      "path" : "Encounter.hospitalization.dischargeDisposition",
      "short" : "Категория или вид места размещения после выписки",
      "definition" : "Категория или вид места размещения после выписки.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.hospitalization.dischargeDisposition",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "DischargeDisp"
        }],
        "strength" : "example",
        "description" : "Размещение после выписки.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-discharge-disposition"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-36"
      },
      {
        "identity" : "rim",
        "map" : ".dischargeDispositionCode"
      }]
    },
    {
      "id" : "Encounter.location",
      "path" : "Encounter.location",
      "short" : "Перечень помещений, в которых находился пациент",
      "definition" : "Список мест, где находился пациент во время случая обслуживания.",
      "comment" : "Virtual encounters can be recorded in the Encounter by specifying a location reference to a location of type \"kind\" such as \"client's home\" and an encounter.class = \"virtual\".",
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Encounter.location",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "BackboneElement"
      }],
      "constraint" : [{
        "key" : "ele-1",
        "severity" : "error",
        "human" : "All FHIR elements must have a @value or children",
        "expression" : "hasValue() or (children().count() > id.count())",
        "xpath" : "@value|f:*|h:div",
        "source" : "Element"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=LOC]"
      }]
    },
    {
      "id" : "Encounter.location.id",
      "path" : "Encounter.location.id",
      "representation" : ["xmlAttr"],
      "short" : "xml:id (or equivalent in JSON)",
      "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Element.id",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.location.extension",
      "path" : "Encounter.location.extension",
      "short" : "Additional content defined by implementations",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "Element.extension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.location.modifierExtension",
      "path" : "Encounter.location.modifierExtension",
      "short" : "Extensions that cannot be ignored even if unrecognized",
      "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "Extension"
      }],
      "isModifier" : true,
      "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : "N/A"
      }]
    },
    {
      "id" : "Encounter.location.location",
      "path" : "Encounter.location.location",
      "short" : "Место проведения случая обслуживания",
      "definition" : "Место проведения случая обслуживания.",
      "min" : 1,
      "max" : "1",
      "base" : {
        "path" : "Encounter.location.location",
        "min" : 1,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.location"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.where[x]"
      },
      {
        "identity" : "v2",
        "map" : "PV1-3 / PV1-6 / PV1-11 / PV1-42 / PV1-43"
      },
      {
        "identity" : "rim",
        "map" : ".role"
      }]
    },
    {
      "id" : "Encounter.location.status",
      "path" : "Encounter.location.status",
      "short" : "planned | active | reserved | completed",
      "definition" : "Статус присутствия участника в указанном месте в указанный период времени. Если участник больше не находится в этом месте, тогда период будет иметь дату/время окончания.",
      "comment" : "Когда активность пациента в некотором месте заканчивается, тогда вводится дата окончания периода, а статус может быть изменён на \"completed\".",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.location.status",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterLocationStatus"
        }],
        "strength" : "required",
        "description" : "Статус размещения.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-location-status"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".role.statusCode"
      }]
    },
    {
      "id" : "Encounter.location.physicalType",
      "path" : "Encounter.location.physicalType",
      "short" : "The physical type of the location (usually the level in the location heirachy - bed room ward etc)",
      "definition" : "This will be used to specifiy the required levels (bed/ward/room/etc) desired to be recorded to simplify either messaging or query.",
      "comment" : "This information is de-normalized from the Location resource to support the easier understanding of the encounter resource and processing in messaging or query.\n\nThere may be many levels in the heirachy, and this may only pic specific levels that are required for a specific usage scenario.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.location.physicalType",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "PhysicalType"
        }],
        "strength" : "example",
        "description" : "Physical form of the location.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/location-physical-type"
      }
    },
    {
      "id" : "Encounter.location.period",
      "path" : "Encounter.location.period",
      "short" : "Период времени, в течение которого пациент присутствовал в этом месте",
      "definition" : "Период времени, в течение которого пациент присутствовал в этом месте.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.location.period",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Period"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".time"
      }]
    },
    {
      "id" : "Encounter.serviceProvider",
      "path" : "Encounter.serviceProvider",
      "short" : "The organization (facility) responsible for this encounter",
      "definition" : "The organization that is primarily responsible for this Encounter's services. This MAY be the same as the organization on the Patient record, however it could be different, such as if the actor performing the services was from an external organization (which may be billed seperately) for an external consultation.  Refer to the example bundle showing an abbreviated set of Encounters for a colonoscopy.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.serviceProvider",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.actor"
      },
      {
        "identity" : "v2",
        "map" : "PL.6  & PL.1"
      },
      {
        "identity" : "rim",
        "map" : ".particiaption[typeCode=PFM].role"
      }]
    },
    {
      "id" : "Encounter.partOf",
      "path" : "Encounter.partOf",
      "short" : "Другой Encounter, частью которого является данный случай обслуживания",
      "definition" : "Другой Encounter, частью которого является данный случай обслуживания (административно или по времени).",
      "comment" : "This is also used for associating a child's encounter back to the mother's encounter.\r\rRefer to the Notes section in the Patient resource for further details.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "Encounter.partOf",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean" : true
        }],
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.partOf"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=COMP].source[classCode=COMP, moodCode=EVN]"
      }]
    }]
  },
  "differential" : {
    "element" : [{
      "id" : "Encounter",
      "path" : "Encounter",
      "short" : "Взаимодействие, во время которого пациенту предоставляются услуги",
      "definition" : "Взаимодействие между пациентом и поставщиками медицинских услуг в целях предоставления медицинских услуг или оценки медицинского состояния пациента.",
      "alias" : ["Visit"],
      "min" : 0,
      "max" : "*",
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event"
      },
      {
        "identity" : "rim",
        "map" : "Encounter[@moodCode='EVN']"
      }]
    },
    {
      "id" : "Encounter.identifier",
      "path" : "Encounter.identifier",
      "short" : "Идентификаторы, присвоенные данному случаю обслуживания",
      "definition" : "Идентификаторы, присвоенные данному случаю обслуживания.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Identifier"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.identifier"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.identifier"
      },
      {
        "identity" : "v2",
        "map" : "PV1-19"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      }]
    },
    {
      "id" : "Encounter.status",
      "path" : "Encounter.status",
      "short" : "planned | arrived | triaged | in-progress | onleave | finished | cancelled +",
      "definition" : "planned | arrived | triaged | in-progress | onleave | finished | cancelled +.",
      "comment" : "Note that internal business rules will detemine the appropriate transitions that may occur between statuses (and also classes).",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : true,
      "isModifierReason" : "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterStatus"
        }],
        "strength" : "required",
        "description" : "Текущий статус случая обслуживания.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-status"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.status"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.status"
      },
      {
        "identity" : "v2",
        "map" : "No clear equivalent in HL7 v2; active/finished could be inferred from PV1-44, PV1-45, PV2-24; inactive could be inferred from PV2-16"
      },
      {
        "identity" : "rim",
        "map" : ".statusCode"
      }]
    },
    {
      "id" : "Encounter.statusHistory",
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
        "valueString" : "StatusHistory"
      }],
      "path" : "Encounter.statusHistory",
      "short" : "Перечень предыдущих статусов случая обслуживания",
      "definition" : "Этот элемент позволяет ресурсу Encounter содержать в себе историю изменения статусов без необходимости чтения всех архивных версий ресурса и даже необходимости серверу хранить их.",
      "comment" : "Текущий статус всегда указан в текущей версии ресурса, а не в истории изменения статусов.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.statusHistory.status",
      "path" : "Encounter.statusHistory.status",
      "short" : "planned | arrived | triaged | in-progress | onleave | finished | cancelled +",
      "definition" : "planned | arrived | triaged | in-progress | onleave | finished | cancelled +.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterStatus"
        }],
        "strength" : "required",
        "description" : "Текущий статус случая обслуживания.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-status"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.statusHistory.period",
      "path" : "Encounter.statusHistory.period",
      "short" : "Время, когда эпизод имел указанный статус",
      "definition" : "Время, когда эпизод имел указанный статус.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Period"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.class",
      "path" : "Encounter.class",
      "short" : "Classification of patient encounter",
      "definition" : "Concepts representing classification of patient encounter such as ambulatory (outpatient), inpatient, emergency, home health or others due to local variations.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Coding"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterClass"
        }],
        "strength" : "extensible",
        "description" : "Классификация случая обслуживания.",
        "valueSet" : "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.class"
      },
      {
        "identity" : "v2",
        "map" : "PV1-2"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=LIST].code"
      }]
    },
    {
      "id" : "Encounter.classHistory",
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
        "valueString" : "ClassHistory"
      }],
      "path" : "Encounter.classHistory",
      "short" : "List of past encounter classes",
      "definition" : "The class history permits the tracking of the encounters transitions without needing to go  through the resource history.  This would be used for a case where an admission starts of as an emergency encounter, then transisions into an inpatient scenario. Doing this and not restarting a new encounter ensures that any lab/diagnostic results can more easily follow the patient and not require re-processing and not get lost or cancelled during a kindof discharge from emergency to inpatient.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.classHistory.class",
      "path" : "Encounter.classHistory.class",
      "short" : "inpatient | outpatient | ambulatory | emergency +",
      "definition" : "inpatient | outpatient | ambulatory | emergency +.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Coding"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterClass"
        }],
        "strength" : "extensible",
        "description" : "Классификация случая обслуживания.",
        "valueSet" : "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.classHistory.period",
      "path" : "Encounter.classHistory.period",
      "short" : "The time that the episode was in the specified class",
      "definition" : "The time that the episode was in the specified class.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Period"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.type",
      "path" : "Encounter.type",
      "short" : "Конкретный тип случая обслуживания",
      "definition" : "Конкретный тип случая обслуживания (например консультация по электронной почте, хирургический дневной стационар, квалифицированный уход, реабилитация).",
      "comment" : "Поскольку существует много способов дальнейшей классификации случаев обслуживания, кардинальное множество этого элемента 0..*.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterType"
        }],
        "strength" : "example",
        "description" : "Тип случая обслуживания.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-type"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.code"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.class"
      },
      {
        "identity" : "v2",
        "map" : "PV1-4 / PV1-18"
      },
      {
        "identity" : "rim",
        "map" : ".code"
      }]
    },
    {
      "id" : "Encounter.serviceType",
      "path" : "Encounter.serviceType",
      "short" : "Specific type of service",
      "definition" : "Broad categorization of the service that is to be provided (e.g. cardiology).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterServiceType"
        }],
        "strength" : "example",
        "description" : "Broad categorization of the service that is to be provided.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/service-type"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.code"
      },
      {
        "identity" : "v2",
        "map" : "PV1-10"
      },
      {
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.priority",
      "path" : "Encounter.priority",
      "short" : "Указывает срочность случая обслуживания",
      "definition" : "Указывает срочность случая обслуживания.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "Priority"
        }],
        "strength" : "example",
        "description" : "Обозначает срочность случая обслуживания.",
        "valueSet" : "http://terminology.hl7.org/ValueSet/v3-ActPriority"
      },
      "mapping" : [{
        "identity" : "w5",
        "map" : "FiveWs.grade"
      },
      {
        "identity" : "v2",
        "map" : "PV2-25"
      },
      {
        "identity" : "rim",
        "map" : ".priorityCode"
      }]
    },
    {
      "id" : "Encounter.subject",
      "path" : "Encounter.subject",
      "short" : "The patient or group present at the encounter",
      "definition" : "The patient or group present at the encounter.",
      "comment" : "While the encounter is always about the patient, the patient might not actually be known in all contexts of use, and there may be a group of patients that could be anonymous (such as in a group therapy for Alcoholics Anonymous - where the recording of the encounter could be used for billing on the number of people/staff and not important to the context of the specific patients) or alternately in veterinary care a herd of sheep receiving treatment (where the animals are not individually tracked).",
      "alias" : ["patient"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/Group"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.subject"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject[x]"
      },
      {
        "identity" : "v2",
        "map" : "PID-3"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=SBJ]/role[classCode=PAT]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.subject"
      }]
    },
    {
      "id" : "Encounter.episodeOfCare",
      "path" : "Encounter.episodeOfCare",
      "short" : "Эпизод лечения, в который должен войти этот случай обслуживания",
      "definition" : "Это поле следует использовать, если данный случай обслуживания следует отнести к некоторому эпизоду (или эпизодам) лечения. Указание этой связи облегчит группировку связанных случаев обслуживания, например для официальных отчётов, отслеживания проблемных вопросов, поиска связи с распространённой проблемой. Связь указывается в ресурсах Encounter, поскольку они обычно создаются после эпизода лечения, и группируются при вводе, а не редактируют эпизод лечения, добавляя к нему очередной случай обслуживания (эпизод лечения может длиться годами).",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.context"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.context"
      },
      {
        "identity" : "v2",
        "map" : "PV1-54, PV1-53"
      },
      {
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.basedOn",
      "path" : "Encounter.basedOn",
      "short" : "The ServiceRequest that initiated this encounter",
      "definition" : "The request this encounter satisfies (e.g. incoming referral or procedure request).",
      "alias" : ["incomingReferral"],
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ServiceRequest"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.basedOn"
      },
      {
        "identity" : "rim",
        "map" : ".reason.ClinicalDocument"
      }]
    },
    {
      "id" : "Encounter.participant",
      "path" : "Encounter.participant",
      "short" : "Перечень участников случая обслуживания",
      "definition" : "The list of people responsible for providing the service.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer"
      },
      {
        "identity" : "v2",
        "map" : "ROL"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=PFM]"
      }]
    },
    {
      "id" : "Encounter.participant.type",
      "path" : "Encounter.participant.type",
      "short" : "Роль участника случая обслуживания",
      "definition" : "Роль участника случая обслуживания.",
      "comment" : "В элементе ParticipantType указывается, каким образом человек участвует в случае обслуживания. Сюда входят участники, не являющиеся врачами, а для врачей здесь описывается тип действия в контексте данного случая обслуживания (например врач приемного покоя, лечащий врач, переводчик, врач-консультант). Эта информация отличается от роли участника, где указываются функциональные роли, вытекающие из условий найма, образования лицензирования и т. п.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ParticipantType"
        }],
        "strength" : "extensible",
        "description" : "Роль участника случая обслуживания.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-participant-type"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.function"
      },
      {
        "identity" : "v2",
        "map" : "ROL-3 (or maybe PRT-4)"
      },
      {
        "identity" : "rim",
        "map" : ".functionCode"
      }]
    },
    {
      "id" : "Encounter.participant.period",
      "path" : "Encounter.participant.period",
      "short" : "Period of time during the encounter that the participant participated",
      "definition" : "The period of time that the specified participant participated in the encounter. These can overlap or be sub-sets of the overall encounter's period.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Period"
      }],
      "mapping" : [{
        "identity" : "v2",
        "map" : "ROL-5, ROL-6 (or maybe PRT-5)"
      },
      {
        "identity" : "rim",
        "map" : ".time"
      }]
    },
    {
      "id" : "Encounter.participant.individual",
      "path" : "Encounter.participant.individual",
      "short" : "Лица, участвующие в случае обслуживания, кроме пациента",
      "definition" : "Лица, участвующие в случае обслуживания, кроме пациента.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.actor"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.who"
      },
      {
        "identity" : "v2",
        "map" : "ROL-4"
      },
      {
        "identity" : "rim",
        "map" : ".role"
      }]
    },
    {
      "id" : "Encounter.appointment",
      "path" : "Encounter.appointment",
      "short" : "Запись на приём, по которой был запланирован этот случай обслуживания",
      "definition" : "Запись на приём, по которой был запланирован этот случай обслуживания.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Appointment"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.basedOn"
      },
      {
        "identity" : "v2",
        "map" : "SCH-1 / SCH-2"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=FLFS].target[classCode=ENC, moodCode=APT]"
      }]
    },
    {
      "id" : "Encounter.period",
      "path" : "Encounter.period",
      "short" : "Время начала и время окончания случая обслуживания",
      "definition" : "Время начала и время окончания случая обслуживания.",
      "comment" : "Если время окончания не известно (пока что), то оно может быть опущено.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Period"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.occurrence[x]"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.done[x]"
      },
      {
        "identity" : "v2",
        "map" : "PV1-44, PV1-45"
      },
      {
        "identity" : "rim",
        "map" : ".effectiveTime (low & high)"
      }]
    },
    {
      "id" : "Encounter.length",
      "path" : "Encounter.length",
      "short" : "Количество времени, которое длился случай обслуживания (без времени отсутствия)",
      "definition" : "Количество времени, которое длился случай обслуживания. Сюда не входит время отсутствия.",
      "comment" : "Может отличаться от времени, указанном в поле Encounter.period, из-за времени отсутствия.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Duration"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.occurrence[x]"
      },
      {
        "identity" : "v2",
        "map" : "(PV1-45 less PV1-44) iff ( (PV1-44 not empty) and (PV1-45 not empty) ); units in minutes"
      },
      {
        "identity" : "rim",
        "map" : ".lengthOfStayQuantity"
      }]
    },
    {
      "id" : "Encounter.reasonCode",
      "path" : "Encounter.reasonCode",
      "short" : "Coded reason the encounter takes place",
      "definition" : "Основание проведения случая обслуживания, выраженное в виде кода. Для госпитализации может использоваться в качестве кодированного диагноза при поступлении.",
      "comment" : "Для тех систем, которым нужно знать, какой из диагнозов является основным, они будут помечены с помощью стандартного расширения primaryDiagnosis (это будет не флаг, а последовательная нумерация диагнозов, где под номером 1 будет идти основной диагноз).",
      "alias" : ["Indication",
      "Admission diagnosis"],
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterReason"
        }],
        "strength" : "preferred",
        "description" : "Основание проведения encounter.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-reason"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.reasonCode"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "v2",
        "map" : "EVN-4 / PV2-3 (note: PV2-3 is nominally constrained to inpatient admissions; HL7 v2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )"
      },
      {
        "identity" : "rim",
        "map" : ".reasonCode"
      }]
    },
    {
      "id" : "Encounter.reasonReference",
      "path" : "Encounter.reasonReference",
      "short" : "Reason the encounter takes place (reference)",
      "definition" : "Основание проведения случая обслуживания, выраженное в виде кода. Для госпитализации может использоваться в качестве кодированного диагноза при поступлении.",
      "comment" : "Для тех систем, которым нужно знать, какой из диагнозов является основным, они будут помечены с помощью стандартного расширения primaryDiagnosis (это будет не флаг, а последовательная нумерация диагнозов, где под номером 1 будет идти основной диагноз).",
      "alias" : ["Indication",
      "Admission diagnosis"],
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition",
        "http://hl7.org/fhir/StructureDefinition/Procedure",
        "http://hl7.org/fhir/StructureDefinition/Observation",
        "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.reasonCode"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "v2",
        "map" : "EVN-4 / PV2-3 (note: PV2-3 is nominally constrained to inpatient admissions; HL7 v2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )"
      },
      {
        "identity" : "rim",
        "map" : ".reasonCode"
      }]
    },
    {
      "id" : "Encounter.diagnosis",
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
        "valueString" : "Diagnosis"
      }],
      "path" : "Encounter.diagnosis",
      "short" : "The list of diagnosis relevant to this encounter",
      "definition" : "The list of diagnosis relevant to this encounter.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=RSON]"
      }]
    },
    {
      "id" : "Encounter.diagnosis.condition",
      "path" : "Encounter.diagnosis.condition",
      "short" : "The diagnosis or procedure relevant to the encounter",
      "definition" : "Основание для проведения случая обслуживания, указанное с помощью ссылки на другой ресурс. Для госпитализации это будет диагноз при поступлении.\nКак правило, это будет ссылка на ресурс Condition (со ссылками на другие ресурсы в поле evidence.detail) или Procedure.",
      "comment" : "Для тех систем, которым нужно знать, какой из диагнозов является основным, они будут помечены с помощью стандартного расширения primaryDiagnosis (это будет не флаг, а последовательная нумерация диагнозов, где под номером 1 будет идти основной диагноз).",
      "alias" : ["Admission diagnosis",
      "discharge diagnosis",
      "indication"],
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Condition",
        "http://hl7.org/fhir/StructureDefinition/Procedure"]
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.reasonReference"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "v2",
        "map" : "Ресурсы, на которые обычно ссылается поле Encounter.indication, это Condition и/или Procedure. Наиболее близко они соответствуют сегментам DG1/PRB и PR1, соответственно."
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=RSON].target"
      }]
    },
    {
      "id" : "Encounter.diagnosis.use",
      "path" : "Encounter.diagnosis.use",
      "short" : "Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …)",
      "definition" : "Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "DiagnosisRole"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean" : true
        }],
        "strength" : "preferred",
        "description" : "The type of diagnosis this condition represents.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/diagnosis-role"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.diagnosis.rank",
      "path" : "Encounter.diagnosis.rank",
      "short" : "Ranking of the diagnosis (for each role type)",
      "definition" : "Ranking of the diagnosis (for each role type).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "positiveInt"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=RSON].priority"
      }]
    },
    {
      "id" : "Encounter.account",
      "path" : "Encounter.account",
      "short" : "The set of accounts that may be used for billing for this Encounter",
      "definition" : "The set of accounts that may be used for billing for this Encounter.",
      "comment" : "The billing system may choose to allocate billable items associated with the Encounter to different referenced Accounts based on internal business rules.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Account"]
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".pertains.A_Account"
      }]
    },
    {
      "id" : "Encounter.hospitalization",
      "path" : "Encounter.hospitalization",
      "short" : "Сведения о госпитализации в медицинском учреждении",
      "definition" : "Сведения о госпитализации в медицинском учреждении.",
      "comment" : "Ресурс Encounter может описывать не только стационарное пребывание пациента в больнице. Такие контексты, как амбулаторное посещение, общественные поликлиники, уход за престарелыми, также описываются этим ресурсом.\n\nПериод, указываемый в продолжительности случая обслуживания, охватывает полностью всю запись о госпитализации.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP].target[classCode=ENC, moodCode=EVN]"
      }]
    },
    {
      "id" : "Encounter.hospitalization.preAdmissionIdentifier",
      "path" : "Encounter.hospitalization.preAdmissionIdentifier",
      "short" : "Догоспитальный идентификатор",
      "definition" : "Догоспитальный идентификатор.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Identifier"
      }],
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-5"
      },
      {
        "identity" : "rim",
        "map" : ".id"
      }]
    },
    {
      "id" : "Encounter.hospitalization.origin",
      "path" : "Encounter.hospitalization.origin",
      "short" : "The location/organization from which the patient came before admission",
      "definition" : "The location/organization from which the patient came before admission.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location",
        "http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=ORG].role"
      }]
    },
    {
      "id" : "Encounter.hospitalization.admitSource",
      "path" : "Encounter.hospitalization.admitSource",
      "short" : "Откуда пациент был принят (направление врача, перевод)",
      "definition" : "Откуда пациент был принят (направление врача, перевод).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "AdmitSource"
        }],
        "strength" : "preferred",
        "description" : "Откуда был госпитализирован пациент.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-admit-source"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-14"
      },
      {
        "identity" : "rim",
        "map" : ".admissionReferralSourceCode"
      }]
    },
    {
      "id" : "Encounter.hospitalization.reAdmission",
      "path" : "Encounter.hospitalization.reAdmission",
      "short" : "The type of hospital re-admission that has occurred (if any). If the value is absent, then this is not identified as a readmission",
      "definition" : "Является ли данная госпитализация повторным приемом (регоспитализацией) и почему, если известно.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ReAdmissionType"
        }],
        "strength" : "example",
        "description" : "Обоснование для повторной госпитализации в рамках этого случая обслуживания.",
        "valueSet" : "http://terminology.hl7.org/ValueSet/v2-0092"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-13"
      },
      {
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "Encounter.hospitalization.dietPreference",
      "path" : "Encounter.hospitalization.dietPreference",
      "short" : "Предпочтения по питанию, о которых сообщил пациент",
      "definition" : "Предпочтения по питанию, о которых сообщил пациент.",
      "comment" : "Например, пациент может попросить исключить из своего питания молоко и орехи (не взаимоисключающие предпочтения).",
      "requirements" : "Используется для отслеживания диетических ограничений и/или предпочтений пациента. Для полного описания необходимого питания для пациента на время пребывания необходимо использовать ресурс nutritionOrder, который привязывается к Encounter.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "PatientDiet"
        }],
        "strength" : "example",
        "description" : "Медицинские, культурные или этические предпочтения, связанные с пищей, для выполнения требований питания.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-diet"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-38"
      },
      {
        "identity" : "rim",
        "map" : ".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=EVN, code=\"diet\"]"
      }]
    },
    {
      "id" : "Encounter.hospitalization.specialCourtesy",
      "path" : "Encounter.hospitalization.specialCourtesy",
      "short" : "Особые знаки внимания (VIP, член совета директоров)",
      "definition" : "Особые знаки внимания (VIP, член совета директоров).",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "Courtesies"
        }],
        "strength" : "preferred",
        "description" : "Особые знаки внимания.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-special-courtesy"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-16"
      },
      {
        "identity" : "rim",
        "map" : ".specialCourtesiesCode"
      }]
    },
    {
      "id" : "Encounter.hospitalization.specialArrangement",
      "path" : "Encounter.hospitalization.specialArrangement",
      "short" : "Инвалидная коляска, переводчик, носилки и т. п",
      "definition" : "Any special requests that have been made for this hospitalization encounter, such as the provision of specific equipment or other things.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "Arrangements"
        }],
        "strength" : "preferred",
        "description" : "Особые договоренности.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-special-arrangements"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-15 / OBR-30 / OBR-43"
      },
      {
        "identity" : "rim",
        "map" : ".specialArrangementCode"
      }]
    },
    {
      "id" : "Encounter.hospitalization.destination",
      "path" : "Encounter.hospitalization.destination",
      "short" : "Location/organization to which the patient is discharged",
      "definition" : "Location/organization to which the patient is discharged.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location",
        "http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-37"
      },
      {
        "identity" : "rim",
        "map" : ".participation[typeCode=DST]"
      }]
    },
    {
      "id" : "Encounter.hospitalization.dischargeDisposition",
      "path" : "Encounter.hospitalization.dischargeDisposition",
      "short" : "Категория или вид места размещения после выписки",
      "definition" : "Категория или вид места размещения после выписки.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "DischargeDisp"
        }],
        "strength" : "example",
        "description" : "Размещение после выписки.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-discharge-disposition"
      },
      "mapping" : [{
        "identity" : "v2",
        "map" : "PV1-36"
      },
      {
        "identity" : "rim",
        "map" : ".dischargeDispositionCode"
      }]
    },
    {
      "id" : "Encounter.location",
      "path" : "Encounter.location",
      "short" : "Перечень помещений, в которых находился пациент",
      "definition" : "Список мест, где находился пациент во время случая обслуживания.",
      "comment" : "Virtual encounters can be recorded in the Encounter by specifying a location reference to a location of type \"kind\" such as \"client's home\" and an encounter.class = \"virtual\".",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".participation[typeCode=LOC]"
      }]
    },
    {
      "id" : "Encounter.location.location",
      "path" : "Encounter.location.location",
      "short" : "Место проведения случая обслуживания",
      "definition" : "Место проведения случая обслуживания.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Location"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.location"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.where[x]"
      },
      {
        "identity" : "v2",
        "map" : "PV1-3 / PV1-6 / PV1-11 / PV1-42 / PV1-43"
      },
      {
        "identity" : "rim",
        "map" : ".role"
      }]
    },
    {
      "id" : "Encounter.location.status",
      "path" : "Encounter.location.status",
      "short" : "planned | active | reserved | completed",
      "definition" : "Статус присутствия участника в указанном месте в указанный период времени. Если участник больше не находится в этом месте, тогда период будет иметь дату/время окончания.",
      "comment" : "Когда активность пациента в некотором месте заканчивается, тогда вводится дата окончания периода, а статус может быть изменён на \"completed\".",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "EncounterLocationStatus"
        }],
        "strength" : "required",
        "description" : "Статус размещения.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/encounter-location-status"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".role.statusCode"
      }]
    },
    {
      "id" : "Encounter.location.physicalType",
      "path" : "Encounter.location.physicalType",
      "short" : "The physical type of the location (usually the level in the location heirachy - bed room ward etc)",
      "definition" : "This will be used to specifiy the required levels (bed/ward/room/etc) desired to be recorded to simplify either messaging or query.",
      "comment" : "This information is de-normalized from the Location resource to support the easier understanding of the encounter resource and processing in messaging or query.\n\nThere may be many levels in the heirachy, and this may only pic specific levels that are required for a specific usage scenario.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "PhysicalType"
        }],
        "strength" : "example",
        "description" : "Physical form of the location.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/location-physical-type"
      }
    },
    {
      "id" : "Encounter.location.period",
      "path" : "Encounter.location.period",
      "short" : "Период времени, в течение которого пациент присутствовал в этом месте",
      "definition" : "Период времени, в течение которого пациент присутствовал в этом месте.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Period"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : ".time"
      }]
    },
    {
      "id" : "Encounter.serviceProvider",
      "path" : "Encounter.serviceProvider",
      "short" : "The organization (facility) responsible for this encounter",
      "definition" : "The organization that is primarily responsible for this Encounter's services. This MAY be the same as the organization on the Patient record, however it could be different, such as if the actor performing the services was from an external organization (which may be billed seperately) for an external consultation.  Refer to the example bundle showing an abbreviated set of Encounters for a colonoscopy.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.performer.actor"
      },
      {
        "identity" : "v2",
        "map" : "PL.6  & PL.1"
      },
      {
        "identity" : "rim",
        "map" : ".particiaption[typeCode=PFM].role"
      }]
    },
    {
      "id" : "Encounter.partOf",
      "path" : "Encounter.partOf",
      "short" : "Другой Encounter, частью которого является данный случай обслуживания",
      "definition" : "Другой Encounter, частью которого является данный случай обслуживания (административно или по времени).",
      "comment" : "This is also used for associating a child's encounter back to the mother's encounter.\r\rRefer to the Notes section in the Patient resource for further details.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
          "valueBoolean" : true
        }],
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Encounter"]
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Event.partOf"
      },
      {
        "identity" : "rim",
        "map" : ".inboundRelationship[typeCode=COMP].source[classCode=COMP, moodCode=EVN]"
      }]
    }]
  }
}

Примечание к использованию: мы очень стараемся приводить корректные и полезные примеры, но нормативно они не являются частью спецификации.