Search in sources :

Example 11 with AdministrativeGender

use of org.hl7.fhir.r4.model.Enumerations.AdministrativeGender in project quality-measure-and-cohort-service by Alvearie.

the class FHIRClientContextTest method verifyClient.

private void verifyClient(IGenericClient client) {
    Patient patient = client.read().resource(Patient.class).withId(PATIENT_ID).execute();
    AdministrativeGender actual = patient.getGender();
    Assert.assertEquals(AdministrativeGender.OTHER, actual);
}
Also used : Patient(org.hl7.fhir.r4.model.Patient) AdministrativeGender(org.hl7.fhir.r4.model.Enumerations.AdministrativeGender)

Aggregations

Patient (org.hl7.fhir.r4.model.Patient)6 AdministrativeGender (org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender)2 AdministrativeGender (org.hl7.fhir.r4.model.Enumerations.AdministrativeGender)2 InvalidRequestException (ca.uhn.fhir.rest.server.exceptions.InvalidRequestException)1 CqlDataProvider (com.ibm.cohort.cql.data.CqlDataProvider)1 SimpleDateFormat (java.text.SimpleDateFormat)1 OffsetDateTime (java.time.OffsetDateTime)1 ArrayList (java.util.ArrayList)1 Date (java.util.Date)1 AdministrativeGenderEnumFactory (org.hl7.fhir.dstu2.model.Enumerations.AdministrativeGenderEnumFactory)1 AdministrativeGenderEnumFactory (org.hl7.fhir.dstu2016may.model.Enumerations.AdministrativeGenderEnumFactory)1 AdministrativeGenderEnumFactory (org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGenderEnumFactory)1 DataProvider (org.opencds.cqf.cql.engine.data.DataProvider)1