001package org.hl7.fhir.dstu3.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 Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0 036 037 038import org.hl7.fhir.exceptions.FHIRException; 039 040public enum ClaimInformationcategory { 041 042 /** 043 * Codes conveying additional situation and condition information. 044 */ 045 INFO, 046 /** 047 * Discharge status and discharge to locations. 048 */ 049 DISCHARGE, 050 /** 051 * Period, start or end dates of aspects of the Condition. 052 */ 053 ONSET, 054 /** 055 * Nature and date of the related event eg. Last exam, service, Xray etc. 056 */ 057 RELATED, 058 /** 059 * Insurance policy exceptions. 060 */ 061 EXCEPTION, 062 /** 063 * Materials being forwarded, eg. Models, molds, images, documents. 064 */ 065 MATERIAL, 066 /** 067 * Materials attached such as images, documents and resources. 068 */ 069 ATTACHMENT, 070 /** 071 * Teeth which are missing for any reason, for example: prior extraction, never developed. 072 */ 073 MISSINGTOOTH, 074 /** 075 * The type of prosthesis and date of supply if a previously supplied prosthesis. 076 */ 077 PROSTHESIS, 078 /** 079 * Other information identified by the type.system. 080 */ 081 OTHER, 082 /** 083 * added to help the parsers 084 */ 085 NULL; 086 public static ClaimInformationcategory fromCode(String codeString) throws FHIRException { 087 if (codeString == null || "".equals(codeString)) 088 return null; 089 if ("info".equals(codeString)) 090 return INFO; 091 if ("discharge".equals(codeString)) 092 return DISCHARGE; 093 if ("onset".equals(codeString)) 094 return ONSET; 095 if ("related".equals(codeString)) 096 return RELATED; 097 if ("exception".equals(codeString)) 098 return EXCEPTION; 099 if ("material".equals(codeString)) 100 return MATERIAL; 101 if ("attachment".equals(codeString)) 102 return ATTACHMENT; 103 if ("missingtooth".equals(codeString)) 104 return MISSINGTOOTH; 105 if ("prosthesis".equals(codeString)) 106 return PROSTHESIS; 107 if ("other".equals(codeString)) 108 return OTHER; 109 throw new FHIRException("Unknown ClaimInformationcategory code '"+codeString+"'"); 110 } 111 public String toCode() { 112 switch (this) { 113 case INFO: return "info"; 114 case DISCHARGE: return "discharge"; 115 case ONSET: return "onset"; 116 case RELATED: return "related"; 117 case EXCEPTION: return "exception"; 118 case MATERIAL: return "material"; 119 case ATTACHMENT: return "attachment"; 120 case MISSINGTOOTH: return "missingtooth"; 121 case PROSTHESIS: return "prosthesis"; 122 case OTHER: return "other"; 123 case NULL: return null; 124 default: return "?"; 125 } 126 } 127 public String getSystem() { 128 return "http://hl7.org/fhir/claiminformationcategory"; 129 } 130 public String getDefinition() { 131 switch (this) { 132 case INFO: return "Codes conveying additional situation and condition information."; 133 case DISCHARGE: return "Discharge status and discharge to locations."; 134 case ONSET: return "Period, start or end dates of aspects of the Condition."; 135 case RELATED: return "Nature and date of the related event eg. Last exam, service, Xray etc."; 136 case EXCEPTION: return "Insurance policy exceptions."; 137 case MATERIAL: return "Materials being forwarded, eg. Models, molds, images, documents."; 138 case ATTACHMENT: return "Materials attached such as images, documents and resources."; 139 case MISSINGTOOTH: return "Teeth which are missing for any reason, for example: prior extraction, never developed."; 140 case PROSTHESIS: return "The type of prosthesis and date of supply if a previously supplied prosthesis."; 141 case OTHER: return "Other information identified by the type.system."; 142 case NULL: return null; 143 default: return "?"; 144 } 145 } 146 public String getDisplay() { 147 switch (this) { 148 case INFO: return "Information"; 149 case DISCHARGE: return "Discharge"; 150 case ONSET: return "Onset"; 151 case RELATED: return "Related Services"; 152 case EXCEPTION: return "Exception"; 153 case MATERIAL: return "Materials Forwarded"; 154 case ATTACHMENT: return "Attachment"; 155 case MISSINGTOOTH: return "Missing Tooth"; 156 case PROSTHESIS: return "Prosthesis"; 157 case OTHER: return "Other"; 158 case NULL: return null; 159 default: return "?"; 160 } 161 } 162 163 164}