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

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

	/**
	 * Code Value: 113000
	 */
	_113000("113000", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113001
	 */
	_113001("113001", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113002
	 */
	_113002("113002", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113003
	 */
	_113003("113003", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113004
	 */
	_113004("113004", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113005
	 */
	_113005("113005", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113006
	 */
	_113006("113006", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113007
	 */
	_113007("113007", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113008
	 */
	_113008("113008", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113009
	 */
	_113009("113009", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113010
	 */
	_113010("113010", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113013
	 */
	_113013("113013", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113018
	 */
	_113018("113018", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113020
	 */
	_113020("113020", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113021
	 */
	_113021("113021", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113030
	 */
	_113030("113030", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113031
	 */
	_113031("113031", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113032
	 */
	_113032("113032", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113033
	 */
	_113033("113033", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113034
	 */
	_113034("113034", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113035
	 */
	_113035("113035", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113036
	 */
	_113036("113036", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113037
	 */
	_113037("113037", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113038
	 */
	_113038("113038", "http://nema.org/dicom/dicm"),
	
	/**
	 * Code Value: 113039
	 */
	_113039("113039", "http://nema.org/dicom/dicm"),
	
	;
	
	/**
	 * Identifier for this Value Set:
	 * 
	 */
	public static final String VALUESET_IDENTIFIER = "";

	/**
	 * Name for this Value Set:
	 * KOStitle
	 */
	public static final String VALUESET_NAME = "KOStitle";

	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 (KOStitleEnum next : KOStitleEnum.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 KOStitleEnum forCode(String theCode) {
		KOStitleEnum 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(KOStitleEnum theEnum) {
			return theEnum.getCode();
		}

		@Override
		public String toSystemString(KOStitleEnum theEnum) {
			return theEnum.getSystem();
		}
		
		@Override
		public KOStitleEnum fromCodeString(String theCodeString) {
			return CODE_TO_ENUM.get(theCodeString);
		}
		
		@Override
		public KOStitleEnum fromCodeString(String theCodeString, String theSystemString) {
			Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
			if (map == null) {
				return null;
			}
			return map.get(theCodeString);
		}
		
	};
	
	/** 
	 * Constructor
	 */
	KOStitleEnum(String theCode, String theSystem) {
		myCode = theCode;
		mySystem = theSystem;
	}

	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy