profile-visionprescription
type: StructureDefinition
node role: treeRoot
id:
  v: profile-visionprescription
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition profile-visionprescription Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> VisionPrescription VisionPrescription #xD; contained S 0..* Resource Contained, inline Resources #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url, value:value #xD; extension:Coverage-Information S 0..* (Complex) Coverage Info URL: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information #xD; extension:EncounterCategory S 0..1 (Complex) Encounter Category URL: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-request-category #xD; value[x] 0..1 CodeableConcept Value of extension Binding: ActEncounterCode (3.0.0) (required) #xD; extension:ServiceCategory S 0..1 (Complex) Service Category URL: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-request-category #xD; value[x] 0..1 CodeableConcept Value of extension Binding: X12 Service Type (required) #xD; identifier S 0..* Identifier Business Identifier for vision prescription #xD; status S 1..1 code active | cancelled | draft | entered-in-error Example General: draft #xD; created S 1..1 dateTime Response creation date #xD; patient S 1..1 Reference(CRD Patient) Who prescription is for #xD; encounter S 0..1 Reference(CRD Encounter) Created during encounter / admission / stay #xD; dateWritten S 1..1 dateTime When prescription was authorized #xD; prescriber S 1..1 Reference(CRD Practitioner S | HRex PractitionerRole Profile S) Who authorized the vision prescription #xD; lensSpecification S 1..* BackboneElement Vision lens authorization #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:BillingOptions S 0..* CodeableConcept Expected Billing Code(s) URL: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-billing-options Binding: CRD Billing Codes Value Set (extensible) #xD; product S 1..1 CodeableConcept Product…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
    l: structuredefinition-fmm
  value: Integer
    v: 1
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
    l: structuredefinition-wg
  value: Code
    v: fm
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
    l: structuredefinition-standards-status
  value: Code
    v: trial-use
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
        l: structuredefinition-conformance-derivedFrom
      value: Canonical
        v: http://hl7.org/fhir/us/davinci-crd/ImplementationGuide/davinci-crd
        l: davinci-crd
url:
  v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-visionprescription
  l: profile-visionprescription
identifier:
  system:
    v: urn:ietf:rfc:3986
    l: 3986
  value:
    v: urn:oid:2.16.840.1.113883.4.642.40.18.42.19
version:
  v: 2.2.1
name:
  v: CRDVisionPrescription
title:
  v: CRD Vision Prescription
status:
  v: active
experimental:
  v: false
date:
  v: 2026-03-27T11:32:28+11:00
publisher:
  v: HL7 International / Financial Management
contact:
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/fm
description:
  v: This profile defines an initial profile on the VisionPrescription resource to support coverage requirements discovery.
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: US
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
    l: workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
    l: fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
    l: v2
  name:
    v: HL7 v2 Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: VisionPrescription
  l: VisionPrescription
base definition:
  v: http://hl7.org/fhir/StructureDefinition/VisionPrescription
  l: VisionPrescription
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: VisionPrescription
    path:
      v: VisionPrescription
    short:
      v: Prescription for vision correction products for a patient
    definition:
      v: An authorization for the provision of glasses and/or contact lenses to a patient.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: VisionPrescription
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
      expression:
        v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:security))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice
    l: elementdefinition-bestpractice
  value: Boolean
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation
    l: elementdefinition-bestpractice-explanation
  value: Markdown
    v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.
key:
  v: dom-6
severity:
  v: warning
human:
  v: A resource should have narrative for robust management
expression:
  v: text.`div`.exists()
xpath:
  v: exists(f:text/h:div)
source:
  v: http://hl7.org/fhir/StructureDefinition/DomainResource
  l: DomainResource

v: false

v: false

identity:
  v: rim
map:
  v: Entity. Role, or Act

identity:
  v: workflow
map:
  v: Request

identity:
  v: rim
map:
  v: CombinedVisionRequest

id:
  v: VisionPrescription.id
path:
  v: VisionPrescription.id
short:
  v: Logical id of this artifact
definition:
  v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
comment:
  v: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: true

id:
  v: VisionPrescription.meta
path:
  v: VisionPrescription.meta
short:
  v: Metadata about the resource
