This page is part of a downloaded copy of this specification. This page is part of the Da Vinci Coverage Requirements Discovery (CRD) FHIR IG (v0.1.0: STU 1 Ballot 1) based on FHIR v3.5.0. . For a full list of available versions, see the Directory of published versions

This is a pre-release version (Ballot 1) of Coverage Requirements Discovery (CRD) R1/STU. There is no current official version.
For a full list of available versions, see the Directory of published versions .

## StructureDefinition: CRD VisionPrescription

The official URL for this profile is:

    http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-visionprescription-stu3

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Text Summary
- Differential Table
- Snapshot Table
- All

This structure is derived from VisionPrescription

Summary

Mandatory: 4 elements
Must-Support: 8 elements
Fixed Value: 1 element

Structures

This structure refers to these other structures:

- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-patient-stu3
- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-encounter-stu3
- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-practitioner-stu3
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition

Extensions

This structure refers to these extensions:

- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/ext-insurance

This structure is derived from VisionPrescription

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
VisionPrescription |  | 0..* |  |
ext-insurance | S | 0..* | Reference(CRD Coverage) | Insurance URL: http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/ext-insurance
identifier | S | 0..* | Identifier |
status | S | 1..1 | code | Fixed Value: draft
patient | S | 1..1 | Reference(CRD Patient) |
encounter |  | 0..1 | Reference(CRD Encounter) |
dateWritten | S | 1..1 | dateTime |
prescriber | S | 1..1 | Reference(CRD Practitioner) |
reason[x] | S | 0..1 | CodeableConcept, Reference(US Core Condition Profile) |
dispense | S | 0..* | BackboneElement |
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
VisionPrescription | I | 0..* |  | Prescription for vision correction products for a patient
id | Î£ | 0..1 | id | Logical id of this artifact
meta | Î£ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Î£ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: Common Languages (extensible)
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
ext-insurance | S I | 0..* | Reference(CRD Coverage) | Extension URL: http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/ext-insurance
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S | 0..* | Identifier | Business identifier
status | ?!S Î£ | 1..1 | code | active | cancelled | draft | entered-in-error Binding: Financial Resource Status Codes (required) Fixed Value: draft
patient | S | 1..1 | Reference(CRD Patient) | Who prescription is for
encounter |  | 0..1 | Reference(CRD Encounter) | Created during encounter / admission / stay
dateWritten | S | 1..1 | dateTime | When prescription was authorized
prescriber | S | 1..1 | Reference(CRD Practitioner) | Who authorizes the vision product
reason[x] | S | 0..1 | CodeableConcept, Reference(US Core Condition Profile) | Reason or indication for writing the prescription
dispense | S I | 0..* | BackboneElement | Vision supply authorization
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations
modifierExtension | ?!Î£ | 0..* | Extension | Extensions that cannot be ignored
product |  | 0..1 | CodeableConcept | Product to be supplied Binding: Example Vision Prescription Product Codes (example)
eye |  | 0..1 | code | right | left Binding: VisionEyes (required)
sphere |  | 0..1 | decimal | Lens sphere
cylinder |  | 0..1 | decimal | Lens cylinder
axis |  | 0..1 | integer | Lens axis
prism |  | 0..1 | decimal | Lens prism
base |  | 0..1 | code | up | down | in | out Binding: VisionBase (required)
add |  | 0..1 | decimal | Lens add
power |  | 0..1 | decimal | Contact lens power
backCurve |  | 0..1 | decimal | Contact lens back curvature
diameter |  | 0..1 | decimal | Contact lens diameter
duration |  | 0..1 | SimpleQuantity | Lens wear duration
color |  | 0..1 | string | Color required
brand |  | 0..1 | string | Brand required
note |  | 0..* | Annotation | Notes for coatings
Documentation for this format

This structure is derived from VisionPrescription

Summary

Mandatory: 4 elements
Must-Support: 8 elements
Fixed Value: 1 element

Structures

This structure refers to these other structures:

- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-patient-stu3
- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-encounter-stu3
- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/profile-practitioner-stu3
- http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition

Extensions

This structure refers to these extensions:

- http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/ext-insurance

