<aside> 💡 Tanod COVID will submit the following data: name, mobile phone number, address, symptoms

</aside>

Resources to use:

Sample Patient

{
  "resourceType": "Patient",
  "name": [
    {
      "use": "official",
      "family": "Dela Cruz",
      "given": [
        "Juan",
        "Pedro",
				"Santos"
      ]
    }
  ],
  "telecom": [
    {
      "system": "phone",
      "value": "(03) 5555 6473"
    },
    {
      "system": "phone",
      "value": "(0939) 929 3814",
      "use": "mobile"
    }
  ],
  "gender": "male",
  "birthDate": "1974-12-25",
  "address": [
    {
      "use": "home",
      "line": [
        "139 Lily St"
      ],
      "city": "Angeles City",
      "district": "Pampanga",
      "state": "Region 3",
      "postalCode": "3999",
        "extension": [
        {
          "url": "<http://sil-asia.org/fhir/StructureDefinition/Barangay>",
          "valueString":"Anunas"
        },
        {
          "url": "<http://sil-asia.org/fhir/StructureDefinition/PSGC>",
          "valueInteger":3400002
        },
        {
          "url":"<http://hl7.org/fhir/StructureDefinition/geolocation>",
          "extension":
          [
            {
              "url": "latitude", 
              "valueDecimal" : 100.1
            },
            {
              "url": "longitude",
              "valueDecimal" : 100.1
            }

          ]
        }
      ]
    }
  ]
}

Sample POST command:

curl -v -X POST --header "Content-Type: application/fhir+json" --data @patient.json <http://172.104.170.172:8080/sila-fhirserver/fhir/Patient/>

The API endpoint will be provided by COVID-Kaya

Sample Response

{
  "resourceType": "Patient",
  "id": "20171",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2020-05-14T15:40:34.150+00:00"
  },
  "text": {
    "status": "generated",
    "div": "<div xmlns=\\"<http://www.w3.org/1999/xhtml\\>"><div class=\\"hapiHeaderText\\">Juan Pedro Santos <b>DELA CRUZ </b></div><table class=\\"hapiPropertyTable\\"><tbody><tr><td>Address</td><td><span>139 Lily St </span><br/><span>Angeles City </span><span>Region 3 </span></td></tr><tr><td>Date of birth</td><td><span>25 December 1974</span></td></tr></tbody></table></div>"
  },
  "name": [
    {
      "use": "official",
      "family": "Dela Cruz",
      "given": [
        "Juan",
        "Pedro",
        "Santos"
      ]
    }
  ],
  "telecom": [
    {
      "system": "phone",
      "value": "(03) 5555 6473"
    },
    {
      "system": "phone",
      "value": "(0939) 929 3814",
      "use": "mobile"
    }
  ],
  "gender": "male",
  "birthDate": "1974-12-25",
  "address": [
    {
      "extension": [
        {
          "url": "<http://sil-asia.org/fhir/StructureDefinition/Barangay>",
          "valueString": "Anunas"
        },
        {
          "url": "<http://sil-asia.org/fhir/StructureDefinition/PSGC>",
          "valueInteger": 3400002
        },
        {
          "url": "<http://hl7.org/fhir/StructureDefinition/geolocation>",
          "extension": [
            {
              "url": "latitude",
              "valueDecimal": 100.1
            },
            {
              "url": "longtitude",
              "valueDecimal": 100.1
            }
          ]
        }
      ],
      "use": "home",
      "line": [
        "139 Lily St"
      ],
      "city": "Angeles City",
      "district": "Pampanga",
      "state": "Region 3",
      "postalCode": "3999"
    }
  ]
}

Sample Condition

{
   "resourceType":"Bundle",
   "type":"transaction",
   "entry":[
      {
         "resource":{
            "resourceType":"Condition",
             "code": {
               "coding": [
               {
                  "system": "<http://snomed.info/sct>",
                  "code": "386661006",
                  "display": "Fever"
               }
            ]
         },
            "subject":{
               "reference":"Patient/20171"
            }
         },
         "request":{
            "method":"POST",
            "url":"Condition"
         }
      },
      {
         "resource":{
            "resourceType":"Condition",
             "code": {
               "coding": [
               {
                  "system": "<http://snomed.info/sct>",
                  "code": "82272006",
                  "display": "Cold"
               }
            ]
         },
            "subject":{
               "reference":"Patient/20171"
            }
         },
         "request":{
            "method":"POST",
            "url":"Condition"
         }
      }
   ]
}