definition:
  v: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
    l: Meta
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: VisionPrescription.implicitRules
path:
  v: VisionPrescription.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation
is summary:
  v: true

id:
  v: VisionPrescription.language
path:
  v: VisionPrescription.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      l: elementdefinition-maxValueSet
    value: Canonical
      v: http://hl7.org/fhir/ValueSet/all-languages
      l: all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  strength:
    v: preferred
  description:
    v: A human language.
  value set:
    v: http://hl7.org/fhir/ValueSet/languages|4.0.1
    l: http://hl7.org/fhir/ValueSet/languages

id:
  v: VisionPrescription.text
path:
  v: VisionPrescription.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
comment:
  v: Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
    l: Narrative
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: VisionPrescription.contained
path:
  v: VisionPrescription.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
comment:
  v: Any references found in this resource, with the exception of 'Patient' could potentially be resource-specific and thus transmitted as contained resources.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
    l: Resource
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: VisionPrescription.extension
path:
  v: VisionPrescription.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  discriminator:
    type:
      v: value
    path:
      v: value
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: VisionPrescription.extension:Coverage-Information
path:
  v: VisionPrescription.extension
slice name:
  v: Coverage-Information
short:
  v: Coverage Info
definition:
  v: Indicates coverage information.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information
    l: ext-coverage-information
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
constraint:
  key:
    v: crd-ci-q1
  severity:
    v: error
  human:
    v: Questionnaire is only allowed when doc-needed exists
  expression:
    v: extension.where(url='questionnaire').exists() implies extension.where(url = 'doc-needed').exists()
  source:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information
    l: ext-coverage-information
constraint:
  key:
    v: crd-ci-q2
  severity:
    v: error
  human:
    v: If covered is set to 'not-covered', then 'pa-needed' must not exist.
  expression:
    v: extension.where(url = 'covered' and value = 'not-covered').exists() implies extension.where(url = 'pa-needed').exists().not()
  source:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information
    l: ext-coverage-information
constraint:
  key:
    v: crd-ci-q3
  severity:
    v: error
  human:
    v: 'info-needed' SHALL exist if and only if at least one of 'covered', 'pa-needed', or 'doc-needed' is set to 'conditional'.
  expression:
    v: extension.where((url = 'covered' or url = 'pa-needed' or url = 'doc-needed') and value = 'conditional').count() >= 1 implies extension.where(url = 'info-needed').exists()
  source:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information
    l: ext-coverage-information
constraint:
  key:
    v: crd-ci-q4
  severity:
    v: error
  human:
    v: If 'pa-needed' is 'satisfied', 'noauth', or 'not-covered', then 'Doc-purpose' cannot be 'withpa'.
  expression:
    v: extension.where(url = 'pa-needed' and (value = 'satisfied' or value = 'noauth' or value = 'not-covered')) and extension.where(url = 'doc-purpose').exists() implies extension.where(url = 'doc-purpose').all(value != 'withpa')
  source:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information
    l: ext-coverage-information
constraint:
  key:
    v: crd-ci-q5
  severity:
    v: error
  human:
    v: 'satisfied-pa-id' must exist if and only if 'pa-needed' is set to 'satisfied'.
  expression:
    v: extension.where(url = 'pa-needed' and value = 'satisfied').exists() = extension.where(url = 'satisfied-pa-id').exists()
  source:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information
    l: ext-coverage-information
constraint:
  key:
    v: crd-ci-q6
  severity:
    v: error
  human:
    v: If 'info-needed' is OTH, then reason must be specified
  expression:
    v: extension.where(url = 'info-needed' and value = 'OTH').exists() implies extension.where(url = 'reason').exists()
  source:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information
    l: ext-coverage-information
constraint:
  key:
    v: crd-ci-q7
  severity:
    v: error
  human:
    v: If reason.coding is present and is not from the extensible value set, then reason.text must be present
  expression:
    v: extension.where(url = 'reason').empty() or extension.where(url = 'reason').value.text.exists() or extension.where(url = 'reason').value.memberOf('http://hl7.org/fhir/us/davinci-crd/ValueSet/coverageAssertionReasons')
  source:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information
    l: ext-coverage-information
