{
  "resourceType" : "CommunicationRequest",
  "meta" : {
    "profile" : ["https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/CMSCommunicationRequest"],
    "tag" : [{
      "system" : "https://hub.services.digital.health.nz/ns/correlation-id",
      "code" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }]
  },
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CommunicationRequest OutpatientCommunicationRequestEmailExample</b></p><a name=\"OutpatientCommunicationRequestEmailExample\"> </a><a name=\"hcOutpatientCommunicationRequestEmailExample\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-CMSCommunicationRequest.html\">CMS Communication Request</a></p><p style=\"margin-bottom: 0px\">Tag: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (Details: correlation-id code xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)</p></div><blockquote><p><b>Send to and from communication to contact points</b></p><ul><li>toContactPoint: <a href=\"mailto:totest@gmail.com\">totest@gmail.com</a></li><li>fromContactPoint: <a href=\"mailto:fromtest@gmail.com\">fromtest@gmail.com</a></li></ul></blockquote><p><b>basedOn</b>: <a href=\"CarePlan-OutpatientCommunicationCarePlanExample.html\">CarePlan: status = active; intent = plan; category = Cardiology</a></p><p><b>status</b>: Unknown</p><p><b>medium</b>: <span title=\"Codes:{https://fhir-ig.digital.health.nz/shared-care/CodeSystem/hnz-participation-mode-codes EMAILWRIT}\">email</span></p><blockquote><p><b>payload</b></p><p><b>CMS Payload Type Extension</b>: body</p><p><b>content</b>: text/plain: IyBQYXRpZW50IEVuY291bnRlciBOb3RlcwoKIyMgMjAyMy0wOC0wMgoKLSBEaXNjdXNzZWQgY29uZGl0aW9uCi0gT3RhaW5lZCBjb25zZW50IAotIGV0Yy4=</p></blockquote><blockquote><p><b>payload</b></p><p><b>CMS Payload Type Extension</b>: attachment</p><p><b>content</b>: application/pdf: IyBQYXRpZW50IEVuY291bnRlciBOb3RlcwoKIyMgMjAyMy0wOC0wMgoKLSBEaXNjdXNzZWQgY29uZGl0aW9uCi0gT3RhaW5lZCBjb25zZW50IAotIGV0Yy4=</p></blockquote><blockquote><p><b>payload</b></p><p><b>CMS Payload Type Extension</b>: attachment</p><p><b>content</b>: application/pdf: IyBQYXRpZW50IEVuY291bnRlciBOb3RlcwoKIyMgMjAyMy0wOC0wMgoKLSBEaXNjdXNzZWQgY29uZGl0aW9uCi0gT3RhaW5lZCBjb25zZW50IAotIGV0Yy4=</p></blockquote><p><b>occurrence</b>: 2024-08-20 14:30:00+0000</p><p><b>authoredOn</b>: 2024-08-20 14:30:00+0000</p><p><b>sender</b>: BSA (Identifier: <code>https://hub.services.digital.health.nz/ns/hip-application-id</code>/56789\u00a0(use:\u00a0official,\u00a0))</p></div>"
  },
  "extension" : [{
    "extension" : [{
      "url" : "toContactPoint",
      "valueContactPoint" : {
        "system" : "email",
        "value" : "totest@gmail.com"
      }
    },
    {
      "url" : "fromContactPoint",
      "valueContactPoint" : {
        "system" : "email",
        "value" : "fromtest@gmail.com"
      }
    }],
    "url" : "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-contact-point-extension"
  }],
  "basedOn" : [{
    "reference" : "CarePlan/OutpatientCommunicationCarePlanExample"
  }],
  "status" : "unknown",
  "medium" : [{
    "coding" : [{
      "system" : "https://fhir-ig.digital.health.nz/shared-care/CodeSystem/hnz-participation-mode-codes",
      "code" : "EMAILWRIT"
    }]
  }],
  "payload" : [{
    "extension" : [{
      "url" : "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/cms-payload-type-extension",
      "valueCode" : "body"
    }],
    "contentAttachment" : {
      "contentType" : "text/plain",
      "language" : "en-nz",
      "data" : "IyBQYXRpZW50IEVuY291bnRlciBOb3RlcwoKIyMgMjAyMy0wOC0wMgoKLSBEaXNjdXNzZWQgY29uZGl0aW9uCi0gT3RhaW5lZCBjb25zZW50IAotIGV0Yy4=",
      "title" : "Appointment Reminder",
      "creation" : "2023-08-01T09:35:00+00:00"
    }
  },
  {
    "extension" : [{
      "url" : "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/cms-payload-type-extension",
      "valueCode" : "attachment"
    }],
    "contentAttachment" : {
      "contentType" : "application/pdf",
      "data" : "IyBQYXRpZW50IEVuY291bnRlciBOb3RlcwoKIyMgMjAyMy0wOC0wMgoKLSBEaXNjdXNzZWQgY29uZGl0aW9uCi0gT3RhaW5lZCBjb25zZW50IAotIGV0Yy4=",
      "title" : "File1.pdf",
      "creation" : "2023-08-01T09:35:00+00:00"
    }
  },
  {
    "extension" : [{
      "url" : "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/cms-payload-type-extension",
      "valueCode" : "attachment"
    }],
    "contentAttachment" : {
      "extension" : [{
        "extension" : [{
          "url" : "attachmentDisposition",
          "valueString" : "attachment"
        },
        {
          "url" : "attachmentContentId",
          "valueString" : "logo"
        }],
        "url" : "https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/hnz-attachment-extension"
      }],
      "contentType" : "application/pdf",
      "data" : "IyBQYXRpZW50IEVuY291bnRlciBOb3RlcwoKIyMgMjAyMy0wOC0wMgoKLSBEaXNjdXNzZWQgY29uZGl0aW9uCi0gT3RhaW5lZCBjb25zZW50IAotIGV0Yy4=",
      "title" : "File2.pdf",
      "creation" : "2023-08-01T09:35:00+00:00"
    }
  }],
  "occurrenceDateTime" : "2024-08-20T14:30:00Z",
  "authoredOn" : "2024-08-20T14:30:00Z",
  "sender" : {
    "type" : "Device",
    "identifier" : {
      "use" : "official",
      "system" : "https://hub.services.digital.health.nz/ns/hip-application-id",
      "value" : "56789"
    },
    "display" : "BSA"
  }
}