<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="VisionPrescription" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2023-01-12T12:47:40.239+10:00" />
  </meta>
  <url value="http://fhir.essilorluxottica.com/fhir/StructureDefinition/VisionPrescription" />
  <version value="1.0.0" />
  <name value="VisionPrescription" />
  <title value="Luxottica Vision Prescription" />
  <status value="active" />
  <experimental value="true" />
  <date value="2023-01-12T12:47:40+10:00" />
  <publisher value="EssilorLuxottica" />
  <description value="An authorization for the provision of glasses and/or contact lenses to a patient customized for luxottica." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="VisionPrescription" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/VisionPrescription" />
  <derivation value="specialization" />
  <differential>
    <element id="VisionPrescription.expirationDate">
      <path value="VisionPrescription.expirationDate" />
      <short value="Prescription expiration date" />
      <definition value="The date the vision prescription expires." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="VisionPrescription.pupillaryDistance">
      <path value="VisionPrescription.pupillaryDistance" />
      <short value="Pupillary distance" />
      <definition value="Distance between pupils." />
      <requirements value="Standard lens prescription measures." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="VisionPrescription.lensType">
      <path value="VisionPrescription.lensType" />
      <short value="Type of lenses" />
      <definition value="Type of lenses (single vision, bifocal, progressive, …)" />
      <requirements value="Need to identify the type of lenses." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="VisionPrescription.usedFor">
      <path value="VisionPrescription.usedFor" />
      <short value="Type of prescription" />
      <definition value="Type of prescription (Daily wear, Safety, Sunglasses, Distance, Reading, …)" />
      <requirements value="Need to identify the type of prescription." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="VisionPrescription.note">
      <path value="VisionPrescription.note" />
      <short value="Notes for lenses" />
      <definition value="Special instruction for the lenses." />
      <requirements value="Notes for lenses" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Annotation" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="VisionPrescription.extension:luxottica-vision-prescription-reccomandation">
      <path value="VisionPrescription.extension" />
      <sliceName value="luxottica-vision-prescription-reccomandation" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://fhir.essilorluxottica.com/fhir/StructureDefinition/VisionPrescriptionReccomandation" />
      </type>
      <mustSupport value="false" />
      <mapping>
        <identity value="argonaut-dq-dstu2" />
        <map value="VisionPrescription.extension" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification">
      <path value="VisionPrescription.lensSpecification" />
      <short value="Vision lens authorization" />
      <definition value="Contain the details of  the individual lens specifications and serves as the authorization for the fullfillment by certified professionals." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="VisionPrescription.lensSpecification.product">
      <path value="VisionPrescription.lensSpecification.product" />
      <short value="Product to be supplied" />
      <definition value="Identifies the type of vision correction product which is required for the patient." />
      <requirements value="Need to identify whether glasses or contacts." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="VisionProduct" />
        </extension>
        <strength value="example" />
        <description value="A coded concept describing the vision products." />
        <valueSet value="http://hl7.org/fhir/ValueSet/vision-product" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="consumable.role" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.eye">
      <path value="VisionPrescription.lensSpecification.eye" />
      <short value="right | left" />
      <definition value="The eye for which the lens specification applies." />
      <comment value="May also appear as OD (oculus dexter) for the right eye and OS (oculus siniter) for the left eye." />
      <requirements value="Needed to identify which eye the lens specification applies to." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="VisionEyes" />
        </extension>
        <strength value="required" />
        <description value="A coded concept listing the eye codes." />
        <valueSet value="http://hl7.org/fhir/ValueSet/vision-eye-codes|4.3.0" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.sphere">
      <path value="VisionPrescription.lensSpecification.sphere" />
      <short value="Power of the lens" />
      <definition value="Lens power measured in dioptres (0.25 units)." />
      <comment value="The value is negative for near-sighted and positive for far sighted.&#xA;Often insurance will not cover a lens with power between +75 and -75." />
      <requirements value="Standard lens prescription measures." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.cylinder">
      <path value="VisionPrescription.lensSpecification.cylinder" />
      <short value="Lens power for astigmatism" />
      <definition value="Power adjustment for astigmatism measured in dioptres (0.25 units)." />
      <requirements value="Standard lens prescription measures." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.axis">
      <path value="VisionPrescription.lensSpecification.axis" />
      <short value="Lens meridian which contain no power for astigmatism" />
      <definition value="Adjustment for astigmatism measured in integer degrees." />
      <comment value="The limits are +180 and -180 degrees." />
      <requirements value="Standard lens prescription measures." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="integer" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.prism">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Prism" />
      </extension>
      <path value="VisionPrescription.lensSpecification.prism" />
      <short value="Eye alignment compensation" />
      <definition value="Allows for adjustment on two axis." />
      <requirements value="Standard lens prescription measures." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="VisionPrescription.lensSpecification.prism.amount">
      <path value="VisionPrescription.lensSpecification.prism.amount" />
      <short value="Amount of adjustment" />
      <definition value="Amount of prism to compensate for eye alignment in fractional units." />
      <requirements value="Standard lens prescription measures." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.prism.base">
      <path value="VisionPrescription.lensSpecification.prism.base" />
      <short value="up | down | in | out" />
      <definition value="The relative base, or reference lens edge, for the prism." />
      <requirements value="Standard lens prescription measures." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="VisionBase" />
        </extension>
        <strength value="required" />
        <description value="A coded concept listing the base codes." />
        <valueSet value="http://hl7.org/fhir/ValueSet/vision-base-codes|4.3.0" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.add">
      <path value="VisionPrescription.lensSpecification.add" />
      <short value="Added power for multifocal levels" />
      <definition value="Power adjustment for multifocal lenses measured in dioptres (0.25 units)." />
      <requirements value="Standard lens prescription measures." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.power">
      <path value="VisionPrescription.lensSpecification.power" />
      <short value="Contact lens power" />
      <definition value="Contact lens power measured in dioptres (0.25 units)." />
      <requirements value="Standard contact lens prescription measures." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.backCurve">
      <path value="VisionPrescription.lensSpecification.backCurve" />
      <short value="Contact lens back curvature" />
      <definition value="Back curvature measured in millimetres." />
      <requirements value="Standard contact lens prescription measures." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.diameter">
      <path value="VisionPrescription.lensSpecification.diameter" />
      <short value="Contact lens diameter" />
      <definition value="Contact lens diameter measured in millimetres." />
      <requirements value="Standard contact lens prescription measures." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.duration">
      <path value="VisionPrescription.lensSpecification.duration" />
      <short value="Lens wear duration" />
      <definition value="The recommended maximum wear period for the lens." />
      <requirements value="Standard contact lens prescription measures." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.color">
      <path value="VisionPrescription.lensSpecification.color" />
      <short value="Color required" />
      <definition value="Special color or pattern." />
      <requirements value="Standard contact lens prescription measures." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.brand">
      <path value="VisionPrescription.lensSpecification.brand" />
      <short value="Brand required" />
      <definition value="Brand recommendations or restrictions." />
      <requirements value="Standard lens prescription measures." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.specialty">
      <path value="VisionPrescription.lensSpecification.specialty" />
      <short value="Contact lens type" />
      <definition value="Contact lens specialty type (Soft, Rigid, Hybrid, …)." />
      <requirements value="Standard contact lens type." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.balance">
      <path value="VisionPrescription.lensSpecification.balance" />
      <short value="Balance for the eye chosen" />
      <definition value="Balance for the eye chosen." />
      <requirements value="Balance for the eye chosen." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.lensCleaner">
      <path value="VisionPrescription.lensSpecification.lensCleaner" />
      <short value="Lens cleaner" />
      <definition value="Product used for cleaning contact lenses." />
      <requirements value="Specification of the product used for cleaning contact lenses." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.disinfectionSolution">
      <path value="VisionPrescription.lensSpecification.disinfectionSolution" />
      <short value="Disinfection solution" />
      <definition value="Product used for disinfection solution of contact lenses." />
      <requirements value="Specification of the product used for disinfection solution of contact lenses." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="VisionPrescription.lensSpecification.note">
      <path value="VisionPrescription.lensSpecification.note" />
      <short value="Notes for coatings" />
      <definition value="Notes for special requirements such as coatings and lens materials." />
      <requirements value="Standard lens prescription measures." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Annotation" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>