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, 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