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