constraint:
  key:
    v: crd-ci-q8
  severity:
    v: error
  human:
    v: If doc-purpose is present with a value other than 'conditional', then reason must be present
  expression:
    v: extension.where(url = 'doc-purpose' and value != 'conditional').exists() implies extension.where(url = 'reason').exists()
  source:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information
    l: ext-coverage-information
constraint:
  key:
    v: crd-ci-q9
  severity:
    v: error
  human:
    v: If any of 'covered', 'pa-needed', or 'doc-needed' is set to 'indeterminate', then reason must be present to explain the issue that is preventing the payer from making a coverage determination.
  expression:
    v: extension.where((url = 'covered' or url = 'pa-needed' or url = 'doc-needed') and value = 'indeterminate').count() >= 1 implies extension.where(url = 'reason').exists()
  source:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information
    l: ext-coverage-information
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: VisionPrescription.extension:EncounterCategory
path:
  v: VisionPrescription.extension
slice name:
  v: EncounterCategory
short:
  v: Encounter Category
definition:
  v: A high-level categorization of the type of request
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-request-category
    l: ext-request-category
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: VisionPrescription.extension:EncounterCategory.id
path:
  v: VisionPrescription.extension.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.extension:EncounterCategory.extension
path:
  v: VisionPrescription.extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: VisionPrescription.extension:EncounterCategory.url
path:
  v: VisionPrescription.extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: uri
      l: uri
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
fixed: Uri
  v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-request-category
  l: ext-request-category
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: VisionPrescription.extension:EncounterCategory.value[x]
path:
  v: VisionPrescription.extension.value[x]
short:
  v: Value of extension
definition:
  v: Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  strength:
    v: required
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-ActEncounterCode|3.0.0
    l: http://terminology.hl7.org/ValueSet/v3-ActEncounterCode
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: VisionPrescription.extension:ServiceCategory
path:
  v: VisionPrescription.extension
slice name:
  v: ServiceCategory
short:
  v: Service Category
definition:
  v: A high-level categorization of the type of request
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-request-category
    l: ext-request-category
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: VisionPrescription.extension:ServiceCategory.id
path:
  v: VisionPrescription.extension.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.extension:ServiceCategory.extension
path:
  v: VisionPrescription.extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: VisionPrescription.extension:ServiceCategory.url
path:
  v: VisionPrescription.extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: uri
      l: uri
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
fixed: Uri
  v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-request-category
  l: ext-request-category
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: VisionPrescription.extension:ServiceCategory.value[x]
path:
  v: VisionPrescription.extension.value[x]
short:
  v: Value of extension
definition:
  v: Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/us/davinci-crd/ValueSet/X12ServiceType
    l: X12ServiceType
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: VisionPrescription.modifierExtension
path:
  v: VisionPrescription.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: VisionPrescription.identifier
path:
  v: VisionPrescription.identifier
short:
  v: Business Identifier for vision prescription
definition:
  v: A unique identifier assigned to this vision prescription.
requirements:
  v: Allows vision prescriptions to be distinguished and referenced.
min:
  v: 0
max:
  v: *
base:
  path:
    v: VisionPrescription.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: v2
  map:
    v: ORC-2-Placer Order Number / ORC-3-Filler Order Number
mapping:
  identity:
    v: rim
  map:
    v: id

id:
  v: VisionPrescription.status
path:
  v: VisionPrescription.status
short:
  v: active | cancelled | draft | entered-in-error
definition:
  v: The status of the resource instance.
comment:
  v: This will be 'draft' when using order-select or an initial order-sign, but may be 'active' or other values for order-sign representing edits to the order or for order-dispatch.
requirements:
  v: Need to track the status of the resource as 'draft' resources may undergo further edits while 'active' resources are immutable and may only have their status changed to 'cancelled'.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: VisionPrescription.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
example:
  label:
    v: General
  value: Code
    v: draft
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: true
is modifier reason:
  v: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: VisionStatus
  strength:
    v: required
  description:
    v: A code specifying the state of the resource instance.
  value set:
    v: http://hl7.org/fhir/ValueSet/fm-status|4.0.1
    l: http://hl7.org/fhir/ValueSet/fm-status
