Difference between revisions of "Example JSON Post PDF"

From Hiasobi - FHIR
Jump to: navigation, search
Line 1: Line 1:
 +
<pre>
 
{
 
{
 
   "resourceType": "Bundle",
 
   "resourceType": "Bundle",
Line 103: Line 104:
 
   ]
 
   ]
 
}
 
}
 +
</pre>

Revision as of 16:20, 18 April 2016

{
   "resourceType": "Bundle",
   "id": "5ae6db5e-1013-4a26-b3f9-79b624c9d1e2",
   "type": "transaction",
   "entry": [
      {
         "fullUrl": "urn:uuid:0eb3c16d-9f30-4164-b29f-e4ccd58522f1",
         "resource": {
            "resourceType": "Communication",
            "id": "0eb3c16d-9f30-4164-b29f-e4ccd58522f1",
            "category": {
               "text": "RTWSA Certificate"
            },
            "sender": {
               "reference": "urn:uuid:41f08da6-799e-43d0-8025-870b7ed7b995"
            },
            "recipient": [
               {
                  "reference": "urn:uuid:857611e1-d68a-4b1e-b6f4-0e5ccf06b7cd"
               }
            ],
            "payload": [
               {
                  "contentAttachment": {
                     "contentType": "application/pdf",
                     "url": "urn:uuid:7e21ab8f-c98c-4e65-8780-116a63faefb3"
                  }
               }
            ],
            "sent":"2016-04-02T02:10:52+11:00",
            "subject": {
               "reference": "urn:uuid:3617c3f2-0a8a-45fb-a29e-a533fa811545"
            }
         }
      },
      {
         "fullUrl": "urn:uuid:3617c3f2-0a8a-45fb-a29e-a533fa811545",
         "resource": {
            "resourceType": "Patient",
            "id": "3617c3f2-0a8a-45fb-a29e-a533fa811545",
            "identifier": [
               {
                  "system": "http://ns.electronichealth.net.au/id/hi/mc",
                  "value": "32788511952"
               },
               {
                  "system": "http://ns.electronichealth.net.au/id/hi/ihi/1.0",
                  "value": "8003608166690503"
               }
            ],
            "name": [
               {
                  "family": [
                     "JONES"
                  ],
                  "given": [
                     "LEO"
                  ]
               }
            ],
            "gender": "male",
            "birthDate": "1980-04-01"
         }
      },
      {
         "fullUrl": "urn:uuid:41f08da6-799e-43d0-8025-870b7ed7b995",
         "resource": {
            "resourceType": "Practitioner",
            "id": "41f08da6-799e-43d0-8025-870b7ed7b995",
            "identifier": [
               {
                  "system": "http://ns.electronichealth.net.au/id/hi/prn",
                  "value": "2426621B"
               }
            ],
            "name": {
               "family": [
                  "SMITH"
               ],
               "given": [
                  "MARY"
               ]
            }
         }
      },
      {
         "fullUrl": "urn:uuid:857611e1-d68a-4b1e-b6f4-0e5ccf06b7cd",
         "resource": {
            "resourceType": "Organization",
            "id": "857611e1-d68a-4b1e-b6f4-0e5ccf06b7cd",
            "name": "Return to Work South Australia"
         }
      },
      {
         "fullUrl": "urn:uuid:7e21ab8f-c98c-4e65-8780-116a63faefb3",
         "resource": {
            "resourceType": "Binary",
            "id": "7e21ab8f-c98c-4e65-8780-116a63faefb3",
            "contentType": "application/pdf",
            "content": "JVBERi0.......2IJSVFT0Y="
         }
      }
   ]
}