Exemplo n.º 1
0
  @Test
  public void testQueryBoundCodeableConcept() {
    RuntimeResourceDefinition patientType = ourCtx.getResourceDefinition(Patient.class);
    String childName = "maritalStatus";
    BaseRuntimeChildDatatypeDefinition genderChild =
        (BaseRuntimeChildDatatypeDefinition) patientType.getChildByName(childName);
    ourLog.trace(genderChild.getClass().getName());

    assertEquals(MaritalStatusCodesEnum.class, genderChild.getBoundEnumType());
  }
Exemplo n.º 2
0
  @Test
  public void testQueryBoundCode() {
    RuntimeResourceDefinition patientType = ourCtx.getResourceDefinition(Patient.class);
    String childName = "gender";
    BaseRuntimeChildDatatypeDefinition genderChild =
        (BaseRuntimeChildDatatypeDefinition) patientType.getChildByName(childName);
    ourLog.trace(genderChild.getClass().getName());

    assertEquals(AdministrativeGenderEnum.class, genderChild.getBoundEnumType());
  }