findOrCreateDependentPatient

abstract fun findOrCreateDependentPatient(ehrSystem: String, dependentPatientDemographics: PatientDemographics): DataObserver<DexCarePatient>

This api will find or create a DexCare patient record for the patient, without linking it to the current auth account.

Return

DexCarePatient object representing the dependent patient.

Parameters

ehrSystem

The EHR system name in which the patient should be fuzzy matched/created. This value can come from a org.dexcare.services.retail.models.RetailDepartment, or determined based on visit state and patient address using getCatchmentArea. This value can also be hardcoded in the implementing app when the health system supports a single EHR system.

dependentPatientDemographics

A PatientDemographics to lookup, or create if not found.

Throws