find Or Create Dependent Patient
abstract fun findOrCreateDependentPatient(ehrSystem: String, dependentPatientDemographics: PatientDemographics): DataObserver<DexCarePatient>
Content copied to clipboard
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, Provider, or VirtualPracticeRegion for retail visit, provider-direct visit or virtual visit respectively. 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
When some data is missing or invalid in the provided PatientDemographics object.