PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)
CLOSED {
a [fhir:Appointment];
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:Appointment.identifier @*; # External Ids for this item
fhir:Appointment.status @ AND
{fhir:value @fhirvs:appointmentstatus}; # proposed | pending | booked |
# arrived | fulfilled | cancelled |
# noshow | entered-in-error |
# checked-in | waitlist
fhir:Appointment.cancelationReason @?; # The coded reason for the
# appointment being cancelled
fhir:Appointment.serviceCategory @*; # A broad categorization of the
# service that is to be performed
# during this appointment
fhir:Appointment.serviceType @*; # The specific service that is to be
# performed during this appointment
fhir:Appointment.specialty @*; # The specialty of a practitioner
# that would be required to perform
# the service requested in this
# appointment
fhir:Appointment.appointmentType @?; # The style of appointment or
# patient that has been booked in
# the slot (not service type)
fhir:Appointment.reasonCode @*; # Coded reason this appointment is
# scheduled
fhir:Appointment.reasonReference @*; # Reason the appointment is to take
# place (resource)
fhir:Appointment.priority @?; # Used to make informed decisions if
# needing to re-prioritize
fhir:Appointment.description @?; # Shown on a subject line in a
# meeting request, or appointment
# list
fhir:Appointment.supportingInformation @*; # Additional information to support
# the appointment
fhir:Appointment.start @?; # When appointment is to take place
fhir:Appointment.end @?; # When appointment is to conclude
fhir:Appointment.minutesDuration @?; # Can be less than start/end (e.g.
# estimate)
fhir:Appointment.slot @*; # The slots that this appointment is
# filling
fhir:Appointment.created @?; # The date that this appointment was
# initially created
fhir:Appointment.comment @?; # Additional comments
fhir:Appointment.patientInstruction @?; # Detailed information and
# instructions for the patient
fhir:Appointment.basedOn @*; # The service request this
# appointment is allocated to assess
fhir:Appointment.participant @+; # Participants involved in
# appointment
fhir:Appointment.requestedPeriod @*; # Potential date/time interval(s)
# requested to allocate the
# appointment within
fhir:index xsd:integer? # Relative position in a list
}
# Participants involved in appointment
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:Appointment.participant.type @*; # Role of participant in the
# appointment
fhir:Appointment.participant.actor @?; # Person, Location/HealthcareService
# or Device
fhir:Appointment.participant.required @ AND
{fhir:value @fhirvs:participantrequired}?; # required | optional |
# information-only
fhir:Appointment.participant.status @ AND
{fhir:value @fhirvs:participationstatus}; # accepted | declined | tentative |
# needs-action
fhir:Appointment.participant.period @?; # Participation period of the actor
fhir:index xsd:integer? # Relative position in a list
}
#---------------------- Data Types -------------------
# 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
}
# Primitive Type string
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value string MAXLENGTH 1048576?; # Primitive value for string
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
}
# 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
}
# Primitive Type instant
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value instant?; # Primitive value for instant
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 @