From 5ad384c11af3c0117d78dbeb955b987b1dbdeed4 Mon Sep 17 00:00:00 2001 From: James Agnew Date: Fri, 18 Mar 2016 19:45:00 +0100 Subject: [PATCH] One more test --- .../hl7/fhir/dstu3/hapi/ctx/FhirContextDstu3Test.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/ctx/FhirContextDstu3Test.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/ctx/FhirContextDstu3Test.java index 0d7ed35c675..2068d2d9455 100644 --- a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/ctx/FhirContextDstu3Test.java +++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/ctx/FhirContextDstu3Test.java @@ -25,5 +25,14 @@ public class FhirContextDstu3Test { assertEquals(AdministrativeGender.class, genderChild.getBoundEnumType()); } + @Test + public void testQueryNonBoundCode() { + RuntimeResourceDefinition patientType = ourCtx.getResourceDefinition(Patient.class); + String childName = "name"; + BaseRuntimeChildDatatypeDefinition genderChild = (BaseRuntimeChildDatatypeDefinition) patientType.getChildByName(childName); + ourLog.trace(genderChild.getClass().getName()); + + assertEquals(null, genderChild.getBoundEnumType()); + } }