
ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum Maven / Gradle / Ivy
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
public enum SpecimenCollectionMethodEnum {
/**
* Code Value: 119295008
*/
_119295008("119295008", "http://snomed.info/sct"),
/**
* Code Value: 413651001
*/
_413651001("413651001", "http://snomed.info/sct"),
/**
* Code Value: 360020006
*/
_360020006("360020006", "http://snomed.info/sct"),
/**
* Code Value: 430823004
*/
_430823004("430823004", "http://snomed.info/sct"),
/**
* Code Value: 16404004
*/
_16404004("16404004", "http://snomed.info/sct"),
/**
* Code Value: 67889009
*/
_67889009("67889009", "http://snomed.info/sct"),
/**
* Code Value: 29240004
*/
_29240004("29240004", "http://snomed.info/sct"),
/**
* Code Value: 45710003
*/
_45710003("45710003", "http://snomed.info/sct"),
/**
* Code Value: 7800008
*/
_7800008("7800008", "http://snomed.info/sct"),
/**
* Code Value: 258431006
*/
_258431006("258431006", "http://snomed.info/sct"),
/**
* Code Value: 20255002
*/
_20255002("20255002", "http://snomed.info/sct"),
/**
* Code Value: 386147002
*/
_386147002("386147002", "http://snomed.info/sct"),
/**
* Code Value: 278450005
*/
_278450005("278450005", "http://snomed.info/sct"),
;
/**
* Identifier for this Value Set:
* http://hl7.org/fhir/vs/specimen-collection-method
*/
public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/specimen-collection-method";
/**
* Name for this Value Set:
* SpecimenCollectionMethod
*/
public static final String VALUESET_NAME = "SpecimenCollectionMethod";
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 (SpecimenCollectionMethodEnum next : SpecimenCollectionMethodEnum.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 SpecimenCollectionMethodEnum forCode(String theCode) {
SpecimenCollectionMethodEnum 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(SpecimenCollectionMethodEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(SpecimenCollectionMethodEnum theEnum) {
return theEnum.getSystem();
}
@Override
public SpecimenCollectionMethodEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public SpecimenCollectionMethodEnum fromCodeString(String theCodeString, String theSystemString) {
Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
SpecimenCollectionMethodEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy