PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
PREFIX rdf:
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# Prescription for vision correction products for a patient
EXTENDS @ CLOSED {
a [fhir:VisionPrescription]?;
fhir:nodeRole [fhir:treeRoot]?;
fhir:identifier @?; # Business Identifier for vision
# prescription
fhir:status @ AND
{fhir:v @fhirvs:fm-status}; # active | cancelled | draft |
# entered-in-error
fhir:created @; # Response creation date
fhir:patient @ AND {fhir:link
@ ? }; # Who prescription is for
fhir:encounter @ AND {fhir:link
@ ? }?; # Created during encounter /
# admission / stay
fhir:dateWritten @; # When prescription was authorized
fhir:prescriber @ AND {fhir:link
@ OR
@ ? }; # Who authorized the vision
# prescription
fhir:lensSpecification @; # Vision lens authorization
}
# Vision lens authorization
EXTENDS @ CLOSED {
fhir:product @; # Product to be supplied
fhir:eye @ AND
{fhir:v @fhirvs:vision-eye-codes}; # right | left
fhir:sphere @?; # Power of the lens
fhir:cylinder @?; # Lens power for astigmatism
fhir:axis @?; # Lens meridian which contain no
# power for astigmatism
fhir:prism @?; # Eye alignment compensation
fhir:add @?; # Added power for multifocal levels
fhir:power @?; # Contact lens power
fhir:backCurve @?; # Contact lens back curvature
fhir:diameter @?; # Contact lens diameter
fhir:duration @?; # Lens wear duration
fhir:color @?; # Color required
fhir:brand @?; # Brand required
fhir:note @?; # Notes for coatings
}
# Eye alignment compensation
EXTENDS @ CLOSED {
fhir:amount @; # Amount of adjustment
fhir:base @ AND
{fhir:v @fhirvs:vision-base-codes}; # up | down | in | out
}
#---------------------- 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 @ ;
rdf:rest [rdf:nil] OR @
}
#---------------------- Value Sets ------------------------
# This value set includes Status codes.
fhirvs:fm-status ["active" "cancelled" "draft" "entered-in-error"]
# A coded concept listing the base codes.
fhirvs:vision-base-codes ["up" "down" "in" "out"]
# A coded concept listing the eye codes.
fhirvs:vision-eye-codes ["right" "left"]