{
  "resourceType": "Consent",
  "id": "aodr-example-willingtodonatesome",
  "meta": {
    "profile": [
      "http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/consent-aodr"
    ]
  },
  "text": {
    "status": "extensions",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\t\t\t<p>\n\t\t\t\t<b>Manually Generated Narrative</b>\n\t\t\t</p>\n\t\t\t<p><b>id</b>: aodr-example-willingtodonatesome</p>\n\t\t\t<p><b>date initial registration</b>: 2015-11-18</p>\n\t\t\t<p><b>donation decision</b>: Willing to be donor</p>\n\t\t\t<p><b>dateTime</b>: 2017-09-21</p>\n\t\t\t<p><b>Bone structure</b>: Not willing to be a donor</p>\n\t\t\t<p><b>Eye</b>: Not willing to be a donor</p>\n\t\t\t<p><b>Heart</b>: Willing to be donor</p>\n\t\t\t<p><b>Heart valve structure</b>: Willing to be donor</p>\n\t\t\t<p><b>Kidney</b>: Willing to be donor</p>\n\t\t\t<p><b>Liver</b>: Willing to be donor</p>\n\t\t\t<p><b>Lung structure</b>: Willing to be donor</p>\n\t\t\t<p><b>Pancreas</b>: Willing to be donor</p>\n\t\t\t<p><b>Skin structure</b>: Willing to be donor</p>\n\t\t</div>"
  },
  "contained": [
    {
      "resourceType": "BodySite",
      "id": "BodySite-bone",
      "code": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "272673000",
            "display": "Bone structure"
          }
        ]
      },
      "patient": {
        "identifier": {
          "type": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/v2/0203",
                "code": "NI",
                "display": "National unique individual identifier"
              }
            ]
          },
          "system": "http://ns.electronichealth.net.au/id/hi/ihi/1.0",
          "value": "8003608166690503"
        }
      }
    },
    {
      "resourceType": "BodySite",
      "id": "BodySite-eye",
      "code": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "81745001",
            "display": "Eye"
          }
        ]
      },
      "patient": {
        "identifier": {
          "type": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/v2/0203",
                "code": "NI",
                "display": "National unique individual identifier"
              }
            ]
          },
          "system": "http://ns.electronichealth.net.au/id/hi/ihi/1.0",
          "value": "8003608166690503"
        }
      }
    },
    {
      "resourceType": "BodySite",
      "id": "BodySite-heart",
      "code": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "80891009",
            "display": "Heart"
          }
        ]
      },
      "patient": {
        "identifier": {
          "type": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/v2/0203",
                "code": "NI",
                "display": "National unique individual identifier"
              }
            ]
          },
          "system": "http://ns.electronichealth.net.au/id/hi/ihi/1.0",
          "value": "8003608166690503"
        }
      }
    },
    {
      "resourceType": "BodySite",
      "id": "BodySite-heart-valve",
      "code": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "17401000",
            "display": "Heart valve structure"
          }
        ]
      },
      "patient": {
        "identifier": {
          "type": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/v2/0203",
                "code": "NI",
                "display": "National unique individual identifier"
              }
            ]
          },
          "system": "http://ns.electronichealth.net.au/id/hi/ihi/1.0",
          "value": "8003608166690503"
        }
      }
    },
    {
      "resourceType": "BodySite",
      "id": "BodySite-kidney",
      "code": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "64033007",
            "display": "Kidney"
          }
        ]
      },
      "patient": {
        "identifier": {
          "type": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/v2/0203",
                "code": "NI",
                "display": "National unique individual identifier"
              }
            ]
          },
          "system": "http://ns.electronichealth.net.au/id/hi/ihi/1.0",
          "value": "8003608166690503"
        }
      }
    },
    {
      "resourceType": "BodySite",
      "id": "BodySite-liver",
      "code": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "10200004",
            "display": "Liver"
          }
        ]
      },
      "patient": {
        "identifier": {
          "type": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/v2/0203",
                "code": "NI",
                "display": "National unique individual identifier"
              }
            ]
          },
          "system": "http://ns.electronichealth.net.au/id/hi/ihi/1.0",
          "value": "8003608166690503"
        }
      }
    },
    {
      "resourceType": "BodySite",
      "id": "BodySite-lungs",
      "code": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "39607008",
            "display": "Lung structure"
          }
        ]
      },
      "patient": {
        "identifier": {
          "type": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/v2/0203",
                "code": "NI",
                "display": "National unique individual identifier"
              }
            ]
          },
          "system": "http://ns.electronichealth.net.au/id/hi/ihi/1.0",
          "value": "8003608166690503"
        }
      }
    },
    {
      "resourceType": "BodySite",
      "id": "BodySite-pancreas",
      "code": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "15776009",
            "display": "Pancreas"
          }
        ]
      },
      "patient": {
        "identifier": {
          "type": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/v2/0203",
                "code": "NI",
                "display": "National unique individual identifier"
              }
            ]
          },
          "system": "http://ns.electronichealth.net.au/id/hi/ihi/1.0",
          "value": "8003608166690503"
        }
      }
    },
    {
      "resourceType": "BodySite",
      "id": "BodySite-skin",
      "code": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "39937001",
            "display": "Skin structure"
          }
        ]
      },
      "patient": {
        "identifier": {
          "type": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/v2/0203",
                "code": "NI",
                "display": "National unique individual identifier"
              }
            ]
          },
          "system": "http://ns.electronichealth.net.au/id/hi/ihi/1.0",
          "value": "8003608166690503"
        }
      }
    }
  ],
  "extension": [
    {
      "url": "http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/extension-dateinitialregistration",
      "valueDateTime": "2015-11-18"
    },
    {
      "url": "http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/extension-donationdecision",
      "valueCodeableConcept": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "160654005",
            "display": "Willing to be donor"
          }
        ]
      }
    }
  ],
  "identifier": {
    "system": "urn:ietf:rfc:3986",
    "value": "urn:oid:2.25.320090414317418051877665573694312012199"
  },
  "status": "active",
  "category": [
    {
      "coding": [
        {
          "system": "http://loinc.org",
          "code": "64300-7",
          "display": "Organ donation consent"
        }
      ]
    }
  ],
  "patient": {
    "identifier": {
      "type": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/v2/0203",
            "code": "NI",
            "display": "National unique individual identifier"
          }
        ]
      },
      "system": "http://ns.electronichealth.net.au/id/hi/ihi/1.0",
      "value": "8003608166690503"
    }
  },
  "dateTime": "2017-09-21",
  "policy": [
    {
      "authority": "http://australianorgandonorregister.gov.au",
      "uri": "http://www.australianorgandonorregister.gov.au/aodr"
    }
  ],
  "except": [
    {
      "type": "deny",
      "action": [
        {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "53958007",
              "display": "Harvesting of donor material"
            }
          ]
        }
      ],
      "data": [
        {
          "meaning": "instance",
          "reference": {
            "reference": "#BodySite-bone"
          }
        }
      ]
    },
    {
      "type": "deny",
      "action": [
        {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "53958007",
              "display": "Harvesting of donor material"
            }
          ]
        }
      ],
      "data": [
        {
          "meaning": "instance",
          "reference": {
            "reference": "#BodySite-eye"
          }
        }
      ]
    },
    {
      "type": "permit",
      "action": [
        {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "53958007",
              "display": "Harvesting of donor material"
            }
          ]
        }
      ],
      "data": [
        {
          "meaning": "instance",
          "reference": {
            "reference": "#BodySite-heart"
          }
        }
      ]
    },
    {
      "type": "permit",
      "action": [
        {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "53958007",
              "display": "Harvesting of donor material"
            }
          ]
        }
      ],
      "data": [
        {
          "meaning": "instance",
          "reference": {
            "reference": "#BodySite-heart-valve"
          }
        }
      ]
    },
    {
      "type": "permit",
      "action": [
        {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "53958007",
              "display": "Harvesting of donor material"
            }
          ]
        }
      ],
      "data": [
        {
          "meaning": "instance",
          "reference": {
            "reference": "#BodySite-kidney"
          }
        }
      ]
    },
    {
      "type": "permit",
      "action": [
        {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "53958007",
              "display": "Harvesting of donor material"
            }
          ]
        }
      ],
      "data": [
        {
          "meaning": "instance",
          "reference": {
            "reference": "#BodySite-liver"
          }
        }
      ]
    },
    {
      "type": "permit",
      "action": [
        {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "53958007",
              "display": "Harvesting of donor material"
            }
          ]
        }
      ],
      "data": [
        {
          "meaning": "instance",
          "reference": {
            "reference": "#BodySite-lungs"
          }
        }
      ]
    },
    {
      "type": "permit",
      "action": [
        {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "53958007",
              "display": "Harvesting of donor material"
            }
          ]
        }
      ],
      "data": [
        {
          "meaning": "instance",
          "reference": {
            "reference": "#BodySite-pancreas"
          }
        }
      ]
    },
    {
      "type": "permit",
      "action": [
        {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "53958007",
              "display": "Harvesting of donor material"
            }
          ]
        }
      ],
      "data": [
        {
          "meaning": "instance",
          "reference": {
            "reference": "#BodySite-skin"
          }
        }
      ]
    }
  ]
}