001package org.hl7.fhir.r4.model.codesystems; 002 003/* 004 Copyright (c) 2011+, HL7, Inc. 005 All rights reserved. 006 007 Redistribution and use in source and binary forms, with or without modification, 008 are permitted provided that the following conditions are met: 009 010 * Redistributions of source code must retain the above copyright notice, this 011 list of conditions and the following disclaimer. 012 * Redistributions in binary form must reproduce the above copyright notice, 013 this list of conditions and the following disclaimer in the documentation 014 and/or other materials provided with the distribution. 015 * Neither the name of HL7 nor the names of its contributors may be used to 016 endorse or promote products derived from this software without specific 017 prior written permission. 018 019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 022 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 023 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 024 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 026 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 027 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 028 POSSIBILITY OF SUCH DAMAGE. 029 030*/ 031 032// Generated on Sun, May 6, 2018 17:51-0400 for FHIR v3.4.0 033 034 035import org.hl7.fhir.exceptions.FHIRException; 036 037public enum ObservationCategory { 038 039 /** 040 * Social History Observations define the patient's occupational, personal (e.g., lifestyle), social, and environmental history and health risk factors, as well as administrative data such as marital status, race, ethnicity and religious affiliation. 041 */ 042 SOCIALHISTORY, 043 /** 044 * Clinical observations measure the body's basic functions such as blood pressure, heart rate, respiratory rate, height, weight, body mass index, head circumference, pulse oximetry, temperature, and body surface area. 045 */ 046 VITALSIGNS, 047 /** 048 * Observations generated by imaging. The scope includes observations, plain x-ray, ultrasound, CT, MRI, angiography, echocardiography, and nuclear medicine. 049 */ 050 IMAGING, 051 /** 052 * The results of observations generated by laboratories. Laboratory results are typically generated by laboratories providing analytic services in areas such as chemistry, hematology, serology, histology, cytology, anatomic pathology, microbiology, and/or virology. These observations are based on analysis of specimens obtained from the patient and submitted to the laboratory. 053 */ 054 LABORATORY, 055 /** 056 * Observations generated by other procedures. This category includes observations resulting from interventional and non-interventional procedures excluding laboratory and imaging (e.g., cardiology catheterization, endoscopy, electrodiagnostics, etc.). Procedure results are typically generated by a clinician to provide more granular information about component observations made during a procedure, such as where a gastroenterologist reports the size of a polyp observed during a colonoscopy. 057 */ 058 PROCEDURE, 059 /** 060 * Assessment tool/survey instrument observations (e.g., Apgar Scores, Montreal Cognitive Assessment (MoCA)). 061 */ 062 SURVEY, 063 /** 064 * Observations generated by physical exam findings including direct observations made by a clinician and use of simple instruments and the result of simple maneuvers performed directly on the patient's body. 065 */ 066 EXAM, 067 /** 068 * Observations generated by non-interventional treatment protocols (e.g. occupational, physical, radiation, nutritional and medication therapy) 069 */ 070 THERAPY, 071 /** 072 * Observations that measure or record any bodily activity that enhances or maintains physical fitness and overall health and wellness. Not under direct supervision of practitioner such as a physical therapist. (e.g., laps swum, steps, sleep data) 073 */ 074 ACTIVITY, 075 /** 076 * added to help the parsers 077 */ 078 NULL; 079 public static ObservationCategory fromCode(String codeString) throws FHIRException { 080 if (codeString == null || "".equals(codeString)) 081 return null; 082 if ("social-history".equals(codeString)) 083 return SOCIALHISTORY; 084 if ("vital-signs".equals(codeString)) 085 return VITALSIGNS; 086 if ("imaging".equals(codeString)) 087 return IMAGING; 088 if ("laboratory".equals(codeString)) 089 return LABORATORY; 090 if ("procedure".equals(codeString)) 091 return PROCEDURE; 092 if ("survey".equals(codeString)) 093 return SURVEY; 094 if ("exam".equals(codeString)) 095 return EXAM; 096 if ("therapy".equals(codeString)) 097 return THERAPY; 098 if ("activity".equals(codeString)) 099 return ACTIVITY; 100 throw new FHIRException("Unknown ObservationCategory code '"+codeString+"'"); 101 } 102 public String toCode() { 103 switch (this) { 104 case SOCIALHISTORY: return "social-history"; 105 case VITALSIGNS: return "vital-signs"; 106 case IMAGING: return "imaging"; 107 case LABORATORY: return "laboratory"; 108 case PROCEDURE: return "procedure"; 109 case SURVEY: return "survey"; 110 case EXAM: return "exam"; 111 case THERAPY: return "therapy"; 112 case ACTIVITY: return "activity"; 113 default: return "?"; 114 } 115 } 116 public String getSystem() { 117 return "http://hl7.org/fhir/observation-category"; 118 } 119 public String getDefinition() { 120 switch (this) { 121 case SOCIALHISTORY: return "Social History Observations define the patient's occupational, personal (e.g., lifestyle), social, and environmental history and health risk factors, as well as administrative data such as marital status, race, ethnicity and religious affiliation."; 122 case VITALSIGNS: return " Clinical observations measure the body's basic functions such as blood pressure, heart rate, respiratory rate, height, weight, body mass index, head circumference, pulse oximetry, temperature, and body surface area."; 123 case IMAGING: return "Observations generated by imaging. The scope includes observations, plain x-ray, ultrasound, CT, MRI, angiography, echocardiography, and nuclear medicine."; 124 case LABORATORY: return "The results of observations generated by laboratories. Laboratory results are typically generated by laboratories providing analytic services in areas such as chemistry, hematology, serology, histology, cytology, anatomic pathology, microbiology, and/or virology. These observations are based on analysis of specimens obtained from the patient and submitted to the laboratory."; 125 case PROCEDURE: return "Observations generated by other procedures. This category includes observations resulting from interventional and non-interventional procedures excluding laboratory and imaging (e.g., cardiology catheterization, endoscopy, electrodiagnostics, etc.). Procedure results are typically generated by a clinician to provide more granular information about component observations made during a procedure, such as where a gastroenterologist reports the size of a polyp observed during a colonoscopy."; 126 case SURVEY: return "Assessment tool/survey instrument observations (e.g., Apgar Scores, Montreal Cognitive Assessment (MoCA))."; 127 case EXAM: return "Observations generated by physical exam findings including direct observations made by a clinician and use of simple instruments and the result of simple maneuvers performed directly on the patient's body."; 128 case THERAPY: return "Observations generated by non-interventional treatment protocols (e.g. occupational, physical, radiation, nutritional and medication therapy)"; 129 case ACTIVITY: return "Observations that measure or record any bodily activity that enhances or maintains physical fitness and overall health and wellness. Not under direct supervision of practitioner such as a physical therapist. (e.g., laps swum, steps, sleep data)"; 130 default: return "?"; 131 } 132 } 133 public String getDisplay() { 134 switch (this) { 135 case SOCIALHISTORY: return "Social History"; 136 case VITALSIGNS: return "Vital Signs"; 137 case IMAGING: return "Imaging"; 138 case LABORATORY: return "Laboratory"; 139 case PROCEDURE: return "Procedure"; 140 case SURVEY: return "Survey"; 141 case EXAM: return "Exam"; 142 case THERAPY: return "Therapy"; 143 case ACTIVITY: return "Activity"; 144 default: return "?"; 145 } 146 } 147 148 149} 150