ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum 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 AuditEventObjectLifecycleEnum {
/**
* Display: Origination / Creation
* Code Value: 1
*
* Origination / Creation
*/
ORIGINATION___CREATION("1", "http://hl7.org/fhir/object-lifecycle"),
/**
* Display: Import / Copy from original
* Code Value: 2
*
* Import / Copy from original
*/
IMPORT___COPY_FROM_ORIGINAL("2", "http://hl7.org/fhir/object-lifecycle"),
/**
* Display: Amendment
* Code Value: 3
*
* Amendment
*/
AMENDMENT("3", "http://hl7.org/fhir/object-lifecycle"),
/**
* Display: Verification
* Code Value: 4
*
* Verification
*/
VERIFICATION("4", "http://hl7.org/fhir/object-lifecycle"),
/**
* Display: Translation
* Code Value: 5
*
* Translation
*/
TRANSLATION("5", "http://hl7.org/fhir/object-lifecycle"),
/**
* Display: Access / Use
* Code Value: 6
*
* Access / Use
*/
ACCESS___USE("6", "http://hl7.org/fhir/object-lifecycle"),
/**
* Display: De-identification
* Code Value: 7
*
* De-identification
*/
DE_IDENTIFICATION("7", "http://hl7.org/fhir/object-lifecycle"),
/**
* Display: Aggregation, summarization, derivation
* Code Value: 8
*
* Aggregation, summarization, derivation
*/
AGGREGATION__SUMMARIZATION__DERIVATION("8", "http://hl7.org/fhir/object-lifecycle"),
/**
* Display: Report
* Code Value: 9
*
* Report
*/
REPORT("9", "http://hl7.org/fhir/object-lifecycle"),
/**
* Display: Export / Copy to target
* Code Value: 10
*
* Export / Copy to target
*/
EXPORT___COPY_TO_TARGET("10", "http://hl7.org/fhir/object-lifecycle"),
/**
* Display: Disclosure
* Code Value: 11
*
* Disclosure
*/
DISCLOSURE("11", "http://hl7.org/fhir/object-lifecycle"),
/**
* Display: Receipt of disclosure
* Code Value: 12
*
* Receipt of disclosure
*/
RECEIPT_OF_DISCLOSURE("12", "http://hl7.org/fhir/object-lifecycle"),
/**
* Display: Archiving
* Code Value: 13
*
* Archiving
*/
ARCHIVING("13", "http://hl7.org/fhir/object-lifecycle"),
/**
* Display: Logical deletion
* Code Value: 14
*
* Logical deletion
*/
LOGICAL_DELETION("14", "http://hl7.org/fhir/object-lifecycle"),
/**
* Display: Permanent erasure / Physical destruction
* Code Value: 15
*
* Permanent erasure / Physical destruction
*/
PERMANENT_ERASURE___PHYSICAL_DESTRUCTION("15", "http://hl7.org/fhir/object-lifecycle"),
;
/**
* Identifier for this Value Set:
*
*/
public static final String VALUESET_IDENTIFIER = "";
/**
* Name for this Value Set:
* AuditEventObjectLifecycle
*/
public static final String VALUESET_NAME = "AuditEventObjectLifecycle";
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 (AuditEventObjectLifecycleEnum next : AuditEventObjectLifecycleEnum.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 AuditEventObjectLifecycleEnum forCode(String theCode) {
AuditEventObjectLifecycleEnum 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(AuditEventObjectLifecycleEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(AuditEventObjectLifecycleEnum theEnum) {
return theEnum.getSystem();
}
@Override
public AuditEventObjectLifecycleEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public AuditEventObjectLifecycleEnum fromCodeString(String theCodeString, String theSystemString) {
Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
AuditEventObjectLifecycleEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}