ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum Maven / Gradle / Ivy
The newest version!
package ca.uhn.fhir.model.dstu2.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
public enum DiagnosticReportStatusEnum {
/**
* Display: Registered
* Code Value: registered
*
* The existence of the report is registered, but there is nothing yet available.
*/
REGISTERED("registered", "http://hl7.org/fhir/diagnostic-report-status"),
/**
* Display: Partial
* Code Value: partial
*
* This is a partial (e.g. initial, interim or preliminary) report: data in the report may be incomplete or unverified.
*/
PARTIAL("partial", "http://hl7.org/fhir/diagnostic-report-status"),
/**
* Display: Final
* Code Value: final
*
* The report is complete and verified by an authorized person.
*/
FINAL("final", "http://hl7.org/fhir/diagnostic-report-status"),
/**
* Display: Corrected
* Code Value: corrected
*
* The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed
*/
CORRECTED("corrected", "http://hl7.org/fhir/diagnostic-report-status"),
/**
* Display: Appended
* Code Value: appended
*
* The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed.
*/
APPENDED("appended", "http://hl7.org/fhir/diagnostic-report-status"),
/**
* Display: Cancelled
* Code Value: cancelled
*
* The report is unavailable because the measurement was not started or not completed (also sometimes called "aborted").
*/
CANCELLED("cancelled", "http://hl7.org/fhir/diagnostic-report-status"),
/**
* Display: Entered in Error
* Code Value: entered-in-error
*
* The report has been withdrawn following a previous final release.
*/
ENTERED_IN_ERROR("entered-in-error", "http://hl7.org/fhir/diagnostic-report-status"),
;
/**
* Identifier for this Value Set:
*
*/
public static final String VALUESET_IDENTIFIER = "";
/**
* Name for this Value Set:
* DiagnosticReportStatus
*/
public static final String VALUESET_NAME = "DiagnosticReportStatus";
private static Map CODE_TO_ENUM = new HashMap();
private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>();
private final String myCode;
private final String mySystem;
static {
for (DiagnosticReportStatusEnum next : DiagnosticReportStatusEnum.values()) {
CODE_TO_ENUM.put(next.getCode(), next);
if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) {
SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap());
}
SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next);
}
}
/**
* Returns the code associated with this enumerated value
*/
public String getCode() {
return myCode;
}
/**
* Returns the code system associated with this enumerated value
*/
public String getSystem() {
return mySystem;
}
/**
* Returns the enumerated value associated with this code
*/
public static DiagnosticReportStatusEnum forCode(String theCode) {
DiagnosticReportStatusEnum retVal = CODE_TO_ENUM.get(theCode);
return retVal;
}
/**
* Converts codes to their respective enumerated values
*/
public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() {
@Override
public String toCodeString(DiagnosticReportStatusEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(DiagnosticReportStatusEnum theEnum) {
return theEnum.getSystem();
}
@Override
public DiagnosticReportStatusEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public DiagnosticReportStatusEnum fromCodeString(String theCodeString, String theSystemString) {
Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
DiagnosticReportStatusEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}