PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# Выбор потребителя здравоохранения разрешить или запретить получателям или ролям выполнять действия для определенных целей и периодов времени
CLOSED {
a [fhir:Consent];
fhir:nodeRole [fhir:treeRoot]?;
fhir:Resource.id @?; # Logical id of this artifact
fhir:Resource.meta @?; # Metadata about the resource
fhir:Resource.implicitRules @?; # A set of rules under which this
# content was created
fhir:Resource.language @?; # Language of the resource content
fhir:DomainResource.text @?; # Text summary of the resource, for
# human interpretation
fhir:DomainResource.contained @*; # Contained, inline Resources
fhir:DomainResource.extension @*; # Additional content defined by
# implementations
fhir:DomainResource.modifierExtension @*; # Extensions that cannot be ignored
fhir:Consent.identifier @*; # Идентификатор этой записи (внешние
# ссылки)
fhir:Consent.status @ AND
{fhir:value @fhirvs:consent-state-codes}; # draft | proposed | active |
# rejected | inactive |
# entered-in-error
fhir:Consent.scope @; # Какую из четырех областей
# охватывает этот ресурс
# (расширяемый)
fhir:Consent.category @+; # Классификация заявления о согласии
# - для индексации / поиска
fhir:Consent.patient @?; # На кого распространяется согласие
fhir:Consent.dateTime @?; # Когда это Согласие было создано
# или проиндексировано
fhir:Consent.performer @*; # Кто соглашается с политикой и
# правилами
fhir:Consent.organization @*; # Хранитель согласия
( # Источник, из которого взято это
# согласие
fhir:Consent.sourceAttachment @ |
fhir:Consent.sourceReference @
)?;
fhir:Consent.policy @*; # Политики, на которые
# распространяется это согласие
fhir:Consent.policyRule @?; # Положение, на которое дается
# согласие
fhir:Consent.verification @*; # Согласие подтверждено пациентом
# или семьей
fhir:Consent.provision @?; # Ограничения базового
# Consent.policyRule
fhir:index xsd:integer? # Relative position in a list
}
# Политики, на которые распространяется это согласие
CLOSED {
fhir:Element.id @?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:Consent.policy.authority @?; # Источник правоприменения для
# политики
fhir:Consent.policy.uri @?; # Конкретная политика, на которую
# распространяется это согласие
fhir:index xsd:integer? # Relative position in a list
}
# Ограничения базового Consent.policyRule
CLOSED {
fhir:Element.id @?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:Consent.provision.type @ AND
{fhir:value @fhirvs:consent-provision-type}?; # deny | permit
fhir:Consent.provision.period @?; # Срок действия этого правила
fhir:Consent.provision.actor @*; # Кто | что контролируется этим
# правилом (или группой, по роли)
fhir:Consent.provision.action @*; # Действия, контролируемые этим
# правилом
fhir:Consent.provision.securityLabel @*; # Метки безопасности затронутых
# ресурсов
fhir:Consent.provision.purpose @*; # Контекст действий, подпадающих под
# это правило
fhir:Consent.provision.class @*; # Например, тип ресурса, профиль, CDA
fhir:Consent.provision.code @*; # Например, код LOINC или SNOMED CT
# и т. д. в содержимом
fhir:Consent.provision.dataPeriod @?; # Сроки для данных, контролируемых
# этим правилом
fhir:Consent.provision.data @*; # Данные, контролируемые этим
# правилом
fhir:Consent.provision.provision @*; # Вложенные правила исключений
fhir:index xsd:integer? # Relative position in a list
}
# Согласие подтверждено пациентом или семьей
CLOSED {
fhir:Element.id @?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:Consent.verification.verified @; # Было проверено
fhir:Consent.verification.verifiedWith @?; # Лицо, подтвердившее согласие
fhir:Consent.verification.verificationDate @?; # Когда согласие было подтверждено
fhir:index xsd:integer? # Relative position in a list
}
# Данные, контролируемые этим правилом
CLOSED {
fhir:Element.id @?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:Consent.provision.data.meaning @ AND
{fhir:value @fhirvs:consent-data-meaning}; # instance | related | dependents |
# authoredby
fhir:Consent.provision.data.reference @; # Ссылка на сами данные
fhir:index xsd:integer? # Relative position in a list
}
# Кто | что контролируется этим правилом (или группой, по роли)
CLOSED {
fhir:Element.id @?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:Consent.provision.actor.role @; # Как задействовано действующее лицо
fhir:Consent.provision.actor.reference @; # Ресурс для действующего лица (или
# группы, по ролям)
fhir:index xsd:integer? # Relative position in a list
}
#---------------------- Data Types -------------------
# Primitive Type dateTime
CLOSED {
fhir:Element.id @?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value @?; # Primitive value for dateTime
fhir:index xsd:integer? # Relative position in a list
}
# Metadata about a resource
CLOSED {
fhir:Element.id @?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Meta.versionId @?; # Version specific identifier
fhir:Meta.lastUpdated @?; # When the resource version last
# changed
fhir:Meta.source @?; # Identifies where the resource
# comes from
fhir:Meta.profile @*; # Profiles this resource claims to
# conform to
fhir:Meta.security @*; # Security Labels applied to this
# resource
fhir:Meta.tag @*; # Tags applied to this resource
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type code
CLOSED {
fhir:Element.id @?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value @?; # Primitive value for code
fhir:index xsd:integer? # Relative position in a list
}
# A reference from one resource to another
CLOSED {
fhir:link IRI?;
fhir:Element.id @?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Reference.reference @?; # Literal reference, Relative,
# internal or absolute URL
fhir:Reference.type @?; # Type the reference refers to (e.g.
# "Patient")
fhir:Reference.identifier @?; # Logical reference, when literal
# reference is not known
fhir:Reference.display @?; # Text alternative for the resource
fhir:index xsd:integer? # Relative position in a list
}
# Base Resource
{a .+;
fhir:Resource.id @?; # Logical id of this artifact
fhir:Resource.meta @?; # Metadata about the resource
fhir:Resource.implicitRules @?; # A set of rules under which this
# content was created
fhir:Resource.language @?; # Language of the resource content
fhir:index xsd:integer?
}
# Time range defined by start and end date/time
CLOSED {
fhir:Element.id @?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Period.start @?; # Starting time with inclusive
# boundary
fhir:Period.end @?; # End time with inclusive boundary,
# if not ongoing
fhir:index xsd:integer? # Relative position in a list
}
# Content in a format defined elsewhere
CLOSED {
fhir:Element.id @?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Attachment.contentType @ AND
{fhir:value @fhirvs:mimetypes}?; # Mime type of the content, with
# charset etc.
fhir:Attachment.language @?; # Human language of the content
# (BCP-47)
fhir:Attachment.data @?; # Data inline, base64ed
fhir:Attachment.url @?; # Uri where the data can be found
fhir:Attachment.size @?; # Number of bytes of content (if url
# provided)
fhir:Attachment.hash @?; # Hash of the data (sha-1, base64ed)
fhir:Attachment.title @?; # Label to display in place of the
# data
fhir:Attachment.creation @?; # Date attachment was first created
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type uri
CLOSED {
fhir:Element.id @?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value @?; # Primitive value for uri
fhir:index xsd:integer? # Relative position in a list
}
# Optional Extensions Element
CLOSED {
fhir:Element.id @?;
fhir:Element.extension @*;
fhir:Extension.url @;
(
fhir:Extension.valueBase64Binary @ |
fhir:Extension.valueBoolean @ |
fhir:Extension.valueCanonical @ |
fhir:Extension.valueCode @ |
fhir:Extension.valueDate @ |
fhir:Extension.valueDateTime @ |
fhir:Extension.valueDecimal @ |
fhir:Extension.valueId @ |
fhir:Extension.valueInstant @ |
fhir:Extension.valueInteger @ |
fhir:Extension.valueMarkdown @ |
fhir:Extension.valueOid @ |
fhir:Extension.valuePositiveInt @ |
fhir:Extension.valueString @ |
fhir:Extension.valueTime @