{
  "resourceType": "Bundle",
  "id": "ncdhc-bundle-document-create-authrep",
  "meta": {
    "lastUpdated": "2019-11-05T00:00:00Z"
  },
  "identifier": {
    "system": "urn:ietf:rfc:3986",
    "value": "urn:uuid:e921a97f-eb7f-4af9-b4bb-7f67ea693544"
  },
  "type": "document",
  "entry": [
    {
      "fullUrl": "urn:uuid:37700024-070c-4141-8109-9d9fa34dd24b",
      "resource": {
        "resourceType": "Composition",
        "id": "d2b4d038-bc5c-4b83-bca1-4cf82fec8d62",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-11-05T00:00:00Z",
          "profile": [
            "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-composition-rep-registration"
          ]
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: d2b4d038-bc5c-4b83-bca1-4cf82fec8d62</p><p><b>meta</b>: </p><p><b>status</b>: final</p><p><b>type</b>: Register Representative </p><p><b>title</b>: Register Representative</p><p><b>confidentiality</b>: N</p></div>"
        },
        "status": "final",
        "type": {
          "coding": [
            {
              "system": "http://hl7.org.au/fhir/ch/v1/CodeSystem/ncdhc-hi-type-1",
              "code": "REGREP",
              "display": "Register Representative"
            }
          ],
          "text": "Register Representative"
        },
        "date": "2020-01-28T11:20:15Z",
        "author": [
          {
            "reference": "urn:uuid:3db74777-fd3d-4d3b-92ec-d405977a11a5",
            "display": "GOM Flow"
          }
        ],
        "title": "Register Representative",
        "confidentiality": "N",
        "attester": [
          {
            "mode": [
              "professional"
            ],
            "time": "2020-01-28T11:20:15Z",
            "party": {
              "reference": "urn:uuid:od78393f-37ca-4738-81d6-d9595b2e5d0f",
              "display": "NSW Health"
            }
          }
        ],
        "section": [
          {
            "title": "Representative Details",
            "code": {
              "coding": [
                {
                  "system": "http://snomed.info/sct",
                  "code": "184140000"
                }
              ]
            },
            "entry": [
              {
                "reference": "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0a"
              }
            ]
          },
          {
            "title": "Consent Details",
            "code": {
              "coding": [
                {
                  "system": "http://snomed.info/sct",
                  "code": "721914005"
                }
              ]
            },
            "entry": [
              {
                "reference": "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0b"
              },
              {
                "reference": "urn:uuid:71ebe359-bfdc-4613-8bf2-c5e300945f0b"
              },
              {
                "reference": "urn:uuid:81ebe359-bfdc-4613-8bf2-c5e300945f0b"
              }
            ]
          }
        ],
        "identifier": {
          "system": "urn:ietf:rfc:3986",
          "value": "urn:uuid:d2b4d038-bc5c-4b83-bca1-4cf82fec8d62"
        },
        "subject": {
          "reference": "urn:uuid:eb78393f-37ca-4738-81d6-d9595b2e5d0f"
        }
      }
    },
    {
      "fullUrl": "urn:uuid:eb78393f-37ca-4738-81d6-d9595b2e5d0f",
      "resource": {
        "resourceType": "Patient",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-11-05T00:00:00Z",
          "profile": [
            "http://hl7.org.au/fhir/StructureDefinition/au-patient"
          ]
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Machine Processable Patient Instance</div>"
        },
        "identifier": [
          {
            "type": {
              "coding": [
                {
                  "system": "http://hl7.org/fhir/v2/0203",
                  "code": "MR",
                  "display": "Medical record number"
                }
              ],
              "text": "Medical Record Number"
            },
            "system": "http://ns.electronichealth.net.au/id/hpio-scoped/medicalrecord/1.0/8003620000000000/D203",
            "value": "02134000",
            "assigner": {
              "display": "Blacktown Hospital"
            }
          }
        ],
        "gender": "female",
        "birthDate": "2001-12-24",
        "name": [
          {
            "text": "Amy Watson",
            "family": "Watson",
            "given": [
              "Amy"
            ]
          }
        ]
      }
    },
    {
      "fullUrl": "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c",
      "resource": {
        "resourceType": "RelatedPerson",
        "patient": {
          "reference": "urn:uuid:eb78393f-37ca-4738-81d6-d9595b2e5d0f"
        },
        "active": true
      }
    },
    {
      "fullUrl": "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0a",
      "resource": {
        "resourceType": "Person",
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Amy Watson Registered as Authorised Representative</div>"
        },
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-11-05T00:00:00Z",
          "profile": [
            "http://hl7.org/fhir/StructureDefinition/Person"
          ]
        },
        "identifier": [
          {
            "system": "http://schemas.microsoft.com/identity/claims/objectidentifier",
            "value": "7d1ccb5d-078a-4feb-b008-1be308c15d3b"
          },
          {
            "type": {
              "coding": [
                {
                  "system": "http://hl7.org/fhir/v2/0203",
                  "code": "MR",
                  "display": "Medical record number"
                }
              ],
              "text": "Medical Record Number"
            },
            "system": "http://ns.electronichealth.net.au/id/hpio-scoped/medicalrecord/1.0/8003620000000000/D203",
            "value": "02134000",
            "assigner": {
              "display": "Blacktown Hospital"
            }
          }
        ],
        "name": [
          {
            "text": "Amy Watson",
            "family": "Watson",
            "given": [
              "Amy"
            ]
          }
        ],
        "telecom": [
          {
            "system": "email",
            "value": "amy.watson@myemail.com",
            "use": "home"
          },
          {
            "system": "phone",
            "value": "405228653",
            "use": "mobile"
          }
        ],
        "gender": "female",
        "address": [
          {
            "use": "home",
            "line": [
              "Zenith Towers, Chatswood"
            ],
            "city": "Sydney",
            "state": "NSW",
            "postalCode": "2112"
          }
        ],
        "active": true
      }
    },
    {
      "fullUrl": "urn:uuid:3db74777-fd3d-4d3b-92ec-d405977a11a5",
      "resource": {
        "resourceType": "Device",
        "id": "3db74777-fd3d-4d3b-92ec-d405977a11a5",
        "meta": {
          "profile": [
            "http://hl7.org.au/fhir/StructureDefinition/au-device"
          ]
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">GOM Flow</div>"
        },
        "version": "v1.0.0",
        "status": "active"
      }
    },
    {
      "fullUrl": "urn:uuid:od78393f-37ca-4738-81d6-d9595b2e5d0f",
      "resource": {
        "resourceType": "Organization",
        "id": "od78393f-37ca-4738-81d6-d9595b2e5d0f",
        "meta": {
          "profile": [
            "http://hl7.org.au/fhir/StructureDefinition/au-organisation"
          ]
        },
        "active": true,
        "name": "eHealth NSW"
      }
    },
    {
      "fullUrl": "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0b",
      "resource": {
        "resourceType": "Consent",
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">NCDHC Authorisation Consent By Auth Rep</div>"
        },
        "status": "active",
        "category": [
          {
            "coding": [
              {
                "system": "http://hl7.org.au/fhir/ch/v1/CodeSystem/ncdhc-consent-category-1",
                "code": "AUTHCONST",
                "display": "NCDHC Authorisation Consent"
              }
            ]
          }
        ],
        "patient": {
          "reference": "urn:uuid:eb78393f-37ca-4738-81d6-d9595b2e5d0f"
        },
        "dateTime": "2020-01-28T11:20:15Z",
        "consentingParty": [
          {
            "reference": "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c",
            "display": "Amy Watson"
          }
        ],
        "policyRule": "urn:uuid:44847642-b160-4e0b-9ce7-69611bf5b303",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-11-05T00:00:00Z",
          "profile": [
            "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-consent"
          ]
        },
        "actor": [
          {
            "role": {
              "coding": [
                {
                  "system": "http://hl7.org.au/fhir/ch/v1/CodeSystem/ncdhc-security-role-type-1",
                  "code": "RESPRSN",
                  "display": "Authorised Representative"
                }
              ]
            },
            "reference": {
              "reference": "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c",
              "display": "Amy Watson"
            }
          }
        ]
      }
    },
    {
      "fullUrl": "urn:uuid:71ebe359-bfdc-4613-8bf2-c5e300945f0b",
      "resource": {
        "resourceType": "Consent",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-11-05T00:00:00Z",
          "profile": [
            "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-consent"
          ]
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Child Digital Health Record Operation Consent by Authorised Representative</div>"
        },
        "status": "active",
        "category": [
          {
            "coding": [
              {
                "system": "http://hl7.org.au/fhir/ch/v1/CodeSystem/ncdhc-consent-category-1",
                "code": "CROPT",
                "display": "Child Digital Health Record Operation Consent"
              }
            ]
          }
        ],
        "patient": {
          "reference": "urn:uuid:eb78393f-37ca-4738-81d6-d9595b2e5d0f"
        },
        "dateTime": "2020-01-28T11:20:15Z",
        "consentingParty": [
          {
            "reference": "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c",
            "display": "Amy Watson"
          }
        ],
        "policyRule": "urn:uuid:44847642-b160-4e0b-9ce7-69611bf5b303"
      }
    },
    {
      "fullUrl": "urn:uuid:81ebe359-bfdc-4613-8bf2-c5e300945f0b",
      "resource": {
        "resourceType": "Consent",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-11-05T00:00:00Z",
          "profile": [
            "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-consent"
          ]
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Consent to Interact with My Health Record by Authorised Representative</div>"
        },
        "status": "active",
        "category": [
          {
            "coding": [
              {
                "system": "http://hl7.org.au/fhir/ch/v1/CodeSystem/ncdhc-consent-category-1",
                "code": "MHRINTR",
                "display": "Consent to Interact with My Health Record"
              }
            ]
          }
        ],
        "patient": {
          "reference": "urn:uuid:eb78393f-37ca-4738-81d6-d9595b2e5d0f"
        },
        "dateTime": "2020-01-28T11:20:15Z",
        "consentingParty": [
          {
            "reference": "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c",
            "display": "AmyWatson"
          }
        ],
        "policyRule": "urn:uuid:44847642-b160-4e0b-9ce7-69611bf5b303"
      }
    }
  ]
}