added missing resourcetypeenums
This commit is contained in:
parent
9f62d18b9f
commit
5a742a492b
|
@ -1431,7 +1431,7 @@ public class Test extends BaseResource implements IResource {
|
|||
|
||||
@Override
|
||||
public ResourceTypeEnum getResourceType() {
|
||||
return ResourceTypeEnum.TEST;
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -364,6 +364,121 @@ public enum ResourceTypeEnum {
|
|||
*/
|
||||
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"),
|
||||
;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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.ResourceDef;
|
||||
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.IdDt;
|
||||
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
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceTypeEnum getResourceType() {
|
||||
return null; //not implemented
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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.Description;
|
||||
import ca.uhn.fhir.model.api.annotation.ResourceDef;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>Patient</b> Resource
|
||||
|
@ -106,6 +107,12 @@ public class Patient extends BaseResource implements IResource {
|
|||
}
|
||||
|
||||
|
||||
@Override
|
||||
public ResourceTypeEnum getResourceType() {
|
||||
return ResourceTypeEnum.PATIENT;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue