@Override public boolean isProfileOf(Class<? extends IBaseDatatype> theType) { if (myProfileOfType != null) { if (myProfileOfType.equals(theType)) { return true; } else if (myProfileOf instanceof IRuntimeDatatypeDefinition) { return ((IRuntimeDatatypeDefinition) myProfileOf).isProfileOf(theType); } } return false; }
@Override public boolean isProfileOf(Class<? extends IBaseDatatype> theType) { validateSealed(); if (myProfileOfType != null) { if (myProfileOfType.equals(theType)) { return true; } else if (myProfileOf instanceof IRuntimeDatatypeDefinition) { return ((IRuntimeDatatypeDefinition) myProfileOf).isProfileOf(theType); } } return false; }
if (targetTypeDef instanceof IRuntimeDatatypeDefinition && sourceTypeDef instanceof IRuntimeDatatypeDefinition) { IRuntimeDatatypeDefinition targetTypeDtDef = (IRuntimeDatatypeDefinition) targetTypeDef; if (targetTypeDtDef.isProfileOf(sourceType)) { FhirTerser terser = myContext.newTerser(); IBase newTarget = targetTypeDef.newInstance();
@Override public boolean isProfileOf(Class<? extends IBaseDatatype> theType) { if (myProfileOfType != null) { if (myProfileOfType.equals(theType)) { return true; } else if (myProfileOf instanceof IRuntimeDatatypeDefinition) { return ((IRuntimeDatatypeDefinition) myProfileOf).isProfileOf(theType); } } return false; }
@Override public boolean isProfileOf(Class<? extends IBaseDatatype> theType) { validateSealed(); if (myProfileOfType != null) { if (myProfileOfType.equals(theType)) { return true; } else if (myProfileOf instanceof IRuntimeDatatypeDefinition) { return ((IRuntimeDatatypeDefinition) myProfileOf).isProfileOf(theType); } } return false; }
if (targetTypeDef instanceof IRuntimeDatatypeDefinition && sourceTypeDef instanceof IRuntimeDatatypeDefinition) { IRuntimeDatatypeDefinition targetTypeDtDef = (IRuntimeDatatypeDefinition) targetTypeDef; if (targetTypeDtDef.isProfileOf(sourceType)) { FhirTerser terser = myContext.newTerser(); IBase newTarget = targetTypeDef.newInstance();