This page is part of the FHIR Specification (v1.6.0:
STU
3 Ballot 4). The current version which supercedes this version is
5.0.0
.
For
a
full
list
of
available
versions,
see
the
Directory
of
published
versions
. For a full list of available versions, see the
Directory of published versions
.
Page
versions:
. Page versions:
R5
R4B
R4
R3
R2
|
|
Compartments
|
An authorization for the supply of glasses and/or contact lenses to a patient.
This resource covers all prescriptions for glasses and contact lenses for a patient.
This resource is referenced by
CarePlan
,
,
Claim
and
,
ClinicalImpression
and
ExplanationOfBenefit
Structure
| Name | Flags | Card. | Type |
|
|---|---|---|---|---|
|
Σ | DomainResource |
|
|
|
Σ | 0..* | Identifier |
|
|
Σ | 0..1 | dateTime |
|
|
Σ | 0..1 | Reference ( Patient ) |
|
|
Σ | 0..1 | Reference ( Practitioner ) |
|
|
Σ | 0..1 | Reference ( Encounter ) |
|
|
Σ | 0..1 |
|
|
|
CodeableConcept | |||
|
Reference ( Condition ) | |||
|
Σ | 0..* | BackboneElement |
|
|
Σ | 1..1 | Coding |
|
|
Σ | 0..1 | code |
VisionEyes |
|
Σ | 0..1 | decimal |
|
|
Σ | 0..1 | decimal |
|
|
Σ | 0..1 | integer |
|
|
Σ | 0..1 | decimal |
|
|
Σ | 0..1 | code |
VisionBase |
|
Σ | 0..1 | decimal |
|
|
Σ | 0..1 | decimal |
|
|
Σ | 0..1 | decimal |
|
|
Σ | 0..1 | decimal |
|
|
Σ | 0..1 | SimpleQuantity |
|
|
Σ | 0..1 | string |
|
|
Σ | 0..1 | string |
|
|
Σ | 0..1 | string |
|
Documentation for this format
|
||||
UML
Diagram
UML Diagram
(
Legend
)
XML
Template
XML Template
<
<VisionPrescription xmlns="http://hl7.org/fhir"><!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension -->
<</identifier> < <</patient> <</prescriber> <</encounter> <</reason[x]> < <</product> < < < < < < < < < < <</duration> < < <<identifier><!-- 0..* Identifier Business identifier --></identifier> <dateWritten value="[dateTime]"/><!-- 0..1 When prescription was authorized --> <patient><!-- 0..1 Reference(Patient) Who prescription is for --></patient> <prescriber><!-- 0..1 Reference(Practitioner) Who authorizes the vision product --></prescriber> <encounter><!-- 0..1 Reference(Encounter) Created during encounter / admission / stay --></encounter> <reason[x]><!-- 0..1 CodeableConcept|Reference(Condition) Reason or indication for writing the prescription --></reason[x]> <dispense> <!-- 0..* Vision supply authorization --> <product><!-- 1..1 Coding Product to be supplied --></product> <eye value="[code]"/><!-- 0..1 right | left --> <sphere value="[decimal]"/><!-- 0..1 Lens sphere --> <cylinder value="[decimal]"/><!-- 0..1 Lens cylinder --> <axis value="[integer]"/><!-- 0..1 Lens axis --> <prism value="[decimal]"/><!-- 0..1 Lens prism --> <base value="[code]"/><!-- 0..1 up | down | in | out --> <add value="[decimal]"/><!-- 0..1 Lens add --> <power value="[decimal]"/><!-- 0..1 Contact lens power --> <backCurve value="[decimal]"/><!-- 0..1 Contact lens back curvature --> <diameter value="[decimal]"/><!-- 0..1 Contact lens diameter --> <duration><!-- 0..1 Quantity(SimpleQuantity) Lens wear duration --></duration> <color value="[string]"/><!-- 0..1 Color required --> <brand value="[string]"/><!-- 0..1 Brand required --> <notes value="[string]"/><!-- 0..1 Notes for coatings --> </dispense> </VisionPrescription>
JSON
Template
JSON Template
{
"resourceType" : "",
{
"resourceType" : "VisionPrescription",
// from Resource: id, meta, implicitRules, and language
// from DomainResource: text, contained, extension, and modifierExtension
"
"
"
"
"
"identifier" : [{ Identifier }], // Business identifier
"dateWritten" : "<dateTime>", // When prescription was authorized
"patient" : { Reference(Patient) }, // Who prescription is for
"prescriber" : { Reference(Practitioner) }, // Who authorizes the vision product
"encounter" : { Reference(Encounter) }, // Created during encounter / admission / stay
// reason[x]: Reason or indication for writing the prescription. One of these 2:
" },
" },
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"reasonCodeableConcept" : { CodeableConcept },
"reasonReference" : { Reference(Condition) },
"dispense" : [{ // Vision supply authorization
"product" : { Coding }, // R! Product to be supplied
"eye" : "<code>", // right | left
"sphere" : <decimal>, // Lens sphere
"cylinder" : <decimal>, // Lens cylinder
"axis" : <integer>, // Lens axis
"prism" : <decimal>, // Lens prism
"base" : "<code>", // up | down | in | out
"add" : <decimal>, // Lens add
"power" : <decimal>, // Contact lens power
"backCurve" : <decimal>, // Contact lens back curvature
"diameter" : <decimal>, // Contact lens diameter
"duration" : { Quantity(SimpleQuantity) }, // Lens wear duration
"color" : "<string>", // Color required
"brand" : "<string>", // Brand required
"notes" : "<string>" // Notes for coatings
}]
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> .[ a fhir:VisionPrescription; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Resource: .id, .meta, .implicitRules, and .language # from DomainResource: .text, .contained, .extension, and .modifierExtension fhir:VisionPrescription.identifier [ Identifier ], ... ; # 0..* Business identifier fhir:VisionPrescription.dateWritten [ dateTime ]; # 0..1 When prescription was authorized fhir:VisionPrescription.patient [ Reference(Patient) ]; # 0..1 Who prescription is for fhir:VisionPrescription.prescriber [ Reference(Practitioner) ]; # 0..1 Who authorizes the vision product fhir:VisionPrescription.encounter [ Reference(Encounter) ]; # 0..1 Created during encounter / admission / stay # VisionPrescription.reason[x] : 0..1 Reason or indication for writing the prescription. One of these 2 fhir:VisionPrescription.reasonCodeableConcept [ CodeableConcept ] fhir:VisionPrescription.reasonReference [ Reference(Condition) ] fhir:VisionPrescription.dispense [ # 0..* Vision supply authorization fhir:VisionPrescription.dispense.product [ Coding ]; # 1..1 Product to be supplied fhir:VisionPrescription.dispense.eye [ code ]; # 0..1 right | left fhir:VisionPrescription.dispense.sphere [ decimal ]; # 0..1 Lens sphere fhir:VisionPrescription.dispense.cylinder [ decimal ]; # 0..1 Lens cylinder fhir:VisionPrescription.dispense.axis [ integer ]; # 0..1 Lens axis fhir:VisionPrescription.dispense.prism [ decimal ]; # 0..1 Lens prism fhir:VisionPrescription.dispense.base [ code ]; # 0..1 up | down | in | out fhir:VisionPrescription.dispense.add [ decimal ]; # 0..1 Lens add fhir:VisionPrescription.dispense.power [ decimal ]; # 0..1 Contact lens power fhir:VisionPrescription.dispense.backCurve [ decimal ]; # 0..1 Contact lens back curvature fhir:VisionPrescription.dispense.diameter [ decimal ]; # 0..1 Contact lens diameter fhir:VisionPrescription.dispense.duration [ Quantity(SimpleQuantity) ]; # 0..1 Lens wear duration fhir:VisionPrescription.dispense.color [ string ]; # 0..1 Color required fhir:VisionPrescription.dispense.brand [ string ]; # 0..1 Brand required fhir:VisionPrescription.dispense.notes [ string ]; # 0..1 Notes for coatings ], ...; ]
Changes since DSTU2
| VisionPrescription | No Changes |
See the Full Difference for further information
Structure
| Name | Flags | Card. | Type |
|
|---|---|---|---|---|
|
Σ | DomainResource |
|
|
|
Σ | 0..* | Identifier |
|
|
Σ | 0..1 | dateTime |
|
|
Σ | 0..1 | Reference ( Patient ) |
|
|
Σ | 0..1 | Reference ( Practitioner ) |
|
|
Σ | 0..1 | Reference ( Encounter ) |
|
|
Σ | 0..1 |
|
|
|
CodeableConcept | |||
|
Reference ( Condition ) | |||
|
Σ | 0..* | BackboneElement |
|
|
Σ | 1..1 | Coding |
|
|
Σ | 0..1 | code |
VisionEyes |
|
Σ | 0..1 | decimal |
|
|
Σ | 0..1 | decimal |
|
|
Σ | 0..1 | integer |
|
|
Σ | 0..1 | decimal |
|
|
Σ | 0..1 | code |
VisionBase |
|
Σ | 0..1 | decimal |
|
|
Σ | 0..1 | decimal |
|
|
Σ | 0..1 | decimal |
|
|
Σ | 0..1 | decimal |
|
|
Σ | 0..1 | SimpleQuantity |
|
|
Σ | 0..1 | string |
|
|
Σ | 0..1 | string |
|
|
Σ | 0..1 | string |
|
Documentation for this format
|
||||
XML
Template
XML Template
<
<VisionPrescription xmlns="http://hl7.org/fhir"><!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension -->
<</identifier> < <</patient> <</prescriber> <</encounter> <</reason[x]> < <</product> < < < < < < < < < < <</duration> < < <<identifier><!-- 0..* Identifier Business identifier --></identifier> <dateWritten value="[dateTime]"/><!-- 0..1 When prescription was authorized --> <patient><!-- 0..1 Reference(Patient) Who prescription is for --></patient> <prescriber><!-- 0..1 Reference(Practitioner) Who authorizes the vision product --></prescriber> <encounter><!-- 0..1 Reference(Encounter) Created during encounter / admission / stay --></encounter> <reason[x]><!-- 0..1 CodeableConcept|Reference(Condition) Reason or indication for writing the prescription --></reason[x]> <dispense> <!-- 0..* Vision supply authorization --> <product><!-- 1..1 Coding Product to be supplied --></product> <eye value="[code]"/><!-- 0..1 right | left --> <sphere value="[decimal]"/><!-- 0..1 Lens sphere --> <cylinder value="[decimal]"/><!-- 0..1 Lens cylinder --> <axis value="[integer]"/><!-- 0..1 Lens axis --> <prism value="[decimal]"/><!-- 0..1 Lens prism --> <base value="[code]"/><!-- 0..1 up | down | in | out --> <add value="[decimal]"/><!-- 0..1 Lens add --> <power value="[decimal]"/><!-- 0..1 Contact lens power --> <backCurve value="[decimal]"/><!-- 0..1 Contact lens back curvature --> <diameter value="[decimal]"/><!-- 0..1 Contact lens diameter --> <duration><!-- 0..1 Quantity(SimpleQuantity) Lens wear duration --></duration> <color value="[string]"/><!-- 0..1 Color required --> <brand value="[string]"/><!-- 0..1 Brand required --> <notes value="[string]"/><!-- 0..1 Notes for coatings --> </dispense> </VisionPrescription>
JSON
Template
JSON Template
{
"resourceType" : "",
{
"resourceType" : "VisionPrescription",
// from Resource: id, meta, implicitRules, and language
// from DomainResource: text, contained, extension, and modifierExtension
"
"
"
"
"
"identifier" : [{ Identifier }], // Business identifier
"dateWritten" : "<dateTime>", // When prescription was authorized
"patient" : { Reference(Patient) }, // Who prescription is for
"prescriber" : { Reference(Practitioner) }, // Who authorizes the vision product
"encounter" : { Reference(Encounter) }, // Created during encounter / admission / stay
// reason[x]: Reason or indication for writing the prescription. One of these 2:
" },
" },
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"reasonCodeableConcept" : { CodeableConcept },
"reasonReference" : { Reference(Condition) },
"dispense" : [{ // Vision supply authorization
"product" : { Coding }, // R! Product to be supplied
"eye" : "<code>", // right | left
"sphere" : <decimal>, // Lens sphere
"cylinder" : <decimal>, // Lens cylinder
"axis" : <integer>, // Lens axis
"prism" : <decimal>, // Lens prism
"base" : "<code>", // up | down | in | out
"add" : <decimal>, // Lens add
"power" : <decimal>, // Contact lens power
"backCurve" : <decimal>, // Contact lens back curvature
"diameter" : <decimal>, // Contact lens diameter
"duration" : { Quantity(SimpleQuantity) }, // Lens wear duration
"color" : "<string>", // Color required
"brand" : "<string>", // Brand required
"notes" : "<string>" // Notes for coatings
}]
}
Alternate
definitions:
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> .[ a fhir:VisionPrescription; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Resource: .id, .meta, .implicitRules, and .language # from DomainResource: .text, .contained, .extension, and .modifierExtension fhir:VisionPrescription.identifier [ Identifier ], ... ; # 0..* Business identifier fhir:VisionPrescription.dateWritten [ dateTime ]; # 0..1 When prescription was authorized fhir:VisionPrescription.patient [ Reference(Patient) ]; # 0..1 Who prescription is for fhir:VisionPrescription.prescriber [ Reference(Practitioner) ]; # 0..1 Who authorizes the vision product fhir:VisionPrescription.encounter [ Reference(Encounter) ]; # 0..1 Created during encounter / admission / stay # VisionPrescription.reason[x] : 0..1 Reason or indication for writing the prescription. One of these 2 fhir:VisionPrescription.reasonCodeableConcept [ CodeableConcept ] fhir:VisionPrescription.reasonReference [ Reference(Condition) ] fhir:VisionPrescription.dispense [ # 0..* Vision supply authorization fhir:VisionPrescription.dispense.product [ Coding ]; # 1..1 Product to be supplied fhir:VisionPrescription.dispense.eye [ code ]; # 0..1 right | left fhir:VisionPrescription.dispense.sphere [ decimal ]; # 0..1 Lens sphere fhir:VisionPrescription.dispense.cylinder [ decimal ]; # 0..1 Lens cylinder fhir:VisionPrescription.dispense.axis [ integer ]; # 0..1 Lens axis fhir:VisionPrescription.dispense.prism [ decimal ]; # 0..1 Lens prism fhir:VisionPrescription.dispense.base [ code ]; # 0..1 up | down | in | out fhir:VisionPrescription.dispense.add [ decimal ]; # 0..1 Lens add fhir:VisionPrescription.dispense.power [ decimal ]; # 0..1 Contact lens power fhir:VisionPrescription.dispense.backCurve [ decimal ]; # 0..1 Contact lens back curvature fhir:VisionPrescription.dispense.diameter [ decimal ]; # 0..1 Contact lens diameter fhir:VisionPrescription.dispense.duration [ Quantity(SimpleQuantity) ]; # 0..1 Lens wear duration fhir:VisionPrescription.dispense.color [ string ]; # 0..1 Color required fhir:VisionPrescription.dispense.brand [ string ]; # 0..1 Brand required fhir:VisionPrescription.dispense.notes [ string ]; # 0..1 Notes for coatings ], ...; ]
Changes since DSTU2
| VisionPrescription | No Changes |
See the Full Difference for further information
Alternate definitions: Master Definition (
XML
,
JSON
),
XML
Schema
/
Schematron
,
Resource
Profile
(
XML
,
(for ) +
JSON
Schema
,
ShEx
(for
Turtle
),
Questionnaire
)
| Path | Definition | Type | Reference |
|---|---|---|---|
| VisionPrescription.dispense.product |
|
Example |
|
| VisionPrescription.dispense.eye |
|
Required | VisionEyes |
| VisionPrescription.dispense.base |
|
Required | VisionBase |
Search parameters for this resource. The
common parameters
also apply. See
Searching
for
more
information
about
searching
in
REST,
messaging,
and
services.
for more information about searching in REST, messaging, and services.
| Name | Type | Description | Paths |
| datewritten | date |
|
VisionPrescription.dateWritten |
| encounter | reference |
|
VisionPrescription.encounter
( Encounter ) |
| identifier | token |
|
VisionPrescription.identifier |
| patient | reference |
|
VisionPrescription.patient
( Patient ) |
| prescriber | reference |
|
VisionPrescription.prescriber
( Practitioner ) |