mapping:
  identity:
    v: workflow
  map:
    v: Request.status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: rim
  map:
    v: Act.status

id:
  v: VisionPrescription.created
path:
  v: VisionPrescription.created
short:
  v: Response creation date
definition:
  v: The date this resource was created.
requirements:
  v: Need to record a timestamp for use by both the recipient and the issuer.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: VisionPrescription.created
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: VisionPrescription.patient
path:
  v: VisionPrescription.patient
short:
  v: Who prescription is for
definition:
  v: A resource reference to the person to whom the vision prescription applies.
requirements:
  v: Needed to identify the patient for whom the vision prescription has been issued.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: VisionPrescription.patient
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-patient
    l: profile-patient
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.subject
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: v2
  map:
    v: PID-3-Patient ID List
mapping:
  identity:
    v: rim
  map:
    v: subject.role
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject

id:
  v: VisionPrescription.encounter
path:
  v: VisionPrescription.encounter
short:
  v: Created during encounter / admission / stay
definition:
  v: A reference to a resource that identifies the particular occurrence of contact between patient and health care provider during which the prescription was issued.
comment:
  v: potentially relevant for CRD in some situations.
requirements:
  v: Used in some jurisdictions to link clinical events to claim items.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: VisionPrescription.encounter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-encounter
    l: profile-encounter
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Request.context
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: v2
  map:
    v: PV1-19-Visit Number
mapping:
  identity:
    v: rim
  map:
    v: componentOf.patientEncounter

id:
  v: VisionPrescription.dateWritten
path:
  v: VisionPrescription.dateWritten
short:
  v: When prescription was authorized
definition:
  v: The date (and perhaps time) when the prescription was written.
comment:
  v: Jurisdictions determine the valid lifetime of a prescription. Typically vision prescriptions are valid for two years from the date written.
requirements:
  v: Need to record a timestamp for use by both the recipient and the issuer.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: VisionPrescription.dateWritten
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.authoredOn
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded
mapping:
  identity:
    v: v2
  map:
    v: RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction
mapping:
  identity:
    v: rim
  map:
    v: author.time

id:
  v: VisionPrescription.prescriber
path:
  v: VisionPrescription.prescriber
short:
  v: Who authorized the vision prescription
definition:
  v: The healthcare professional responsible for authorizing the prescription.
requirements:
  v: Need to record the authorizing practitioner.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: VisionPrescription.prescriber
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-practitioner
    l: profile-practitioner
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
        l: elementdefinition-type-must-support
      value: Boolean
        v: true
  target profile:
    v: http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-practitionerrole
    l: hrex-practitionerrole
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support
        l: elementdefinition-type-must-support
      value: Boolean
        v: true
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Request.requester
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.author
mapping:
  identity:
    v: v2
  map:
    v: RXE-13-Ordering Provider's DEA Number / RXO-14-Ordering Provider's DEA Number / RXE-14-Pharmacist/Treatment Supplier's Verifier ID / RXO-15-Pharmacist/Treatment Supplier's Verifier ID / ORC-12-Ordering Provider / PRT-5-Participation Person: PRT-4-Participation='OP' (all but last deprecated)
mapping:
  identity:
    v: rim
  map:
    v: author.role

id:
  v: VisionPrescription.lensSpecification
path:
  v: VisionPrescription.lensSpecification
short:
  v: Vision lens authorization
definition:
  v: Contain the details of the individual lens specifications and serves as the authorization for the fullfillment by certified professionals.
min:
  v: 1
max:
  v: *
base:
  path:
    v: VisionPrescription.lensSpecification
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: component.supplyEvent

id:
  v: VisionPrescription.lensSpecification.id
path:
  v: VisionPrescription.lensSpecification.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.extension
path:
  v: VisionPrescription.lensSpecification.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: VisionPrescription.lensSpecification.extension:BillingOptions
path:
  v: VisionPrescription.lensSpecification.extension
slice name:
  v: BillingOptions
short:
  v: Expected Billing Code(s)
definition:
  v: Identifies billing codes that could potentially be used for this clinical code
