{
  "resourceType": "StructureDefinition",
  "id": "VisionPrescription",
  "meta": {
    "lastUpdated": "2021-01-01T21:58:31.578+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Clinical.Care Provision"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 2
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "patient"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "fm"
    },
    {
      "url": "http://hl7.org/fhir/build/StructureDefinition/entered-in-error-status",
      "valueCode": ".status = entered-in-error"
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/VisionPrescription",
  "version": "4.6.0",
  "name": "VisionPrescription",
  "status": "draft",
  "date": "2021-01-01T21:58:31+00:00",
  "publisher": "Health Level Seven International (Financial Management)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/fhir"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/fm/index.cfm"
        }
      ]
    }
  ],
  "description": "An authorization for the provision of glasses and/or contact lenses to a patient.",
  "fhirVersion": "4.6.0",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "VisionPrescription",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "VisionPrescription",
        "path": "VisionPrescription",
        "short": "Prescription for vision correction products for a patient",
        "definition": "An authorization for the provision of glasses and/or contact lenses to a patient.",
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "workflow",
            "map": "Request"
          },
          {
            "identity": "rim",
            "map": "CombinedVisionRequest"
          },
          {
            "identity": "w5",
            "map": "clinical.careprovision"
          }
        ]
      },
      {
        "id": "VisionPrescription.identifier",
        "path": "VisionPrescription.identifier",
        "short": "Business Identifier for vision prescription",
        "definition": "A unique identifier assigned to this vision prescription.",
        "requirements": "Allows vision prescriptions to be distinguished and referenced.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "Request.identifier"
          },
          {
            "identity": "w5",
            "map": "FiveWs.identifier"
          },
          {
            "identity": "v2",
            "map": "ORC-2-Placer Order Number / ORC-3-Filler Order Number"
          },
          {
            "identity": "rim",
            "map": "id"
          }
        ]
      },
      {
        "id": "VisionPrescription.status",
        "path": "VisionPrescription.status",
        "short": "active | cancelled | draft | entered-in-error",
        "definition": "The status of the resource instance.",
        "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
        "requirements": "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": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isModifierReason": "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",
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "VisionStatus"
            }
          ],
          "strength": "required",
          "description": "A code specifying the state of the resource instance.",
          "valueSet": "http://hl7.org/fhir/ValueSet/fm-status"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Request.status"
          },
          {
            "identity": "w5",
            "map": "FiveWs.status"
          },
          {
            "identity": "rim",
            "map": "Act.status"
          }
        ]
      },
      {
        "id": "VisionPrescription.created",
        "path": "VisionPrescription.created",
        "short": "Response creation date",
        "definition": "The date this resource was created.",
        "requirements": "Need to record a timestamp for use by both the recipient and the issuer.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true
      },
      {
        "id": "VisionPrescription.patient",
        "path": "VisionPrescription.patient",
        "short": "Who prescription is for",
        "definition": "A resource reference to the person to whom the vision prescription applies.",
        "requirements": "Needed to identify the patient for whom the vision prescription has been issued.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Request.subject"
          },
          {
            "identity": "w5",
            "map": "FiveWs.subject[x]"
          },
          {
            "identity": "v2",
            "map": "PID-3-Patient ID List"
          },
          {
            "identity": "rim",
            "map": "subject.role"
          },
          {
            "identity": "w5",
            "map": "FiveWs.subject"
          }
        ]
      },
      {
        "id": "VisionPrescription.encounter",
        "path": "VisionPrescription.encounter",
        "short": "Created during encounter / admission / stay",
        "definition": "A reference to a resource that identifies the particular occurrence of contact between patient and health care provider during which the prescription was issued.",
        "requirements": "Used in some jurisdictions to link clinical events to claim items.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Encounter"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "Request.context"
          },
          {
            "identity": "w5",
            "map": "FiveWs.context"
          },
          {
            "identity": "v2",
            "map": "PV1-19-Visit Number"
          },
          {
            "identity": "rim",
            "map": "componentOf.patientEncounter"
          }
        ]
      },
      {
        "id": "VisionPrescription.dateWritten",
        "path": "VisionPrescription.dateWritten",
        "short": "When prescription was authorized",
        "definition": "The date (and perhaps time) when the prescription was written.",
        "comment": "Jurisdictions determine the valid lifetime of a prescription. Typically vision prescriptions are valid for two years from the date written.",
        "requirements": "Need to record a timestamp for use by both the recipient and the issuer.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Request.authoredOn"
          },
          {
            "identity": "w5",
            "map": "FiveWs.recorded"
          },
          {
            "identity": "v2",
            "map": "RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction"
          },
          {
            "identity": "rim",
            "map": "author.time"
          }
        ]
      },
      {
        "id": "VisionPrescription.prescriber",
        "path": "VisionPrescription.prescriber",
        "short": "Who authorized the vision prescription",
        "definition": "The healthcare professional responsible for authorizing the prescription.",
        "requirements": "Need to record the authorizing practitioner.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Request.requester"
          },
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "v2",
            "map": "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)"
          },
          {
            "identity": "rim",
            "map": "author.role"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification",
        "extension": [
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/uml-dir",
            "valueCode": "right"
          }
        ],
        "path": "VisionPrescription.lensSpecification",
        "short": "Vision lens authorization",
        "definition": "Contain the details of  the individual lens specifications and serves as the authorization for the fullfillment by certified professionals.",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "component.supplyEvent"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.product",
        "path": "VisionPrescription.lensSpecification.product",
        "short": "Product to be supplied",
        "definition": "Identifies the type of vision correction product which is required for the patient.",
        "requirements": "Need to identify whether glasses or contacts.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "VisionProduct"
            }
          ],
          "strength": "example",
          "description": "A coded concept describing the vision products.",
          "valueSet": "http://hl7.org/fhir/ValueSet/vision-product"
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code"
          },
          {
            "identity": "rim",
            "map": "consumable.role"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.eye",
        "path": "VisionPrescription.lensSpecification.eye",
        "short": "right | left",
        "definition": "The eye for which the lens specification applies.",
        "comment": "May also appear as OD (oculus dexter) for the right eye and OS (oculus siniter) for the left eye.",
        "requirements": "Needed to identify which eye the lens specification applies to.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "VisionEyes"
            }
          ],
          "strength": "required",
          "description": "A coded concept listing the eye codes.",
          "valueSet": "http://hl7.org/fhir/ValueSet/vision-eye-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.sphere",
        "path": "VisionPrescription.lensSpecification.sphere",
        "short": "Power of the lens",
        "definition": "Lens power measured in dioptres (0.25 units).",
        "comment": "The value is negative for near-sighted and positive for far sighted.\nOften insurance will not cover a lens with power between +75 and -75.",
        "requirements": "Standard lens prescription measures.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.cylinder",
        "path": "VisionPrescription.lensSpecification.cylinder",
        "short": "Lens power for astigmatism",
        "definition": "Power adjustment for astigmatism measured in dioptres (0.25 units).",
        "requirements": "Standard lens prescription measures.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.axis",
        "path": "VisionPrescription.lensSpecification.axis",
        "short": "Lens meridian which contain no power for astigmatism",
        "definition": "Adjustment for astigmatism measured in integer degrees.",
        "comment": "The limits are +180 and -180 degrees.",
        "requirements": "Standard lens prescription measures.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.prism",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Prism"
          },
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/svg",
            "valueCode": "780,40"
          }
        ],
        "path": "VisionPrescription.lensSpecification.prism",
        "short": "Eye alignment compensation",
        "definition": "Allows for adjustment on two axis.",
        "requirements": "Standard lens prescription measures.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.prism.amount",
        "path": "VisionPrescription.lensSpecification.prism.amount",
        "short": "Amount of adjustment",
        "definition": "Amount of prism to compensate for eye alignment in fractional units.",
        "requirements": "Standard lens prescription measures.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.prism.base",
        "path": "VisionPrescription.lensSpecification.prism.base",
        "short": "up | down | in | out",
        "definition": "The relative base, or reference lens edge, for the prism.",
        "requirements": "Standard lens prescription measures.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "VisionBase"
            }
          ],
          "strength": "required",
          "description": "A coded concept listing the base codes.",
          "valueSet": "http://hl7.org/fhir/ValueSet/vision-base-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.add",
        "path": "VisionPrescription.lensSpecification.add",
        "short": "Added power for multifocal levels",
        "definition": "Power adjustment for multifocal lenses measured in dioptres (0.25 units).",
        "requirements": "Standard lens prescription measures.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.power",
        "path": "VisionPrescription.lensSpecification.power",
        "short": "Contact lens power",
        "definition": "Contact lens power measured in dioptres (0.25 units).",
        "requirements": "Standard contact lens prescription measures.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.backCurve",
        "path": "VisionPrescription.lensSpecification.backCurve",
        "short": "Contact lens back curvature",
        "definition": "Back curvature measured in millimetres.",
        "requirements": "Standard contact lens prescription measures.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.diameter",
        "path": "VisionPrescription.lensSpecification.diameter",
        "short": "Contact lens diameter",
        "definition": "Contact lens diameter measured in millimetres.",
        "requirements": "Standard contact lens prescription measures.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.duration",
        "path": "VisionPrescription.lensSpecification.duration",
        "short": "Lens wear duration",
        "definition": "The recommended maximum wear period for the lens.",
        "requirements": "Standard contact lens prescription measures.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.color",
        "path": "VisionPrescription.lensSpecification.color",
        "short": "Color required",
        "definition": "Special color or pattern.",
        "requirements": "Standard contact lens prescription measures.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.brand",
        "path": "VisionPrescription.lensSpecification.brand",
        "short": "Brand required",
        "definition": "Brand recommendations or restrictions.",
        "requirements": "Standard lens prescription measures.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "VisionPrescription.lensSpecification.note",
        "path": "VisionPrescription.lensSpecification.note",
        "short": "Notes for coatings",
        "definition": "Notes for special requirements such as coatings and lens materials.",
        "requirements": "Standard lens prescription measures.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Annotation"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      }
    ]
  }
}