All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum 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 ObservationStatusEnum {

	/**
	 * Display: Registered
* Code Value: registered * * The existence of the observation is registered, but there is no result yet available. */ REGISTERED("registered", "http://hl7.org/fhir/observation-status"), /** * Display: Preliminary
* Code Value: preliminary * * This is an initial or interim observation: data may be incomplete or unverified. */ PRELIMINARY("preliminary", "http://hl7.org/fhir/observation-status"), /** * Display: Final
* Code Value: final * * The observation is complete and verified by an authorized person. */ FINAL("final", "http://hl7.org/fhir/observation-status"), /** * Display: Amended
* Code Value: amended * * The observation has been modified subsequent to being Final, and is complete and verified by an authorized person. */ AMENDED("amended", "http://hl7.org/fhir/observation-status"), /** * Display: cancelled
* Code Value: cancelled * * The observation is unavailable because the measurement was not started or not completed (also sometimes called "aborted"). */ CANCELLED("cancelled", "http://hl7.org/fhir/observation-status"), /** * Display: Entered in Error
* Code Value: entered-in-error * * The observation has been withdrawn following previous final release. */ ENTERED_IN_ERROR("entered-in-error", "http://hl7.org/fhir/observation-status"), /** * Display: Unknown Status
* Code Value: unknown * * The observation status is unknown. Note that "unknown" is a value of last resort and every attempt should be made to provide a meaningful value other than "unknown". */ UNKNOWN_STATUS("unknown", "http://hl7.org/fhir/observation-status"), ; /** * Identifier for this Value Set: * */ public static final String VALUESET_IDENTIFIER = ""; /** * Name for this Value Set: * ObservationStatus */ public static final String VALUESET_NAME = "ObservationStatus"; 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 (ObservationStatusEnum next : ObservationStatusEnum.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 ObservationStatusEnum forCode(String theCode) { ObservationStatusEnum 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(ObservationStatusEnum theEnum) { return theEnum.getCode(); } @Override public String toSystemString(ObservationStatusEnum theEnum) { return theEnum.getSystem(); } @Override public ObservationStatusEnum fromCodeString(String theCodeString) { return CODE_TO_ENUM.get(theCodeString); } @Override public ObservationStatusEnum fromCodeString(String theCodeString, String theSystemString) { Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); if (map == null) { return null; } return map.get(theCodeString); } }; /** * Constructor */ ObservationStatusEnum(String theCode, String theSystem) { myCode = theCode; mySystem = theSystem; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy