{
  "resourceType": "Consent",
  "id": "consent-example-CDA",
  "identifier": [
    {
      "system": "urn:oid:2.16.840.1.113883.3.72.5.9.1",
      "value": "494e0c7a-a69e-4fb4-9d02-6aae747790d7"
    }
  ],
  "status": "active",
  "category": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/consentcategorycodes",
          "code": "npp"
        }
      ]
    }
  ],
  "subject": {
    "reference": "Patient/pat2"
  },
  "date": "2018-12-28",
  "grantee": [
    {
      "reference": "Patient/pat2"
    }
  ],
  "controller": [
    {
      "reference": "Organization/f001"
    }
  ],
  "sourceReference": [
    {
      "reference": "Contract/pcd-example-notAuthor"
    }
  ],
  "regulatoryBasis": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
          "code": "INFA"
        }
      ]
    }
  ],
  "decision": "permit",
  "provision": [
    {
      "period": {
        "start": "2018-10-10",
        "end": "2019-10-10"
      },
      "actor": [
        {
          "role": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                "code": "PRCP"
              }
            ]
          },
          "reference": {
            "reference": "Practitioner/f001"
          }
        }
      ],
      "provision": [
        {
          "actor": [
            {
              "role": {
                "coding": [
                  {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                    "code": "AUT"
                  }
                ]
              },
              "reference": {
                "reference": "Practitioner/xcda-author"
              }
            }
          ],
          "documentType": [
            {
              "system": "urn:ietf:bcp:13",
              "code": "application/hl7-cda+xml"
            }
          ],
          "code": [
            {
              "coding": [
                {
                  "system": "http://loinc.org",
                  "code": "34133-9"
                }
              ]
            },
            {
              "coding": [
                {
                  "system": "http://loinc.org",
                  "code": "18842-5"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "meta": {
    "tag": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
        "code": "HTEST",
        "display": "test health data"
      }
    ]
  }
}