comment:
  v: This will typically only be populated if the ordering and performing systems are the same
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-billing-options
    l: ext-billing-options
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: VisionPrescription.lensSpecification.modifierExtension
path:
  v: VisionPrescription.lensSpecification.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: VisionPrescription.lensSpecification.product
path:
  v: VisionPrescription.lensSpecification.product
short:
  v: Product to be supplied
definition:
  v: Identifies the type of vision correction product which is required for the patient.
requirements:
  v: Need to identify whether glasses or contacts.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: VisionPrescription.lensSpecification.product
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: VisionProduct
  strength:
    v: example
  description:
    v: A coded concept describing the vision products.
  value set:
    v: http://hl7.org/fhir/ValueSet/vision-product|4.0.1
    l: http://hl7.org/fhir/ValueSet/vision-product
mapping:
  identity:
    v: v2
  map:
    v: RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code
mapping:
  identity:
    v: rim
  map:
    v: consumable.role

id:
  v: VisionPrescription.lensSpecification.eye
path:
  v: VisionPrescription.lensSpecification.eye
short:
  v: right | left
definition:
  v: The eye for which the lens specification applies.
comment:
  v: May also appear as OD (oculus dexter) for the right eye and OS (oculus siniter) for the left eye.
requirements:
  v: Needed to identify which eye the lens specification applies to.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: VisionPrescription.lensSpecification.eye
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: VisionEyes
  strength:
    v: required
  description:
    v: A coded concept listing the eye codes.
  value set:
    v: http://hl7.org/fhir/ValueSet/vision-eye-codes|4.0.1
    l: http://hl7.org/fhir/ValueSet/vision-eye-codes
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.sphere
path:
  v: VisionPrescription.lensSpecification.sphere
short:
  v: Power of the lens
definition:
  v: Lens power measured in dioptres (0.25 units).
comment:
  v: The value is negative for near-sighted and positive for far sighted. Often insurance will not cover a lens with power between +75 and -75.
requirements:
  v: Standard lens prescription measures.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: VisionPrescription.lensSpecification.sphere
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.cylinder
path:
  v: VisionPrescription.lensSpecification.cylinder
short:
  v: Lens power for astigmatism
definition:
  v: Power adjustment for astigmatism measured in dioptres (0.25 units).
requirements:
  v: Standard lens prescription measures.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: VisionPrescription.lensSpecification.cylinder
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.axis
path:
  v: VisionPrescription.lensSpecification.axis
short:
  v: Lens meridian which contain no power for astigmatism
definition:
  v: Adjustment for astigmatism measured in integer degrees.
comment:
  v: The limits are +180 and -180 degrees.
requirements:
  v: Standard lens prescription measures.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: VisionPrescription.lensSpecification.axis
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer
    l: integer
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.prism
path:
  v: VisionPrescription.lensSpecification.prism
short:
  v: Eye alignment compensation
definition:
  v: Allows for adjustment on two axis.
requirements:
  v: Standard lens prescription measures.
min:
  v: 0
max:
  v: *
base:
  path:
    v: VisionPrescription.lensSpecification.prism
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: VisionPrescription.lensSpecification.prism.id
path:
  v: VisionPrescription.lensSpecification.prism.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.prism.extension
path:
  v: VisionPrescription.lensSpecification.prism.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.prism.modifierExtension
path:
  v: VisionPrescription.lensSpecification.prism.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: VisionPrescription.lensSpecification.prism.amount
path:
  v: VisionPrescription.lensSpecification.prism.amount
short:
  v: Amount of adjustment
definition:
  v: Amount of prism to compensate for eye alignment in fractional units.
requirements:
  v: Standard lens prescription measures.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: VisionPrescription.lensSpecification.prism.amount
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.prism.base
path:
  v: VisionPrescription.lensSpecification.prism.base
short:
  v: up | down | in | out
definition:
  v: The relative base, or reference lens edge, for the prism.
requirements:
  v: Standard lens prescription measures.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: VisionPrescription.lensSpecification.prism.base
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: VisionBase
  strength:
    v: required
  description:
    v: A coded concept listing the base codes.
  value set:
    v: http://hl7.org/fhir/ValueSet/vision-base-codes|4.0.1
    l: http://hl7.org/fhir/ValueSet/vision-base-codes
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.add
path:
  v: VisionPrescription.lensSpecification.add
