001package org.hl7.fhir.r4.model.codesystems; 002 003 004 005 006/* 007 Copyright (c) 2011+, HL7, Inc. 008 All rights reserved. 009 010 Redistribution and use in source and binary forms, with or without modification, 011 are permitted provided that the following conditions are met: 012 013 * Redistributions of source code must retain the above copyright notice, this 014 list of conditions and the following disclaimer. 015 * Redistributions in binary form must reproduce the above copyright notice, 016 this list of conditions and the following disclaimer in the documentation 017 and/or other materials provided with the distribution. 018 * Neither the name of HL7 nor the names of its contributors may be used to 019 endorse or promote products derived from this software without specific 020 prior written permission. 021 022 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 023 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 024 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 025 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 026 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 027 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 028 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 029 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 030 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 031 POSSIBILITY OF SUCH DAMAGE. 032 033*/ 034 035// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0 036 037 038import org.hl7.fhir.exceptions.FHIRException; 039 040public enum V3ObservationCategory { 041 042 /** 043 * 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. 044 */ 045 EXAM, 046 /** 047 * Observations generated by imaging. The scope includes observations, plain x-ray, ultrasound, CT, MRI, angiography, echocardiography, nuclear medicine. 048 */ 049 IMAGING, 050 /** 051 * 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. 052 */ 053 LABORATORY, 054 /** 055 * Observations generated by other procedures. This category includes observations resulting from interventional and non-interventional procedures excluding lab 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. 056 */ 057 PROCEDURE, 058 /** 059 * The 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. 060 */ 061 SOCIALHISTORY, 062 /** 063 * Assessment tool/survey instrument observations (e.g. Apgar Scores, Montreal Cognitive Assessment (MoCA)) 064 */ 065 SURVEY, 066 /** 067 * Observations generated by non-interventional treatment protocols (e.g. occupational, physical, radiation, nutritional and medication therapy) 068 */ 069 THERAPY, 070 /** 071 * Clinical observations measure the body's basic functions such as such as blood pressure, heart rate, respiratory rate, height, weight, body mass index, head circumference, pulse oximetry, temperature, and body surface area. 072 */ 073 VITALSIGNS, 074 /** 075 * added to help the parsers 076 */ 077 NULL; 078 public static V3ObservationCategory fromCode(String codeString) throws FHIRException { 079 if (codeString == null || "".equals(codeString)) 080 return null; 081 if ("exam".equals(codeString)) 082 return EXAM; 083 if ("imaging".equals(codeString)) 084 return IMAGING; 085 if ("laboratory".equals(codeString)) 086 return LABORATORY; 087 if ("procedure".equals(codeString)) 088 return PROCEDURE; 089 if ("social-history".equals(codeString)) 090 return SOCIALHISTORY; 091 if ("survey".equals(codeString)) 092 return SURVEY; 093 if ("therapy".equals(codeString)) 094 return THERAPY; 095 if ("vital-signs".equals(codeString)) 096 return VITALSIGNS; 097 throw new FHIRException("Unknown V3ObservationCategory code '"+codeString+"'"); 098 } 099 public String toCode() { 100 switch (this) { 101 case EXAM: return "exam"; 102 case IMAGING: return "imaging"; 103 case LABORATORY: return "laboratory"; 104 case PROCEDURE: return "procedure"; 105 case SOCIALHISTORY: return "social-history"; 106 case SURVEY: return "survey"; 107 case THERAPY: return "therapy"; 108 case VITALSIGNS: return "vital-signs"; 109 default: return "?"; 110 } 111 } 112 public String getSystem() { 113 return "http://terminology.hl7.org/CodeSystem/v3-ObservationCategory"; 114 } 115 public String getDefinition() { 116 switch (this) { 117 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."; 118 case IMAGING: return "Observations generated by imaging. The scope includes observations, plain x-ray, ultrasound, CT, MRI, angiography, echocardiography, nuclear medicine."; 119 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."; 120 case PROCEDURE: return "Observations generated by other procedures. This category includes observations resulting from interventional and non-interventional procedures excluding lab 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."; 121 case SOCIALHISTORY: return "The 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 SURVEY: return "Assessment tool/survey instrument observations (e.g. Apgar Scores, Montreal Cognitive Assessment (MoCA))"; 123 case THERAPY: return "Observations generated by non-interventional treatment protocols (e.g. occupational, physical, radiation, nutritional and medication therapy)"; 124 case VITALSIGNS: return "Clinical observations measure the body's basic functions such as such as blood pressure, heart rate, respiratory rate, height, weight, body mass index, head circumference, pulse oximetry, temperature, and body surface area."; 125 default: return "?"; 126 } 127 } 128 public String getDisplay() { 129 switch (this) { 130 case EXAM: return "Exam"; 131 case IMAGING: return "Imaging"; 132 case LABORATORY: return "Laboratory"; 133 case PROCEDURE: return "Procedure"; 134 case SOCIALHISTORY: return "Social History"; 135 case SURVEY: return "Survey"; 136 case THERAPY: return "Therapy"; 137 case VITALSIGNS: return "Vital Signs"; 138 default: return "?"; 139 } 140 } 141 142 143}