001package org.hl7.fhir.r5.model.codesystems; 002 003/* 004 * #%L 005 * org.hl7.fhir.r5 006 * %% 007 * Copyright (C) 2014 - 2019 Health Level 7 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023/* 024 Copyright (c) 2011+, HL7, Inc. 025 All rights reserved. 026 027 Redistribution and use in source and binary forms, with or without modification, 028 are permitted provided that the following conditions are met: 029 030 * Redistributions of source code must retain the above copyright notice, this 031 list of conditions and the following disclaimer. 032 * Redistributions in binary form must reproduce the above copyright notice, 033 this list of conditions and the following disclaimer in the documentation 034 and/or other materials provided with the distribution. 035 * Neither the name of HL7 nor the names of its contributors may be used to 036 endorse or promote products derived from this software without specific 037 prior written permission. 038 039 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 040 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 041 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 042 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 043 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 044 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 045 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 046 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 047 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 048 POSSIBILITY OF SUCH DAMAGE. 049 050*/ 051 052// Generated on Thu, Oct 17, 2019 09:42+1100 for FHIR v4.1.0 053 054 055import org.hl7.fhir.exceptions.FHIRException; 056 057public enum ClaimInformationcategory { 058 059 /** 060 * Codes conveying additional situation and condition information. 061 */ 062 INFO, 063 /** 064 * Discharge status and discharge to locations. 065 */ 066 DISCHARGE, 067 /** 068 * Period, start or end dates of aspects of the Condition. 069 */ 070 ONSET, 071 /** 072 * Nature and date of the related event e.g. Last exam, service, X-ray etc. 073 */ 074 RELATED, 075 /** 076 * Insurance policy exceptions. 077 */ 078 EXCEPTION, 079 /** 080 * Materials being forwarded, e.g. Models, molds, images, documents. 081 */ 082 MATERIAL, 083 /** 084 * Materials attached such as images, documents and resources. 085 */ 086 ATTACHMENT, 087 /** 088 * Teeth which are missing for any reason, for example: prior extraction, never developed. 089 */ 090 MISSINGTOOTH, 091 /** 092 * The type of prosthesis and date of supply if a previously supplied prosthesis. 093 */ 094 PROSTHESIS, 095 /** 096 * Other information identified by the type.system. 097 */ 098 OTHER, 099 /** 100 * An indication that the patient was hospitalized, the period if known otherwise a Yes/No (boolean). 101 */ 102 HOSPITALIZED, 103 /** 104 * An indication that the patient was unable to work, the period if known otherwise a Yes/No (boolean). 105 */ 106 EMPLOYMENTIMPACTED, 107 /** 108 * The external cause of an illness or injury. 109 */ 110 EXTERNALCAUSE, 111 /** 112 * The reason for the patient visit. 113 */ 114 PATIENTREASONFORVISIT, 115 /** 116 * added to help the parsers 117 */ 118 NULL; 119 public static ClaimInformationcategory fromCode(String codeString) throws FHIRException { 120 if (codeString == null || "".equals(codeString)) 121 return null; 122 if ("info".equals(codeString)) 123 return INFO; 124 if ("discharge".equals(codeString)) 125 return DISCHARGE; 126 if ("onset".equals(codeString)) 127 return ONSET; 128 if ("related".equals(codeString)) 129 return RELATED; 130 if ("exception".equals(codeString)) 131 return EXCEPTION; 132 if ("material".equals(codeString)) 133 return MATERIAL; 134 if ("attachment".equals(codeString)) 135 return ATTACHMENT; 136 if ("missingtooth".equals(codeString)) 137 return MISSINGTOOTH; 138 if ("prosthesis".equals(codeString)) 139 return PROSTHESIS; 140 if ("other".equals(codeString)) 141 return OTHER; 142 if ("hospitalized".equals(codeString)) 143 return HOSPITALIZED; 144 if ("employmentimpacted".equals(codeString)) 145 return EMPLOYMENTIMPACTED; 146 if ("externalcause".equals(codeString)) 147 return EXTERNALCAUSE; 148 if ("patientreasonforvisit".equals(codeString)) 149 return PATIENTREASONFORVISIT; 150 throw new FHIRException("Unknown ClaimInformationcategory code '"+codeString+"'"); 151 } 152 public String toCode() { 153 switch (this) { 154 case INFO: return "info"; 155 case DISCHARGE: return "discharge"; 156 case ONSET: return "onset"; 157 case RELATED: return "related"; 158 case EXCEPTION: return "exception"; 159 case MATERIAL: return "material"; 160 case ATTACHMENT: return "attachment"; 161 case MISSINGTOOTH: return "missingtooth"; 162 case PROSTHESIS: return "prosthesis"; 163 case OTHER: return "other"; 164 case HOSPITALIZED: return "hospitalized"; 165 case EMPLOYMENTIMPACTED: return "employmentimpacted"; 166 case EXTERNALCAUSE: return "externalcause"; 167 case PATIENTREASONFORVISIT: return "patientreasonforvisit"; 168 default: return "?"; 169 } 170 } 171 public String getSystem() { 172 return "http://terminology.hl7.org/CodeSystem/claiminformationcategory"; 173 } 174 public String getDefinition() { 175 switch (this) { 176 case INFO: return "Codes conveying additional situation and condition information."; 177 case DISCHARGE: return "Discharge status and discharge to locations."; 178 case ONSET: return "Period, start or end dates of aspects of the Condition."; 179 case RELATED: return "Nature and date of the related event e.g. Last exam, service, X-ray etc."; 180 case EXCEPTION: return "Insurance policy exceptions."; 181 case MATERIAL: return "Materials being forwarded, e.g. Models, molds, images, documents."; 182 case ATTACHMENT: return "Materials attached such as images, documents and resources."; 183 case MISSINGTOOTH: return "Teeth which are missing for any reason, for example: prior extraction, never developed."; 184 case PROSTHESIS: return "The type of prosthesis and date of supply if a previously supplied prosthesis."; 185 case OTHER: return "Other information identified by the type.system."; 186 case HOSPITALIZED: return "An indication that the patient was hospitalized, the period if known otherwise a Yes/No (boolean)."; 187 case EMPLOYMENTIMPACTED: return "An indication that the patient was unable to work, the period if known otherwise a Yes/No (boolean)."; 188 case EXTERNALCAUSE: return "The external cause of an illness or injury."; 189 case PATIENTREASONFORVISIT: return "The reason for the patient visit."; 190 default: return "?"; 191 } 192 } 193 public String getDisplay() { 194 switch (this) { 195 case INFO: return "Information"; 196 case DISCHARGE: return "Discharge"; 197 case ONSET: return "Onset"; 198 case RELATED: return "Related Services"; 199 case EXCEPTION: return "Exception"; 200 case MATERIAL: return "Materials Forwarded"; 201 case ATTACHMENT: return "Attachment"; 202 case MISSINGTOOTH: return "Missing Tooth"; 203 case PROSTHESIS: return "Prosthesis"; 204 case OTHER: return "Other"; 205 case HOSPITALIZED: return "Hospitalized"; 206 case EMPLOYMENTIMPACTED: return "EmploymentImpacted"; 207 case EXTERNALCAUSE: return "External Caause"; 208 case PATIENTREASONFORVISIT: return "Patient Reason for Visit"; 209 default: return "?"; 210 } 211 } 212 213 214} 215