Building on the Platform
...
Solutions
Patient Demographics
Update Patient
3min
the "update patient" interaction enables the patient demographic data to be synced and up to date between applications and ehrs this works two ways the patient data changes in the app and needs to be updated in the ehr this interaction is described on this page, where the application pushes an updated patient resource to the ehr the patient data changes in the ehr and needs to be updated in the app in that case, the app can subscribe to patient updates and gets the new patient data pushed from the ehr see the subscriptions docid\ sweut1tpycl9uinregvc0 section to learn more about this interaction when a patient updates their address in the application, the application's system triggers an update request using the founda health platform our platform communicates with the patient's healthcare provider's ehr system through the update patient interaction the availability of this interaction may vary, depending on the provider and the ehr system in use interaction a patient can be updated by sending a patient resource in a fhir structured json body to the founda platform the body has to be sent with a put request to the patient endpoint referring to the patient you want to update with that patient's identifier and depending on your sandbox testing docid\ ncff15xnu1wglst2wnm p https //api \<region> founda com/1/health/organizations/\<org x>/fhir/4/patient/\<id> example api call curl location request put 'https //api eu founda com/1/health/organizations/org 4c5739ba994d4ce9b5255d3f84a2d367/fhir/4/patient/2185' \\ \ header 'content type application/json' \\ \ header 'authorization bearer ory at v5t0mpbjiavv6yzord3wyqh822w5i3it0zwrt mwoes 9sxh1xycgrt9ojk8axtxde8ztp2zkw21s qpes bmgq' \\ \ data '{ "resourcetype" "patient", "id" "2185", "meta" { "versionid" "1", "lastupdated" "2023 10 05t14 45 38 993+00 00", "source" "#56f566c5533813fc", "tag" \[ { "system" "http //terminology hl7 org/codesystem/v3 actreason", "code" "htest", "display" "test health data" } ] }, "text" { "status" "generated", "div" "\<div xmlns=\\"http //www w3 org/1999/xhtml\\">\<div class=\\"hapiheadertext\\">stephen \<b>richardson \</b>\</div>\<table class=\\"hapipropertytable\\">\<tbody>\<tr>\<td>identifier\</td>\<td>654321\</td>\</tr>\<tr>\<td>address\</td>\<td>\<span>1980 carriage lane \</span>\<br/>\<span>elysburg \</span>\<span>us \</span>\</td>\</tr>\<tr>\<td>date of birth\</td>\<td>\<span>07 april 1982\</span>\</td>\</tr>\</tbody>\</table>\</div>" }, "identifier" \[ { "use" "usual", "type" { "coding" \[ { "system" "http //terminology hl7 org/codesystem/v2 0203", "code" "mr" } ] }, "system" "urn\ oid 0 1 2 3 4 5 6 7", "value" "654322" } ], "active" true, "name" \[ { "use" "official", "family" "richardson", "given" \[ "stephen" ] } ], "telecom" \[ { "system" "phone", "value" "570 221 7837", "use" "home" } ], "gender" "male", "birthdate" "1982 04 07", "address" \[ { "use" "home", "line" \[ "1980 carriage lane" ], "city" "elysburg", "postalcode" "17824", "country" "us" } ], "contact" \[ { "relationship" \[ { "coding" \[ { "system" "http //terminology hl7 org/codesystem/v2 0131", "code" "e" } ] } ] } ] }'{ "resourcetype" "patient", "id" "2185", "meta" { "versionid" "1", "lastupdated" "2023 10 05t14 45 38 993+00 00", "source" "#56f566c5533813fc", "tag" \[ { "system" "http //terminology hl7 org/codesystem/v3 actreason", "code" "htest", "display" "test health data" } ] }, "text" { "status" "generated", "div" "\<div xmlns=\\"http //www w3 org/1999/xhtml\\">\<div class=\\"hapiheadertext\\">stephen \<b>richardson \</b>\</div>\<table class=\\"hapipropertytable\\">\<tbody>\<tr>\<td>identifier\</td>\<td>654321\</td>\</tr>\<tr>\<td>address\</td>\<td>\<span>1980 carriage lane \</span>\<br/>\<span>elysburg \</span>\<span>us \</span>\</td>\</tr>\<tr>\<td>date of birth\</td>\<td>\<span>07 april 1982\</span>\</td>\</tr>\</tbody>\</table>\</div>" }, "identifier" \[ { "use" "usual", "type" { "coding" \[ { "system" "http //terminology hl7 org/codesystem/v2 0203", "code" "mr" } ] }, "system" "urn\ oid 0 1 2 3 4 5 6 7", "value" "654322" } ], "active" true, "name" \[ { "use" "official", "family" "richardson", "given" \[ "stephen" ] } ], "telecom" \[ { "system" "phone", "value" "570 221 7837", "use" "home" } ], "gender" "male", "birthdate" "1982 04 07", "address" \[ { "use" "home", "line" \[ "1980 carriage lane" ], "city" "elysburg", "postalcode" "17824", "country" "us" } ], "contact" \[ { "relationship" \[ { "coding" \[ { "system" "http //terminology hl7 org/codesystem/v2 0131", "code" "e" } ] } ] } ] }{ "resourcetype" "patient", "id" "2185", "meta" { "versionid" "2", "lastupdated" "2023 10 11t08 24 34 323+00 00", "source" "#56f566c5533813fc", "tag" \[ { "system" "http //terminology hl7 org/codesystem/v3 actreason", "code" "htest", "display" "test health data" } ] }, "text" { "status" "generated", "div" "\<div xmlns=\\"http //www w3 org/1999/xhtml\\">\<div class=\\"hapiheadertext\\">stephen \<b>richardson \</b>\</div>\<table class=\\"hapipropertytable\\">\<tbody>\<tr>\<td>identifier\</td>\<td>654321\</td>\</tr>\<tr>\<td>address\</td>\<td>\<span>1980 carriage lane \</span>\<br/>\<span>elysburg \</span>\<span>us \</span>\</td>\</tr>\<tr>\<td>date of birth\</td>\<td>\<span>07 april 1982\</span>\</td>\</tr>\</tbody>\</table>\</div>" }, "identifier" \[ { "use" "usual", "type" { "coding" \[ { "system" "http //terminology hl7 org/codesystem/v2 0203", "code" "mr" } ] }, "system" "urn\ oid 0 1 2 3 4 5 6 7", "value" "654322" } ], "active" true, "name" \[ { "use" "official", "family" "richardson", "given" \[ "stephen" ] } ], "telecom" \[ { "system" "phone", "value" "570 221 7837", "use" "home" } ], "gender" "male", "birthdate" "1982 04 07", "address" \[ { "use" "home", "line" \[ "1980 carriage lane" ], "city" "elysburg", "postalcode" "17824", "country" "us" } ], "contact" \[ { "relationship" \[ { "coding" \[ { "system" "http //terminology hl7 org/codesystem/v2 0131", "code" "e" } ] } ] } ] }