added missing resourcetypeenums

This commit is contained in:
lmds1 2014-10-16 10:48:51 -04:00
parent 9f62d18b9f
commit 5a742a492b
4 changed files with 130 additions and 2 deletions

View File

@ -1431,7 +1431,7 @@ public class Test extends BaseResource implements IResource {
@Override @Override
public ResourceTypeEnum getResourceType() { public ResourceTypeEnum getResourceType() {
return ResourceTypeEnum.TEST; return null;
} }
} }

View File

@ -362,8 +362,123 @@ public enum ResourceTypeEnum {
* *
* A value set specifies a set of codes drawn from one or more code systems. * A value set specifies a set of codes drawn from one or more code systems.
*/ */
VALUESET("ValueSet", "http://hl7.org/fhir/resource-types"), VALUESET("ValueSet", "http://hl7.org/fhir/resource-types"),
/**
* New types
*/
/**
* Code Value: <b>Appointment</b>
*
* A scheduled appointment for a patient and/or practitioner(s) where a service may take place.
*/
APPOINTMENT("Appointment", "http://hl7.org/fhir/resource-types"),
/**
* Code Value: <b>AppointmentResponse</b>
*
* A response to a scheduled appointment for a patient and/or practitioner(s)
*/
APPOINTMENTRESPONSE("AppointmentResponse","http://hl7.org/fhir/resource-types"),
/**
* Code Value: <b>Availability</b>
*
* A container for slot(s) of time that may be available for booking appointments
*/
AVAILABILITY("Availability","http://hl7.org/fhir/resource-types"),
/**
* Code Value: <b>Binary</b>
*
* http://hl7.org/fhir/profiles/Binary
*/
BINARY("Binary", "http://hl7.org/fhir/resource-types"),
/**
* Code Value: <b>Claim</b>
*
* A claim
*/
CLAIM("Claim", "http://hl7.org/fhir/resource-types"),
/**
* Code Value: <b>Coverage</b>
*
* Insurance or medical plan
*/
COVERAGE("Coverage", "http://hl7.org/fhir/resource-types"),
/**
* Code Value: <b>GeneExpression</b>
*
* Resource that records the patient's expression of a gene
*/
GENEEXPRESSION("GeneExpression", "http://hl7.org/fhir/resource-types"),
/**
* Code Value: <b>GeneticAnalysis</b>
*
* Analysis of a patient's genetic test
*/
GENETICANALYSIS("GeneticAnalysis", "http://hl7.org/fhir/resource-types"),
/**
* Code Value: <b>GVFMeta</b>
*
* Meta data of a GVF file
*/
GVFMETA("GVFMeta", "http://hl7.org/fhir/resource-types"),
/**
* Code Value: <b>GVFVariant</b>
*
* A segment of a GVF file
*/
GVFVARIANT("GVFVariant", "http://hl7.org/fhir/resource-types"),
/**
* Code Value: <b>Microarray</b>
*
* A resource that displays result of a microarray
*/
MICROARRAY("Microarray", "http://hl7.org/fhir/resource-types"),
/**
* Code Value: <b>Remittance</b>
*
* A remittance
*/
REMITTANCE("Remittance", "http://hl7.org/fhir/resource-types"),
/**
* Code Value: <b>SequencingAnalysis</b>
*
* Computational analysis on a patient's genetic raw file
*/
SEQUENCINGANALYSIS("SequencingAnalysis", "http://hl7.org/fhir/resource-types"),
/**
* Code Value: <b>SequencingLab</b>
*
* A lab for sequencing
*/
SEQUENCINGLAB("SequencingLab", "http://hl7.org/fhir/resource-types"),
/**
* Code Value: <b>Slot</b>
*
* A slot of time that may be available for booking appointments
*/
SLOT("Slot", "http://hl7.org/fhir/resource-types"),
/**
* Code Value: <b>User</b>
*
* A user authorized to use the system
*/
USER("User", "http://hl7.org/fhir/resource-types"),
; ;
/** /**

View File

@ -11,6 +11,7 @@ import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Extension; import ca.uhn.fhir.model.api.annotation.Extension;
import ca.uhn.fhir.model.api.annotation.ResourceDef; import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt; import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.primitive.DateDt; import ca.uhn.fhir.model.primitive.DateDt;
import ca.uhn.fhir.model.primitive.IdDt; import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.model.primitive.StringDt; import ca.uhn.fhir.model.primitive.StringDt;
@ -192,6 +193,11 @@ public class ResourceWithExtensionsA extends BaseResource {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType ); // not implemented return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType ); // not implemented
} }
@Override
public ResourceTypeEnum getResourceType() {
return null; //not implemented
}

View File

@ -25,6 +25,7 @@ import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.annotation.Child; import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description; import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef; import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
/** /**
* HAPI/FHIR <b>Patient</b> Resource * HAPI/FHIR <b>Patient</b> Resource
@ -105,6 +106,12 @@ public class Patient extends BaseResource implements IResource {
return newType; return newType;
} }
@Override
public ResourceTypeEnum getResourceType() {
return ResourceTypeEnum.PATIENT;
}