short:
  v: Added power for multifocal levels
definition:
  v: Power adjustment for multifocal lenses measured in dioptres (0.25 units).
requirements:
  v: Standard lens prescription measures.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: VisionPrescription.lensSpecification.add
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.power
path:
  v: VisionPrescription.lensSpecification.power
short:
  v: Contact lens power
definition:
  v: Contact lens power measured in dioptres (0.25 units).
requirements:
  v: Standard contact lens prescription measures.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: VisionPrescription.lensSpecification.power
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.backCurve
path:
  v: VisionPrescription.lensSpecification.backCurve
short:
  v: Contact lens back curvature
definition:
  v: Back curvature measured in millimetres.
requirements:
  v: Standard contact lens prescription measures.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: VisionPrescription.lensSpecification.backCurve
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.diameter
path:
  v: VisionPrescription.lensSpecification.diameter
short:
  v: Contact lens diameter
definition:
  v: Contact lens diameter measured in millimetres.
requirements:
  v: Standard contact lens prescription measures.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: VisionPrescription.lensSpecification.diameter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.duration
path:
  v: VisionPrescription.lensSpecification.duration
short:
  v: Lens wear duration
definition:
  v: The recommended maximum wear period for the lens.
requirements:
  v: Standard contact lens prescription measures.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: VisionPrescription.lensSpecification.duration
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.color
path:
  v: VisionPrescription.lensSpecification.color
short:
  v: Color required
definition:
  v: Special color or pattern.
requirements:
  v: Standard contact lens prescription measures.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: VisionPrescription.lensSpecification.color
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.brand
path:
  v: VisionPrescription.lensSpecification.brand
short:
  v: Brand required
definition:
  v: Brand recommendations or restrictions.
requirements:
  v: Standard lens prescription measures.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: VisionPrescription.lensSpecification.brand
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: VisionPrescription.lensSpecification.note
path:
  v: VisionPrescription.lensSpecification.note
short:
  v: Notes for coatings
definition:
  v: Notes for special requirements such as coatings and lens materials.
requirements:
  v: Standard lens prescription measures.
min:
  v: 0
max:
  v: *
base:
  path:
    v: VisionPrescription.lensSpecification.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
    l: Annotation
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

element:
  id:
    v: VisionPrescription.contained
  path:
    v: VisionPrescription.contained
  comment:
    v: Any references found in this resource, with the exception of 'Patient' could potentially be resource-specific and thus transmitted as contained resources.
  must support:
    v: true
element:
  id:
    v: VisionPrescription.extension
  path:
    v: VisionPrescription.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    discriminator:
      type:
        v: value
      path:
        v: value
    rules:
      v: open
element:
  id:
    v: VisionPrescription.extension:Coverage-Information
  path:
    v: VisionPrescription.extension
  slice name:
    v: Coverage-Information
  short:
    v: Coverage Info
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-coverage-information
      l: ext-coverage-information
  must support:
    v: true
element:
  id:
    v: VisionPrescription.extension:EncounterCategory
  path:
    v: VisionPrescription.extension
  slice name:
    v: EncounterCategory
  short:
    v: Encounter Category
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-request-category
      l: ext-request-category
  must support:
    v: true
element:
  id:
    v: VisionPrescription.extension:EncounterCategory.value[x]
  path:
    v: VisionPrescription.extension.value[x]
  binding:
    strength:
      v: required
    value set:
      v: http://terminology.hl7.org/ValueSet/v3-ActEncounterCode|3.0.0
      l: http://terminology.hl7.org/ValueSet/v3-ActEncounterCode
element:
  id:
    v: VisionPrescription.extension:ServiceCategory
  path:
    v: VisionPrescription.extension
  slice name:
    v: ServiceCategory
  short:
    v: Service Category
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-request-category
      l: ext-request-category
  must support:
    v: true
element:
  id:
    v: VisionPrescription.extension:ServiceCategory.value[x]
  path:
    v: VisionPrescription.extension.value[x]
  binding:
    strength:
      v: required
    value set:
      v: http://hl7.org/fhir/us/davinci-crd/ValueSet/X12ServiceType
      l: X12ServiceType
