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

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

	/**
	 * Display: Planned
* Code Value: planned * * This episode of care is planned to start at the date specified in the period.start. During this status an organization may perform assessments to determine if they are eligible to receive services, or be organizing to make resources available to provide care services. */ PLANNED("planned", "http://hl7.org/fhir/episode-of-care-status"), /** * Display: Waitlist
* Code Value: waitlist * * This episode has been placed on a waitlist, pending the episode being made active (or cancelled). */ WAITLIST("waitlist", "http://hl7.org/fhir/episode-of-care-status"), /** * Display: Active
* Code Value: active * * This episode of care is current. */ ACTIVE("active", "http://hl7.org/fhir/episode-of-care-status"), /** * Display: On Hold
* Code Value: onhold * * This episode of care is on hold, the organization has limited responsibility for the patient (such as while on respite). */ ON_HOLD("onhold", "http://hl7.org/fhir/episode-of-care-status"), /** * Display: Finished
* Code Value: finished * * This episode of care is finished at the organization is not expecting to be providing care to the patient. Can also be known as "closed", "completed" or other similar terms. */ FINISHED("finished", "http://hl7.org/fhir/episode-of-care-status"), /** * Display: Cancelled
* Code Value: cancelled * * The episode of care was cancelled, or withdrawn from service, often selected during the planned stage as the patient may have gone elsewhere, or the circumstances have changed and the organization is unable to provide the care. It indicates that services terminated outside the planned/expected workflow. */ CANCELLED("cancelled", "http://hl7.org/fhir/episode-of-care-status"), ; /** * Identifier for this Value Set: * */ public static final String VALUESET_IDENTIFIER = ""; /** * Name for this Value Set: * EpisodeOfCareStatus */ public static final String VALUESET_NAME = "EpisodeOfCareStatus"; 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 (EpisodeOfCareStatusEnum next : EpisodeOfCareStatusEnum.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 EpisodeOfCareStatusEnum forCode(String theCode) { EpisodeOfCareStatusEnum 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(EpisodeOfCareStatusEnum theEnum) { return theEnum.getCode(); } @Override public String toSystemString(EpisodeOfCareStatusEnum theEnum) { return theEnum.getSystem(); } @Override public EpisodeOfCareStatusEnum fromCodeString(String theCodeString) { return CODE_TO_ENUM.get(theCodeString); } @Override public EpisodeOfCareStatusEnum fromCodeString(String theCodeString, String theSystemString) { Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); if (map == null) { return null; } return map.get(theCodeString); } }; /** * Constructor */ EpisodeOfCareStatusEnum(String theCode, String theSystem) { myCode = theCode; mySystem = theSystem; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy