ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum 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 ConceptMapEquivalenceEnum {
/**
* Display: Equivalent
* Code Value: equivalent
*
* The definitions of the concepts mean the same thing (including when structural implications of meaning are considered) (i.e. extensionally identical).
*/
EQUIVALENT("equivalent", "http://hl7.org/fhir/concept-map-equivalence"),
/**
* Display: Equal
* Code Value: equal
*
* The definitions of the concepts are exactly the same (i.e. only grammatical differences) and structural implications of meaning are identical or irrelevant (i.e. intentionally identical).
*/
EQUAL("equal", "http://hl7.org/fhir/concept-map-equivalence"),
/**
* Display: Wider
* Code Value: wider
*
* The target mapping is wider in meaning than the source concept.
*/
WIDER("wider", "http://hl7.org/fhir/concept-map-equivalence"),
/**
* Display: Subsumes
* Code Value: subsumes
*
* The target mapping subsumes the meaning of the source concept (e.g. the source is-a target).
*/
SUBSUMES("subsumes", "http://hl7.org/fhir/concept-map-equivalence"),
/**
* Display: Narrower
* Code Value: narrower
*
* The target mapping is narrower in meaning that the source concept. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when attempting to use these mappings operationally.
*/
NARROWER("narrower", "http://hl7.org/fhir/concept-map-equivalence"),
/**
* Display: Specializes
* Code Value: specializes
*
* The target mapping specializes the meaning of the source concept (e.g. the target is-a source).
*/
SPECIALIZES("specializes", "http://hl7.org/fhir/concept-map-equivalence"),
/**
* Display: Inexact
* Code Value: inexact
*
* The target mapping overlaps with the source concept, but both source and target cover additional meaning, or the definitions are imprecise and it is uncertain whether they have the same boundaries to their meaning. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when attempting to use these mappings operationally.
*/
INEXACT("inexact", "http://hl7.org/fhir/concept-map-equivalence"),
/**
* Display: Unmatched
* Code Value: unmatched
*
* There is no match for this concept in the destination concept system.
*/
UNMATCHED("unmatched", "http://hl7.org/fhir/concept-map-equivalence"),
/**
* Display: Disjoint
* Code Value: disjoint
*
* This is an explicit assertion that there is no mapping between the source and target concept.
*/
DISJOINT("disjoint", "http://hl7.org/fhir/concept-map-equivalence"),
;
/**
* Identifier for this Value Set:
*
*/
public static final String VALUESET_IDENTIFIER = "";
/**
* Name for this Value Set:
* ConceptMapEquivalence
*/
public static final String VALUESET_NAME = "ConceptMapEquivalence";
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 (ConceptMapEquivalenceEnum next : ConceptMapEquivalenceEnum.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 ConceptMapEquivalenceEnum forCode(String theCode) {
ConceptMapEquivalenceEnum 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(ConceptMapEquivalenceEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(ConceptMapEquivalenceEnum theEnum) {
return theEnum.getSystem();
}
@Override
public ConceptMapEquivalenceEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public ConceptMapEquivalenceEnum fromCodeString(String theCodeString, String theSystemString) {
Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
ConceptMapEquivalenceEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}