Differential View

This structure is derived from VisionPrescription

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
VisionPrescription |  | 0..* |  |
ext-insurance | S | 0..* | Reference(CRD Coverage) | Insurance URL: http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/ext-insurance
identifier | S | 0..* | Identifier |
status | S | 1..1 | code | Fixed Value: draft
patient | S | 1..1 | Reference(CRD Patient) |
encounter |  | 0..1 | Reference(CRD Encounter) |
dateWritten | S | 1..1 | dateTime |
prescriber | S | 1..1 | Reference(CRD Practitioner) |
reason[x] | S | 0..1 | CodeableConcept, Reference(US Core Condition Profile) |
dispense | S | 0..* | BackboneElement |
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
VisionPrescription | I | 0..* |  | Prescription for vision correction products for a patient
id | Î£ | 0..1 | id | Logical id of this artifact
meta | Î£ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Î£ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: Common Languages (extensible)
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
ext-insurance | S I | 0..* | Reference(CRD Coverage) | Extension URL: http://hl7.org/fhir/us/davinci-crd/STU3/StructureDefinition/ext-insurance
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | S | 0..* | Identifier | Business identifier
status | ?!S Î£ | 1..1 | code | active | cancelled | draft | entered-in-error Binding: Financial Resource Status Codes (required) Fixed Value: draft
patient | S | 1..1 | Reference(CRD Patient) | Who prescription is for
encounter |  | 0..1 | Reference(CRD Encounter) | Created during encounter / admission / stay
dateWritten | S | 1..1 | dateTime | When prescription was authorized
prescriber | S | 1..1 | Reference(CRD Practitioner) | Who authorizes the vision product
reason[x] | S | 0..1 | CodeableConcept, Reference(US Core Condition Profile) | Reason or indication for writing the prescription
dispense | S I | 0..* | BackboneElement | Vision supply authorization
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations
modifierExtension | ?!Î£ | 0..* | Extension | Extensions that cannot be ignored
product |  | 0..1 | CodeableConcept | Product to be supplied Binding: Example Vision Prescription Product Codes (example)
eye |  | 0..1 | code | right | left Binding: VisionEyes (required)
sphere |  | 0..1 | decimal | Lens sphere
cylinder |  | 0..1 | decimal | Lens cylinder
axis |  | 0..1 | integer | Lens axis
prism |  | 0..1 | decimal | Lens prism
base |  | 0..1 | code | up | down | in | out Binding: VisionBase (required)
add |  | 0..1 | decimal | Lens add
power |  | 0..1 | decimal | Contact lens power
backCurve |  | 0..1 | decimal | Contact lens back curvature
diameter |  | 0..1 | decimal | Contact lens diameter
duration |  | 0..1 | SimpleQuantity | Lens wear duration
color |  | 0..1 | string | Color required
brand |  | 0..1 | string | Brand required
note |  | 0..* | Annotation | Notes for coatings
Documentation for this format

Other representations of profile: Schematron

### Terminology Bindings

Path | Name | Conformance | ValueSet
VisionPrescription.language | Common Languages | extensible | Common Languages
VisionPrescription.status | Financial Resource Status Codes | required | Financial Resource Status Codes
VisionPrescription.dispense.product | Example Vision Prescription Product Codes | example | Example Vision Prescription Product Codes
VisionPrescription.dispense.eye | VisionEyes | required | VisionEyes
VisionPrescription.dispense.base | VisionBase | required | VisionBase

### Constraints

Id | Path | Details | Requirements
dom-2 | VisionPrescription | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-1 | VisionPrescription | If the resource is contained in another resource, it SHALL NOT contain any narrative : contained.text.empty() |
dom-4 | VisionPrescription | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-3 | VisionPrescription | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource : contained.where(('#'+id in %resource.descendants().reference).not()).empty() |
ele-1 | VisionPrescription.extension | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) |
ext-1 | VisionPrescription.extension | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
ele-1 | VisionPrescription.extension | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) |
ext-1 | VisionPrescription.extension | Must have either extensions or value[x], not both : extension.exists() != value.exists() |
ele-1 | VisionPrescription.dispense | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) |