element:
  id:
    v: VisionPrescription.identifier
  path:
    v: VisionPrescription.identifier
  must support:
    v: true
element:
  id:
    v: VisionPrescription.status
  path:
    v: VisionPrescription.status
  comment:
    v: This will be 'draft' when using order-select or an initial order-sign, but may be 'active' or other values for order-sign representing edits to the order or for order-dispatch.
  example:
    label:
      v: General
    value: Code
      v: draft
  must support:
    v: true
element:
  id:
    v: VisionPrescription.created
  path:
    v: VisionPrescription.created
  must support:
    v: true
element:
  id:
    v: VisionPrescription.patient
  path:
    v: VisionPrescription.patient
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-patient
      l: profile-patient
  must support:
    v: true
element:
  id:
    v: VisionPrescription.encounter
  path:
    v: VisionPrescription.encounter
  comment:
    v: potentially relevant for CRD in some situations.
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-encounter
      l: profile-encounter
  must support:
    v: true
element:
  id:
    v: VisionPrescription.dateWritten
  path:
    v: VisionPrescription.dateWritten
  must support:
    v: true
element:
  id:
    v: VisionPrescription.prescriber
  path:
    v: VisionPrescription.prescriber
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-practitioner
      l: profile-practitioner
      extension:
        value: Boolean
    target profile:
      v: http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-practitionerrole
      l: hrex-practitionerrole
      extension:
        value: Boolean
  must support:
    v: true

Boolean
v: true

Boolean
v: true

id:
  v: VisionPrescription.lensSpecification
path:
  v: VisionPrescription.lensSpecification
must support:
  v: true

id:
  v: VisionPrescription.lensSpecification.extension
path:
  v: VisionPrescription.lensSpecification.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open

id:
  v: VisionPrescription.lensSpecification.extension:BillingOptions
path:
  v: VisionPrescription.lensSpecification.extension
slice name:
  v: BillingOptions
short:
  v: Expected Billing Code(s)
min:
  v: 0
max:
  v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/us/davinci-crd/StructureDefinition/ext-billing-options
    l: ext-billing-options
must support:
  v: true

id:
  v: VisionPrescription.lensSpecification.product
path:
  v: VisionPrescription.lensSpecification.product
must support:
  v: true

id:
  v: VisionPrescription.lensSpecification.eye
path:
  v: VisionPrescription.lensSpecification.eye
must support:
  v: true

id:
  v: VisionPrescription.lensSpecification.sphere
path:
  v: VisionPrescription.lensSpecification.sphere
must support:
  v: true

id:
  v: VisionPrescription.lensSpecification.cylinder
path:
  v: VisionPrescription.lensSpecification.cylinder
must support:
  v: true

id:
  v: VisionPrescription.lensSpecification.axis
path:
  v: VisionPrescription.lensSpecification.axis
must support:
  v: true

id:
  v: VisionPrescription.lensSpecification.prism
path:
  v: VisionPrescription.lensSpecification.prism
must support:
  v: true

id:
  v: VisionPrescription.lensSpecification.prism.amount
path:
  v: VisionPrescription.lensSpecification.prism.amount
must support:
  v: true

id:
  v: VisionPrescription.lensSpecification.prism.base
path:
  v: VisionPrescription.lensSpecification.prism.base
must support:
  v: true

id:
  v: VisionPrescription.lensSpecification.add
path:
  v: VisionPrescription.lensSpecification.add
must support:
  v: true

id:
  v: VisionPrescription.lensSpecification.power
path:
  v: VisionPrescription.lensSpecification.power
must support:
  v: true

id:
  v: VisionPrescription.lensSpecification.backCurve
path:
  v: VisionPrescription.lensSpecification.backCurve
must support:
  v: true

id:
  v: VisionPrescription.lensSpecification.diameter
path:
  v: VisionPrescription.lensSpecification.diameter
must support:
  v: true

id:
  v: VisionPrescription.lensSpecification.duration
path:
  v: VisionPrescription.lensSpecification.duration
must support:
  v: true