@ResourceDef(name="Binary", profile="http://hl7.org/fhir/Profile/Binary") public class Binary extends BaseBinary implements IBaseBinary {
String resourceName = resourceDefinition.name(); if (isBlank(resourceName)) { Class<?> parent = theClass.getSuperclass(); ResourceDef nextDef = pullAnnotation(parent, ResourceDef.class); if (nextDef != null) { resourceName = nextDef.name(); String resourceId = resourceDefinition.id(); if (!isBlank(resourceId)) { if (myIdToResourceDefinition.containsKey(resourceId)) {
public RuntimeResourceDefinition(FhirContext theContext, String theResourceName, Class<? extends IBaseResource> theClass, ResourceDef theResourceAnnotation, boolean theStandardType, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) { super(theResourceName, theClass, theStandardType, theContext, theClassToElementDefinitions); myContext = theContext; myResourceProfile = theResourceAnnotation.profile(); myId = theResourceAnnotation.id(); IBaseResource instance; try { instance = theClass.newInstance(); } catch (Exception e) { throw new ConfigurationException(myContext.getLocalizer().getMessage(getClass(), "nonInstantiableType", theClass.getName(), e.toString()), e); } myStructureVersion = instance.getStructureFhirVersionEnum(); if (myStructureVersion != theContext.getVersion().getVersion()) { throw new ConfigurationException(myContext.getLocalizer().getMessage(getClass(), "typeWrongVersion", theContext.getVersion().getVersion(), theClass.getName(), myStructureVersion)); } }
private Set<String> toTargetList(Class<? extends IBaseResource>[] theTarget) { HashSet<String> retVal = new HashSet<String>(); for (Class<? extends IBaseResource> nextType : theTarget) { ResourceDef resourceDef = nextType.getAnnotation(ResourceDef.class); if (resourceDef != null) { retVal.add(resourceDef.name()); } } return retVal; }
@ResourceDef(name="Schedule", profile="http://hl7.org/fhir/Profile/Schedule") public class Schedule extends DomainResource {
String resourceName = resourceDefinition.name(); if (isBlank(resourceName)) { Class<?> parent = theClass.getSuperclass(); ResourceDef nextDef = pullAnnotation(parent, ResourceDef.class); if (nextDef != null) { resourceName = nextDef.name(); String resourceId = resourceDefinition.id(); if (!isBlank(resourceId)) { if (myIdToResourceDefinition.containsKey(resourceId)) {
private Set<String> toTargetList(Class<? extends IBaseResource>[] theTarget) { HashSet<String> retVal = new HashSet<String>(); for (Class<? extends IBaseResource> nextType : theTarget) { ResourceDef resourceDef = nextType.getAnnotation(ResourceDef.class); if (resourceDef != null) { retVal.add(resourceDef.name()); } } return retVal; }
public RuntimeResourceDefinition(FhirContext theContext, String theResourceName, Class<? extends IBaseResource> theClass, ResourceDef theResourceAnnotation, boolean theStandardType, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) { super(theResourceName, theClass, theStandardType, theContext, theClassToElementDefinitions); myContext = theContext; myResourceProfile = theResourceAnnotation.profile(); myId = theResourceAnnotation.id(); IBaseResource instance; try { instance = theClass.newInstance(); } catch (Exception e) { throw new ConfigurationException(myContext.getLocalizer().getMessage(getClass(), "nonInstantiableType", theClass.getName(), e.toString()), e); } myStructureVersion = instance.getStructureFhirVersionEnum(); if (myStructureVersion != theContext.getVersion().getVersion()) { throw new ConfigurationException(myContext.getLocalizer().getMessage(getClass(), "typeWrongVersion", theContext.getVersion().getVersion(), theClass.getName(), myStructureVersion)); } }
@ResourceDef(name="Basic", profile="http://hl7.org/fhir/Profile/Basic") public class Basic extends DomainResource {
@ResourceDef(name="BodySite", profile="http://hl7.org/fhir/Profile/BodySite") public class BodySite extends DomainResource {
@ResourceDef(name="EligibilityRequest", profile="http://hl7.org/fhir/Profile/EligibilityRequest") public class EligibilityRequest extends DomainResource {
@ResourceDef(name="PaymentNotice", profile="http://hl7.org/fhir/Profile/PaymentNotice") public class PaymentNotice extends DomainResource {
@ResourceDef(name="EnrollmentRequest", profile="http://hl7.org/fhir/Profile/EnrollmentRequest") public class EnrollmentRequest extends DomainResource {
@ResourceDef(name="DeviceUseStatement", profile="http://hl7.org/fhir/Profile/DeviceUseStatement") public class DeviceUseStatement extends DomainResource {
@ResourceDef(name="ExplanationOfBenefit", profile="http://hl7.org/fhir/Profile/ExplanationOfBenefit") public class ExplanationOfBenefit extends DomainResource {
@ResourceDef(name="Parameters", profile="http://hl7.org/fhir/Profile/Parameters") public class Parameters extends Resource implements IBaseParameters {
@ResourceDef(name="Flag", profile="http://hl7.org/fhir/Profile/Flag") public class Flag extends DomainResource {
@ResourceDef(name="EnrollmentResponse", profile="http://hl7.org/fhir/Profile/EnrollmentResponse") public class EnrollmentResponse extends DomainResource {
@ResourceDef(name="Slot", profile="http://hl7.org/fhir/Profile/Slot") public class Slot extends DomainResource {