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

</aside>

Resources to use:

Address

Primary data collected - phone number, PSGC, (barangay level), (no symptoms ang default)

Sample Patient

{
  "resourceType": "Patient",
	"meta":{
    "profile": [
        "<http://sil-asia.org/fhir/StructureDefinition/TanodCOVID.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
            }

          ]
        }
      ]
    }
  ],
  "link":
  [
    {
      "other":
        {
          "reference" : "Patient/20170",
          "display" : "father" 
        }
      ,
      "type":"refer"
    }
  ],
  "extension":
  [
    {
      "url":"<http://hl7.org/fhir/StructureDefinition/patient-nationality>",
      "extension":
      [
        {
          "url": "code", 
          "valueCodeableConcept" : {
            "coding": [
              {
                "system": "urn:iso:std:iso:3166",
                "code": "PHL",
                "display": "Philippines"
              }
            ]
          }
        }
      ]
    },
    {
      "url":"<http://hl7.org/fhir/StructureDefinition/patient-religion>",
      
      "valueCodeableConcept" : {
        "text": "Roman Catholic",
        "coding": 
        [
          {
            "system":"<http://hl7.org/fhir/v3/ReligiousAffiliation>",
            "code": "1041",
            "display": "Roman Catholic Church"
          }
        ] 
      }
        
      
    },
    {
      "url":"<http://sil-asia.org/fhir/StructureDefinition/Occupation>",
      "extension":
      [
            {
              "url": "title", 
              "valueString":"Nurse"
            },
            {
              "url": "workplaceName",
              "valueString":"Angeles General"
            },
            {
              "url": "workplaceAddress", 
              "valueString":"Anunas, Angeles City"
            },
            {
              "url": "workplaceTelecom",
              "valueString":"0212010992"
            }

          ]
    }
  ]
}

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-14T02:27:30.870+00:00",
				"profile": [
	        "<http://sil-asia.org/fhir/StructureDefinition/TanodCOVID.Patient>"
		    ]
		},
    },
    "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>"
    },
    "extension": [
        {
            "url": "<http://hl7.org/fhir/StructureDefinition/patient-nationality>",
            "extension": [
                {
                    "url": "code",
                    "valueCodeableConcept": {
                        "coding": [
                            {
                                "system": "urn:iso:std:iso:3166",
                                "code": "PHL",
                                "display": "Philippines"
                            }
                        ]
                    }
                }
            ]
        },
        {
            "url": "<http://hl7.org/fhir/StructureDefinition/patient-religion>",
            "valueCodeableConcept": {
                "coding": [
                    {
                        "system": "<http://hl7.org/fhir/v3/ReligiousAffiliation>",
                        "code": "1041",
                        "display": "Roman Catholic Church"
                    }
                ],
                "text": "Roman Catholic"
            }
        },
        {
            "url": "<http://sil-asia.org/fhir/StructureDefinition/Occupation>",
            "extension": [
                {
                    "url": "title",
                    "valueString": "Nurse"
                },
                {
                    "url": "workplaceName",
                    "valueString": "Angeles General"
                },
                {
                    "url": "workplaceAddress",
                    "valueString": "Anunas, Angeles City"
                },
                {
                    "url": "workplaceTelecom",
                    "valueString": "0212010992"
                }
            ]
        }
    ],
    "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": "longitude",
                            "valueDecimal": 100.1
                        }
                    ]
                }
            ],
            "use": "home",
            "line": [
                "139 Lily St"
            ],
            "city": "Angeles City",
            "district": "Pampanga",
            "state": "Region 3",
            "postalCode": "3999"
        }
    ],
    "link": [
        {
            "other": {
                "reference": "Patient/20170",
                "display": "father"
            },
            "type": "refer"
        }
    ]
}