Package ca.uhn.fhir.model.dstu2.valueset
Enum SubstanceCategoryCodesEnum
- java.lang.Object
-
- java.lang.Enum<SubstanceCategoryCodesEnum>
-
- ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum
-
- All Implemented Interfaces:
Serializable,Comparable<SubstanceCategoryCodesEnum>
public enum SubstanceCategoryCodesEnum extends Enum<SubstanceCategoryCodesEnum>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLERGENDisplay: Allergen
Code Value: allergen A substance that causes an allergic reaction.BIOLOGICAL_SUBSTANCEDisplay: Biological Substance
Code Value: biological A substance that is produced by or extracted from a biological source.BODY_SUBSTANCEDisplay: Body Substance
Code Value: body A substance that comes directly from a human or an animal (e.g.CHEMICALDisplay: Chemical
Code Value: chemical Any organic or inorganic substance of a particular molecular identity, including -- (i) any combination of such substances occurring in whole or in part as a result of a chemical reaction or occurring in nature and (ii) any element or uncombined radical (http://www.epa.gov/opptintr/import-export/pubs/importguide.pdf).DIETARY_SUBSTANCEDisplay: Dietary Substance
Code Value: food A food, dietary ingredient, or dietary supplement for human or animal.DRUG_OR_MEDICAMENTDisplay: Drug or Medicament
Code Value: drug A substance intended for use in the diagnosis, cure, mitigation, treatment, or prevention of disease in man or other animals (Federal Food Drug and Cosmetic Act).MATERIALDisplay: Material
Code Value: material A finished product which is not normally ingested, absorbed or injected (e.g.
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.model.api.IValueSetEnumBinder<SubstanceCategoryCodesEnum>VALUESET_BINDERConverts codes to their respective enumerated valuesstatic StringVALUESET_IDENTIFIERIdentifier for this Value Set:static StringVALUESET_NAMEName for this Value Set: Substance Category Codes
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubstanceCategoryCodesEnumforCode(String theCode)Returns the enumerated value associated with this codeStringgetCode()Returns the code associated with this enumerated valueStringgetSystem()Returns the code system associated with this enumerated valuestatic SubstanceCategoryCodesEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static SubstanceCategoryCodesEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALLERGEN
public static final SubstanceCategoryCodesEnum ALLERGEN
Display: Allergen
Code Value: allergen A substance that causes an allergic reaction.
-
BIOLOGICAL_SUBSTANCE
public static final SubstanceCategoryCodesEnum BIOLOGICAL_SUBSTANCE
Display: Biological Substance
Code Value: biological A substance that is produced by or extracted from a biological source.
-
BODY_SUBSTANCE
public static final SubstanceCategoryCodesEnum BODY_SUBSTANCE
Display: Body Substance
Code Value: body A substance that comes directly from a human or an animal (e.g. blood, urine, feces, tears, etc.).
-
CHEMICAL
public static final SubstanceCategoryCodesEnum CHEMICAL
Display: Chemical
Code Value: chemical Any organic or inorganic substance of a particular molecular identity, including -- (i) any combination of such substances occurring in whole or in part as a result of a chemical reaction or occurring in nature and (ii) any element or uncombined radical (http://www.epa.gov/opptintr/import-export/pubs/importguide.pdf).
-
DIETARY_SUBSTANCE
public static final SubstanceCategoryCodesEnum DIETARY_SUBSTANCE
Display: Dietary Substance
Code Value: food A food, dietary ingredient, or dietary supplement for human or animal.
-
DRUG_OR_MEDICAMENT
public static final SubstanceCategoryCodesEnum DRUG_OR_MEDICAMENT
Display: Drug or Medicament
Code Value: drug A substance intended for use in the diagnosis, cure, mitigation, treatment, or prevention of disease in man or other animals (Federal Food Drug and Cosmetic Act).
-
MATERIAL
public static final SubstanceCategoryCodesEnum MATERIAL
Display: Material
Code Value: material A finished product which is not normally ingested, absorbed or injected (e.g. steel, iron, wood, plastic and paper).
-
-
Field Detail
-
VALUESET_IDENTIFIER
public static final String VALUESET_IDENTIFIER
Identifier for this Value Set:- See Also:
- Constant Field Values
-
VALUESET_NAME
public static final String VALUESET_NAME
Name for this Value Set: Substance Category Codes- See Also:
- Constant Field Values
-
VALUESET_BINDER
public static final ca.uhn.fhir.model.api.IValueSetEnumBinder<SubstanceCategoryCodesEnum> VALUESET_BINDER
Converts codes to their respective enumerated values
-
-
Method Detail
-
values
public static SubstanceCategoryCodesEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SubstanceCategoryCodesEnum c : SubstanceCategoryCodesEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubstanceCategoryCodesEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forCode
public static SubstanceCategoryCodesEnum forCode(String theCode)
Returns the enumerated value associated with this code
-
-