Building on the Platform
...
Solutions
Patient Demographics
Create Patient
2min
the "create patient" interaction empowers applications to register new patients with the ehr the availability of this interaction may vary, depending on the provider and the ehr system in use if permitted by the provider/ehr, this feature becomes a valuable asset in the toolkit of digital health applications consider a scenario where an application aims to refer patients to a hospital for specialized care often, these patients may not yet have existing records within the hospital's ehr system with the "create patient" interaction the application can first register the patient with the ehr before sending the referral this proactive approach ensures that incoming referrals are seamlessly linked to a patient record, allowing healthcare providers to track and manage patient events accurately it will depend on the hospital and the ehr what the minimum required set of data is to register a new patient the patient resource can contain any of the attributes as defined in the fhir standard interaction a patient can be created by sending a patient resource in a fhir structured json body to the founda platform the body has to be sent with a post request to the patient endpoint, depending on your sandbox testing docid\ ncff15xnu1wglst2wnm p https //api \<region> founda com/1/health/organizations/\<org x>/fhir/4/patient example api call curl location 'https //api eu founda com/1/health/organizations/org 4c5739ba994d4ce9b5255d3f84a2d367/fhir/4/patient' \\ \ header 'content type application/json' \\ \ header 'authorization bearer ory at rsh9asri m5wv6ivohlorgo1lavfi4 kg9dplwosdjm nrsredmwdezbonxaoykkosawexahzdxuuey5aanavku' \\ \ data '{ "resourcetype" "patient", "meta" { "versionid" "1", "lastupdated" "2023 04 04t07 57 49 353+00 00", "source" "#f446e545682edac5", "tag" \[ { "system" "http //terminology hl7 org/codesystem/v3 actreason", "code" "htest", "display" "test health data" } ] }, "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" "654321" } ], "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" "#f446e545682edac5", "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" "654321" } ], "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" } ] } ] } ] }