{
  "hookInstance": "fa44ba28-6895-4060-b7d0-9e86715e0e08",
  "fhirServer": "http://localhost:8080/fhir",
  "hook": "order-sign",
  "context": {
    "userId": "Practitioner/example",
    "patientId": "Patient/example-rec-07-seven-of-past-ten-days",
    "encounterId": "Encounter/example-rec-07-seven-of-past-ten-days-context",
    "draftOrders": {
      "resourceType": "Bundle",
      "type": "collection",
      "entry": [
        {
          "resource": {
            "resourceType": "MedicationRequest",
            "id": "example-rec-07-seven-of-past-ten-days-context",
            "extension": [
              {
                "url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller",
                "extension": [
                  {
                    "url": "dateLastUpdated",
                    "valueDateTime": "2023-05-01"
                  },
                  {
                    "url": "frequency",
                    "valueDuration": {
                      "value": 1.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": "1049502",
                  "display": "12 HR Oxycodone Hydrochloride 10 MG Extended Release Oral Tablet"
                }
              ]
            },
            "subject": {
              "reference": "Patient/example-rec-07-seven-of-past-ten-days"
            },
            "encounter": {
              "reference": "Encounter/example-rec-07-seven-of-past-ten-days-context"
            },
            "authoredOn": "2023-05-01",
            "dosageInstruction": [
              {
                "timing": {
                  "repeat": {
                    "frequency": 1,
                    "period": 1.0,
                    "periodUnit": "d"
                  }
                },
                "asNeededBoolean": false
              }
            ],
            "dispenseRequest": {
              "validityPeriod": {
                "start": "2023-05-01T00:00:00-06:00",
                "end": "2023-08-01T00:00:00-06:00"
              },
              "numberOfRepeatsAllowed": 1,
              "expectedSupplyDuration": {
                "value": 30.0,
                "unit": "days",
                "system": "http://unitsofmeasure.org",
                "code": "d"
              }
            }
          }
        }
      ]
    }
  },
  "prefetch": {
    "item1": {
        "resourceType": "MedicationRequest",
        "id": "example-rec-07-seven-of-past-ten-days-prefetch",
        "extension": [
          {
            "url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller",
            "extension": [
              {
                "url": "dateLastUpdated",
                "valueDateTime": "2023-05-01"
              },
              {
                "url": "frequency",
                "valueDuration": {
                  "value": 1.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": "1049502",
              "display": "12 HR Oxycodone Hydrochloride 10 MG Extended Release Oral Tablet"
            }
          ]
        },
        "subject": {
          "reference": "Patient/example-rec-07-seven-of-past-ten-days"
        },
        "authoredOn": "2023-04-23",
        "dosageInstruction": [
          {
            "timing": {
              "repeat": {
                "frequency": 1,
                "period": 1.0,
                "periodUnit": "d"
              }
            },
            "asNeededBoolean": false
          }
        ],
        "dispenseRequest": {
          "validityPeriod": {
            "start": "2023-04-23T00:00:00-06:00",
            "end": "2023-05-01T00:00:00-06:00"
          },
          "numberOfRepeatsAllowed": 1,
          "expectedSupplyDuration": {
            "value": 7.0,
            "unit": "days",
            "system": "http://unitsofmeasure.org",
            "code": "d"
          }
        }
    },
    "item2": {
        "resourceType": "Encounter",
        "id": "example-rec-07-seven-of-past-ten-days-prefetch",
        "extension": [
          {
            "url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller",
            "extension": [
              {
                "url": "dateLastUpdated",
                "valueDateTime": "2023-05-01"
              },
              {
                "url": "frequency",
                "valueDuration": {
                  "value": 1.0,
                  "unit": "days",
                  "system": "http://unitsofmeasure.org",
                  "code": "d"
                }
              }
            ]
          }
        ],
        "status": "finished",
        "type": [
          {
            "coding": [
              {
                "system": "http://snomed.info/sct",
                "code": "185463005",
                "display": "Visit out of hours (procedure)"
              }
            ]
          }
        ],
        "subject": {
          "reference": "Patient/example-rec-07-seven-of-past-ten-days"
        },
        "period": {
          "start": "2023-04-21",
          "end": "2023-04-21"
        }
    },
    "item3": {
        "resourceType": "Patient",
        "id": "example-rec-07-seven-of-past-ten-days",
        "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": "male",
        "birthDate": "2003-05-01"
      }
    },
    "item4": null,
    "item5": null,
    "item6": null,
    "item7": null,
    "item8": null,
    "item9": null,
    "item10": null,
    "item11": null,
    "item12": null,
    "item13": null,
    "item14": null
  }
}
