PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# Information about an individual or animal receiving health care services
CLOSED {
a [fhir:Patient];
fhir:nodeRole [fhir:treeRoot]?;
fhir:Resource.id 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:Patient.identifier @*; # An identifier for this patient
fhir:Patient.active @?; # Whether this patient's record is
# in active use
fhir:Patient.name @*; # A name associated with the patient
fhir:Patient.telecom @*; # A contact detail for the individual
fhir:Patient.gender @ AND
{fhir:value @fhirvs:administrative-gender}?; # male | female | other | unknown
fhir:Patient.birthDate @?; # The date of birth for the
# individual
( # Indicates if the individual is
# deceased or not
fhir:Patient.deceasedBoolean @ |
fhir:Patient.deceasedDateTime @
)?;
fhir:Patient.address @*; # An address for the individual
fhir:Patient.maritalStatus @?; # Marital (civil) status of a patient
( # Whether patient is part of a
# multiple birth
fhir:Patient.multipleBirthBoolean @ |
fhir:Patient.multipleBirthInteger @
)?;
fhir:Patient.photo @*; # Image of the patient
fhir:Patient.contact @*; # A contact party (e.g. guardian,
# partner, friend) for the patient
fhir:Patient.communication @*; # A language which may be used to
# communicate with the patient about
# his or her health
fhir:Patient.generalPractitioner @*; # Patient's nominated primary care
# provider
fhir:Patient.managingOrganization @?; # Organization that is the custodian
# of the patient record
fhir:Patient.link @*; # Link to another patient resource
# that concerns the same actual
# person
fhir:index xsd:integer? # Relative position in a list
}
# A language which may be used to communicate with the patient about his or her health
CLOSED {
fhir:Element.id string?; # 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:Patient.communication.language @; # The language which can be used to
# communicate with the patient about
# his or her health
fhir:Patient.communication.preferred @?; # Language preference indicator
fhir:index xsd:integer? # Relative position in a list
}
# Link to another patient resource that concerns the same actual person
CLOSED {
fhir:Element.id string?; # 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:Patient.link.other @; # The other patient or related
# person resource that the link
# refers to
fhir:Patient.link.type @ AND
{fhir:value @fhirvs:link-type}; # replaced-by | replaces | refer |
# seealso
fhir:index xsd:integer? # Relative position in a list
}
# A contact party (e.g. guardian, partner, friend) for the patient
CLOSED {
fhir:Element.id string?; # 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:Patient.contact.relationship @*; # The kind of relationship
fhir:Patient.contact.name @?; # A name associated with the contact
# person
fhir:Patient.contact.telecom @*; # A contact detail for the person
fhir:Patient.contact.address @?; # Address for the contact person
fhir:Patient.contact.gender @ AND
{fhir:value @fhirvs:administrative-gender}?; # male | female | other | unknown
fhir:Patient.contact.organization @?; # Organization that is associated
# with the contact
fhir:Patient.contact.period @?; # The period during which this
# contact person or organization is
# valid to be contacted relating to
# this patient
fhir:index xsd:integer? # Relative position in a list
}
#---------------------- Data Types -------------------
# Primitive Type date
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value date?; # Primitive value for date
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type dateTime
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value dateTime?; # Primitive value for dateTime
fhir:index xsd:integer? # Relative position in a list
}
# Metadata about a resource
CLOSED {
fhir:Element.id 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 string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value code?; # Primitive value for code
fhir:index xsd:integer? # Relative position in a list
}
# An address expressed using postal conventions (as opposed to GPS or other location definition formats)
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Address.use @ AND
{fhir:value @fhirvs:address-use}?; # home | work | temp | old | billing
# - purpose of this address
fhir:Address.type @ AND
{fhir:value @fhirvs:address-type}?; # postal | physical | both
fhir:Address.text @?; # Text representation of the address
fhir:Address.line @*; # Street name, number, direction &
# P.O. Box etc.
fhir:Address.city @?; # Name of city, town etc.
fhir:Address.district @?; # District name (aka county)
fhir:Address.state @?; # Sub-unit of country (abbreviations
# ok)
fhir:Address.postalCode @?; # Postal code for area
fhir:Address.country @?; # Country (e.g. can be ISO 3166 2 or
# 3 letter code)
fhir:Address.period @?; # Time period when address was/is in
# use
fhir:index xsd:integer? # Relative position in a list
}
# A reference from one resource to another
CLOSED {
fhir:link IRI?;
fhir:Element.id 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 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 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 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 integer
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value integer MININCLUSIVE -2147483648 MAXINCLUSIVE 2147483647?; # Primitive value for integer
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type uri
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value uri?; # Primitive value for uri
fhir:index xsd:integer? # Relative position in a list
}
# Optional Extensions Element
CLOSED {
fhir:Element.id id?;
fhir:Element.extension @*;
fhir:Extension.url uri;
(
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 @