{
  "hookInstance": "514b3e2f-2daf-4045-9c56-ad891fc6e233",
  "fhirServer": "http://localhost:8080/fhir",
  "hook": "patient-view",
  "context": {
    "userId": "Practitioner/example",
    "patientId": "Patient/example-rec-10-end-of-life-med-exclusion",
    "encounterId": "Encounter/example-rec-10-end-of-life-med-exclusion-context"
  },
  "prefetch": {
    "item1": {
        "resourceType": "Patient",
        "id": "example-rec-10-end-of-life-med-exclusion",
        "extension": [
          {
            "url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller",
            "extension": [
              {
                "url": "dateLastUpdated",
                "valueDateTime": "2023-05-01"
              },
              {
                "url": "frequency",
                "valueDuration": {
                  "value": 30.0,
                  "unit": "days",
                  "system": "http://unitsofmeasure.org",
                  "code": "d"
                }
              }
            ]
          }
        ],
        "gender": "female",
        "birthDate": "2003-05-01"
      }
    },
    "item2": {
        "resourceType": "MedicationRequest",
        "id": "example-rec-10-end-of-life-med-exclusion-context",
        "extension": [
          {
            "url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller",
            "extension": [
              {
                "url": "dateLastUpdated",
                "valueDateTime": "2023-05-01"
              },
              {
                "url": "frequency",
                "valueDuration": {
                  "value": 30.0,
                  "unit": "days",
                  "system": "http://unitsofmeasure.org",
                  "code": "d"
                }
              }
            ]
          }
        ],
        "status": "active",
        "intent": "order",
        "category": [
          {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                "code": "community"
              }
            ]
          }
        ],
        "medicationCodeableConcept": {
          "coding": [
            {
              "system": "http://www.nlm.nih.gov/research/umls/rxnorm",
              "code": "197696",
              "display": "72 HR Fentanyl 0.075 MG/HR Transdermal System"
            }
          ]
        },
        "subject": {
          "reference": "Patient/example-rec-10-end-of-life-med-exclusion"
        },
        "encounter": {
          "reference": "Encounter/example-rec-10-end-of-life-med-exclusion-context"
        },
        "authoredOn": "2023-05-01",
        "dosageInstruction": [
          {
            "timing": {
              "repeat": {
                "frequency": 1,
                "period": 12.0,
                "periodUnit": "d"
              }
            },
            "asNeededBoolean": false,
            "doseAndRate": [
              {
                "doseQuantity": {
                  "value": 1.0,
                  "unit": "patch",
                  "system": "http://unitsofmeasure.org",
                  "code": "{patch}"
                }
              }
            ]
          }
        ],
        "dispenseRequest": {
          "validityPeriod": {
            "start": "2023-05-01T00:00:00-06:00",
            "end": "2023-08-01T00:00:00-06:00"
          },
          "numberOfRepeatsAllowed": 3,
          "expectedSupplyDuration": {
            "value": 30.0,
            "unit": "days",
            "system": "http://unitsofmeasure.org",
            "code": "d"
          }
        }
    },
    "item3": null,
    "item4": null,
    "item5": {
        "resourceType": "Condition",
        "id": "EndOfLifeCondition",
        "extension": [
          {
            "url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller",
            "extension": [
              {
                "url": "dateLastUpdated",
                "valueDateTime": "2023-05-01"
              },
              {
                "url": "frequency",
                "valueDuration": {
                  "value": 30.0,
                  "unit": "days",
                  "system": "http://unitsofmeasure.org",
                  "code": "d"
                }
              }
            ]
          }
        ],
        "clinicalStatus": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
              "code": "active",
              "display": "Active Condition"
            }
          ]
        },
        "category": [
          {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                "code": "encounter-diagnosis",
                "display": "Encounter Diagnosis"
              }
            ]
          }
        ],
        "code": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "254612002",
              "display": "Carcinoma of endocrine pancreas"
            }
          ]
        },
        "subject": {
          "reference": "Patient/example-rec-10-end-of-life-med-exclusion"
        },
        "recordedDate": "2023-03-02"
      }
    },
    "item6": null
  }
}
