{
  "resourceType" : "Consent",
  "id" : "consent-example",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Consent consent-example</b></p><a name=\"consent-example\"> </a><a name=\"hcconsent-example\"> </a><h2>Participants</h2><table class=\"grid\"><tr><td><b>Role</b></td><td><b>Details</b></td></tr></table><p>The subject has NOT given their consent.</p></div>"
  },
  "contained" : [{
    "resourceType" : "Condition",
    "id" : "condition-example",
    "clinicalStatus" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
        "code" : "active",
        "display" : "Active"
      }]
    },
    "code" : {
      "coding" : [{
        "system" : "http://snomed.info/sct",
        "code" : "431855005",
        "display" : "Chronic kidney disease stage 1"
      }]
    },
    "subject" : {
      "display" : "Nice Patient"
    },
    "onsetAge" : {
      "extension" : [{
        "url" : "http://hl7.eu/fhir/extensions/StructureDefinition/periods-of-life",
        "valueCodeableConcept" : {
          "coding" : [{
            "system" : "http://snomed.info/sct",
            "code" : "41847000",
            "display" : "Adulthood"
          }]
        }
      }],
      "value" : 40,
      "system" : "http://unitsofmeasure.org",
      "code" : "a"
    }
  }],
  "extension" : [{
    "url" : "http://hl7.eu/fhir/StructureDefinition/consent-relatedCondition",
    "valueReference" : {
      "reference" : "#condition-example"
    }
  }],
  "status" : "active",
  "category" : [{
    "coding" : [{
      "system" : "http://loinc.org",
      "code" : "59284-0",
      "display" : "Consent Document"
    }]
  }]
}