createVirtualActor

fun createVirtualActor(relationshipToPatient: RelationshipToPatient, patientDemographics: PatientDemographics): VirtualActor

A helper method to create a VirtualActor given a RelationshipToPatient value and a PatientDemographics. Note that if any of the information in the provided PatientDemographics object is missing or invalid, the resulting VirtualActor object will also be invalid.

Parameters

relationshipToPatient

An enum representing the Actor's relationship to the patient they are scheduling the visit for.

patientDemographics

The particular set of PatientDemographics to populate this model with.

Throws

NoSuchElementException

When the given PatientDemographics object does not contain an address.