PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
PREFIX rdf:
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# A request for a service to be performed
EXTENDS @ CLOSED {
a [fhir:ServiceRequest]?;
fhir:nodeRole [fhir:treeRoot]?;
fhir:identifier @?; # Identifiers assigned to this order
fhir:instantiatesCanonical @?; # Instantiates FHIR protocol or
# definition
fhir:instantiatesUri @?; # Instantiates external protocol or
# definition
fhir:basedOn @?; # What request fulfills
fhir:replaces @?; # What request replaces
fhir:requisition @?; # Composite Request ID
fhir:status @ AND
{fhir:v @fhirvs:request-status}; # draft | active | on-hold | revoked
# | completed | entered-in-error |
# unknown
fhir:intent @ AND
{fhir:v @fhirvs:request-intent}; # proposal | plan | directive |
# order +
fhir:category @?; # Classification of service
fhir:priority @ AND
{fhir:v @fhirvs:request-priority}?; # routine | urgent | asap | stat
fhir:doNotPerform @?; # True if service/procedure should
# not be performed
fhir:code @?; # What is being requested/ordered
fhir:orderDetail @?; # Additional order information
fhir:quantity @ OR
@ OR
@ ?; # Service amount
fhir:subject @ AND {fhir:link
@ OR
@ OR
@ OR
@ ? }; # Individual or Entity the service
# is ordered for
fhir:focus @?; # What the service request is about,
# when it is not about the subject
# of record
fhir:encounter @ AND {fhir:link
@ ? }?; # Encounter in which the request was
# created
fhir:occurrence @ OR
@ OR
@ ?; # When service should occur
fhir:asNeeded @ OR
@ ?; # Preconditions for service
fhir:authoredOn @?; # Date request signed
fhir:requester @ AND {fhir:link
@ OR
@ OR
@ OR
@ OR
@ OR
@ ? }?; # Who/what is requesting service
fhir:performerType @?; # Performer role
fhir:performer @?; # Requested performer
fhir:location @?; # Requested location
fhir:reason @?; # Explanation/Justification for
# procedure or service
fhir:insurance @?; # Associated insurance coverage
fhir:supportingInfo @?; # Additional clinical information
fhir:specimen @?; # Procedure Samples
fhir:bodySite @?; # Coded location on Body
fhir:bodyStructure @ AND {fhir:link
@ ? }?; # BodyStructure-based location on
# the body
fhir:note @?; # Comments
fhir:patientInstruction @?; # Patient or consumer-oriented
# instructions
fhir:relevantHistory @?; # Request provenance
}
# The parameter details for the service being requested
EXTENDS @ CLOSED {
fhir:code @; # The detail of the order being
# requested
fhir:value @ OR
@ OR
@ OR
@ OR
@ OR
@ OR
@ ; # The value for the order detail
}
# Patient or consumer-oriented instructions
EXTENDS @ CLOSED {
fhir:instruction @ OR
(@ AND {fhir:link @ }) ?; # Patient or consumer-oriented
# instructions
}
# Additional order information
EXTENDS @ CLOSED {
fhir:parameterFocus @?; # The context of the order details
# by reference
fhir:parameter @; # The parameter details for the
# service being requested
}
#---------------------- Cardinality Types (OneOrMore) -------------------
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ AND {fhir:link
@ OR
@ OR
@ } ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ AND {fhir:link
@ } ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ AND {fhir:link
@ } ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ AND {fhir:link
@ OR
@ OR
@ OR
@ OR
@ OR
@ OR
@ OR
@ } ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ AND {fhir:link
@ OR
@ } ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ AND {fhir:link
@ } ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ AND {fhir:link
@ } ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
#---------------------- Value Sets ------------------------
# Codes indicating the degree of authority/intentionality associated with a request.
fhirvs:request-intent ["proposal" "plan" "directive" "order" "original-order" "reflex-order" "filler-order" "instance-order" "option"]
# Identifies the level of importance to be assigned to actioning the request.
fhirvs:request-priority ["routine" "urgent" "asap" "stat"]
# Codes identifying the lifecycle stage of a request.
fhirvs:request-status ["draft" "active" "on-hold" "revoked" "completed" "entered-in-error" "unknown"]