{
  "resourceType": "Consent",
  "id": "consent-example-smartonfhir",
  "status": "active",
  "category": [
    {
      "coding": [
        {
          "system": "http://loinc.org",
          "code": "59284-0"
        }
      ]
    }
  ],
  "subject": {
    "reference": "Patient/xcda"
  },
  "date": "2016-06-23",
  "grantor": [
    {
      "reference": "RelatedPerson/peter"
    }
  ],
  "controller": [
    {
      "reference": "Organization/f001"
    }
  ],
  "regulatoryBasis": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
          "code": "INFA"
        }
      ]
    }
  ],
  "decision": "permit",
  "provision": [
    {
      "period": {
        "start": "2016-06-23T17:02:33+10:00",
        "end": "2016-06-23T17:32:33+10:00"
      },
      "provision": [
        {
          "action": [
            {
              "coding": [
                {
                  "system": "http://terminology.hl7.org/CodeSystem/consentaction",
                  "code": "access"
                }
              ]
            },
            {
              "coding": [
                {
                  "system": "http://terminology.hl7.org/CodeSystem/consentaction",
                  "code": "correct"
                }
              ]
            }
          ],
          "resourceType": [
            {
              "system": "http://hl7.org/fhir/resource-types",
              "code": "MedicationRequest"
            }
          ]
        }
      ]
    }
  ],
  "meta": {
    "tag": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
        "code": "HTEST",
        "display": "test health data"
      }
    ]
  }
}