2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

4.30.6 Resource VisionPrescription - Examples

Example Index:

General Glasses ExampleXMLJSON
General Contacts ExampleXMLJSON

4.30.6.1 Glasses

XML

General Glasses Example (id = "33123")

Raw XML

<VisionPrescription xmlns="http://hl7.org/fhir">
  <id value="33123"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <identifier>
    <system value="http://www.happysight.com/prescription"/>
    <value value="15013"/>
  </identifier>
  <dateWritten value="2014-06-15"/>
  <patient>
    <reference value="Patient/example"/>
  </patient>
  <prescriber>
    <reference value="Practitioner/example"/>
  </prescriber>
  <dispense>
    <product>
      <system value="http://hl7.org/fhir/ex-visionprescriptionproduct"/>
      <code value="lens"/>
    </product>
    <eye value="right"/>
    <sphere value="-2.00"/>
    <prism value="0.5"/>
    <base value="down"/>
    <add value="2.00"/>
  </dispense>
  <dispense>
    <product>
      <system value="http://hl7.org/fhir/ex-visionprescriptionproduct"/>
      <code value="lens"/>
    </product>
    <eye value="left"/>
    <sphere value="-1.00"/>
    <cylinder value="-0.50"/>
    <axis value="180"/>
    <prism value="0.5"/>
    <base value="up"/>
    <add value="2.00"/>
  </dispense>
</VisionPrescription>

JSON

General Glasses Example

Raw JSON (Canonical)

{
  "resourceType": "VisionPrescription",
  "id": "33123",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "identifier": [
    {
      "system": "http://www.happysight.com/prescription",
      "value": "15013"
    }
  ],
  "dateWritten": "2014-06-15",
  "patient": {
    "reference": "Patient/example"
  },
  "prescriber": {
    "reference": "Practitioner/example"
  },
  "dispense": [
    {
      "product": {
        "system": "http://hl7.org/fhir/ex-visionprescriptionproduct",
        "code": "lens"
      },
      "eye": "right",
      "sphere": -2.00,
      "prism": 0.5,
      "base": "down",
      "add": 2.00
    },
    {
      "product": {
        "system": "http://hl7.org/fhir/ex-visionprescriptionproduct",
        "code": "lens"
      },
      "eye": "left",
      "sphere": -1.00,
      "cylinder": -0.50,
      "axis": 180,
      "prism": 0.5,
      "base": "up",
      "add": 2.00
    }
  ]
}

4.30.6.2 Contacts

XML

General Contacts Example (id = "33124")

Raw XML

<VisionPrescription xmlns="http://hl7.org/fhir">
  <id value="33124"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <identifier>
    <system value="http://www.happysight.com/prescription"/>
    <value value="15014"/>
  </identifier>
  <dateWritten value="2014-06-15"/>
  <patient>
    <reference value="Patient/example"/>
  </patient>
  <prescriber>
    <reference value="Practitioner/example"/>
  </prescriber>
  <dispense>
    <product>
      <system value="http://hl7.org/fhir/ex-visionprescriptionproduct"/>
      <code value="contact"/>
    </product>
    <eye value="right"/>
    <cylinder value="-2.25"/>
    <axis value="160"/>
    <add value="1.75"/>
    <power value="-2.75"/>
    <backCurve value="8.7"/>
    <diameter value="14.0"/>
    <duration>
      <value value="1"/>
      <units value="month"/>
      <system value="http://unitsofmeasure.org"/>
      <code value="month"/>
    </duration>
    <color value="green"/>
    <brand value="OphthaGuard"/>
  </dispense>
  <dispense>
    <product>
      <system value="http://hl7.org/fhir/ex-visionprescriptionproduct"/>
      <code value="contact"/>
    </product>
    <eye value="left"/>
    <cylinder value="-3.50"/>
    <axis value="160"/>
    <add value="1.75"/>
    <power value="-2.75"/>
    <backCurve value="8.7"/>
    <diameter value="14.0"/>
    <duration>
      <value value="1"/>
      <units value="month"/>
      <system value="http://unitsofmeasure.org"/>
      <code value="month"/>
    </duration>
    <color value="green"/>
    <brand value="OphthaGuard"/>
  </dispense>
</VisionPrescription>

JSON

General Contacts Example

Raw JSON (Canonical)

{
  "resourceType": "VisionPrescription",
  "id": "33124",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "identifier": [
    {
      "system": "http://www.happysight.com/prescription",
      "value": "15014"
    }
  ],
  "dateWritten": "2014-06-15",
  "patient": {
    "reference": "Patient/example"
  },
  "prescriber": {
    "reference": "Practitioner/example"
  },
  "dispense": [
    {
      "product": {
        "system": "http://hl7.org/fhir/ex-visionprescriptionproduct",
        "code": "contact"
      },
      "eye": "right",
      "cylinder": -2.25,
      "axis": 160,
      "add": 1.75,
      "power": -2.75,
      "backCurve": 8.7,
      "diameter": 14.0,
      "duration": {
        "value": 1,
        "units": "month",
        "system": "http://unitsofmeasure.org",
        "code": "month"
      },
      "color": "green",
      "brand": "OphthaGuard"
    },
    {
      "product": {
        "system": "http://hl7.org/fhir/ex-visionprescriptionproduct",
        "code": "contact"
      },
      "eye": "left",
      "cylinder": -3.50,
      "axis": 160,
      "add": 1.75,
      "power": -2.75,
      "backCurve": 8.7,
      "diameter": 14.0,
      "duration": {
        "value": 1,
        "units": "month",
        "system": "http://unitsofmeasure.org",
        "code": "month"
      },
      "color": "green",
      "brand": "OphthaGuard"
    }
  ]
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.