![](/hapi-fhir/images/logos/raccoon-forwards.png)
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 Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0 033 034import org.hl7.fhir.exceptions.FHIRException; 035 036public enum RequestResourceTypes { 037 038 /** 039 * A booking of a healthcare event among patient(s), practitioner(s), related 040 * person(s) and/or device(s) for a specific date/time. This may result in one 041 * or more Encounter(s). 042 */ 043 APPOINTMENT, 044 /** 045 * A reply to an appointment request for a patient and/or practitioner(s), such 046 * as a confirmation or rejection. 047 */ 048 APPOINTMENTRESPONSE, 049 /** 050 * Healthcare plan for patient or group. 051 */ 052 CAREPLAN, 053 /** 054 * Claim, Pre-determination or Pre-authorization. 055 */ 056 CLAIM, 057 /** 058 * A request for information to be sent to a receiver. 059 */ 060 COMMUNICATIONREQUEST, 061 /** 062 * Legal Agreement. 063 */ 064 CONTRACT, 065 /** 066 * Medical device request. 067 */ 068 DEVICEREQUEST, 069 /** 070 * Enrollment request. 071 */ 072 ENROLLMENTREQUEST, 073 /** 074 * Guidance or advice relating to an immunization. 075 */ 076 IMMUNIZATIONRECOMMENDATION, 077 /** 078 * Ordering of medication for patient or group. 079 */ 080 MEDICATIONREQUEST, 081 /** 082 * Diet, formula or nutritional supplement request. 083 */ 084 NUTRITIONORDER, 085 /** 086 * A record of a request for service such as diagnostic investigations, 087 * treatments, or operations to be performed. 088 */ 089 SERVICEREQUEST, 090 /** 091 * Request for a medication, substance or device. 092 */ 093 SUPPLYREQUEST, 094 /** 095 * A task to be performed. 096 */ 097 TASK, 098 /** 099 * Prescription for vision correction products for a patient. 100 */ 101 VISIONPRESCRIPTION, 102 /** 103 * added to help the parsers 104 */ 105 NULL; 106 107 public static RequestResourceTypes fromCode(String codeString) throws FHIRException { 108 if (codeString == null || "".equals(codeString)) 109 return null; 110 if ("Appointment".equals(codeString)) 111 return APPOINTMENT; 112 if ("AppointmentResponse".equals(codeString)) 113 return APPOINTMENTRESPONSE; 114 if ("CarePlan".equals(codeString)) 115 return CAREPLAN; 116 if ("Claim".equals(codeString)) 117 return CLAIM; 118 if ("CommunicationRequest".equals(codeString)) 119 return COMMUNICATIONREQUEST; 120 if ("Contract".equals(codeString)) 121 return CONTRACT; 122 if ("DeviceRequest".equals(codeString)) 123 return DEVICEREQUEST; 124 if ("EnrollmentRequest".equals(codeString)) 125 return ENROLLMENTREQUEST; 126 if ("ImmunizationRecommendation".equals(codeString)) 127 return IMMUNIZATIONRECOMMENDATION; 128 if ("MedicationRequest".equals(codeString)) 129 return MEDICATIONREQUEST; 130 if ("NutritionOrder".equals(codeString)) 131 return NUTRITIONORDER; 132 if ("ServiceRequest".equals(codeString)) 133 return SERVICEREQUEST; 134 if ("SupplyRequest".equals(codeString)) 135 return SUPPLYREQUEST; 136 if ("Task".equals(codeString)) 137 return TASK; 138 if ("VisionPrescription".equals(codeString)) 139 return VISIONPRESCRIPTION; 140 throw new FHIRException("Unknown RequestResourceTypes code '" + codeString + "'"); 141 } 142 143 public String toCode() { 144 switch (this) { 145 case APPOINTMENT: 146 return "Appointment"; 147 case APPOINTMENTRESPONSE: 148 return "AppointmentResponse"; 149 case CAREPLAN: 150 return "CarePlan"; 151 case CLAIM: 152 return "Claim"; 153 case COMMUNICATIONREQUEST: 154 return "CommunicationRequest"; 155 case CONTRACT: 156 return "Contract"; 157 case DEVICEREQUEST: 158 return "DeviceRequest"; 159 case ENROLLMENTREQUEST: 160 return "EnrollmentRequest"; 161 case IMMUNIZATIONRECOMMENDATION: 162 return "ImmunizationRecommendation"; 163 case MEDICATIONREQUEST: 164 return "MedicationRequest"; 165 case NUTRITIONORDER: 166 return "NutritionOrder"; 167 case SERVICEREQUEST: 168 return "ServiceRequest"; 169 case SUPPLYREQUEST: 170 return "SupplyRequest"; 171 case TASK: 172 return "Task"; 173 case VISIONPRESCRIPTION: 174 return "VisionPrescription"; 175 case NULL: 176 return null; 177 default: 178 return "?"; 179 } 180 } 181 182 public String getSystem() { 183 return "http://hl7.org/fhir/request-resource-types"; 184 } 185 186 public String getDefinition() { 187 switch (this) { 188 case APPOINTMENT: 189 return "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)."; 190 case APPOINTMENTRESPONSE: 191 return "A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection."; 192 case CAREPLAN: 193 return "Healthcare plan for patient or group."; 194 case CLAIM: 195 return "Claim, Pre-determination or Pre-authorization."; 196 case COMMUNICATIONREQUEST: 197 return "A request for information to be sent to a receiver."; 198 case CONTRACT: 199 return "Legal Agreement."; 200 case DEVICEREQUEST: 201 return "Medical device request."; 202 case ENROLLMENTREQUEST: 203 return "Enrollment request."; 204 case IMMUNIZATIONRECOMMENDATION: 205 return "Guidance or advice relating to an immunization."; 206 case MEDICATIONREQUEST: 207 return "Ordering of medication for patient or group."; 208 case NUTRITIONORDER: 209 return "Diet, formula or nutritional supplement request."; 210 case SERVICEREQUEST: 211 return "A record of a request for service such as diagnostic investigations, treatments, or operations to be performed."; 212 case SUPPLYREQUEST: 213 return "Request for a medication, substance or device."; 214 case TASK: 215 return "A task to be performed."; 216 case VISIONPRESCRIPTION: 217 return "Prescription for vision correction products for a patient."; 218 case NULL: 219 return null; 220 default: 221 return "?"; 222 } 223 } 224 225 public String getDisplay() { 226 switch (this) { 227 case APPOINTMENT: 228 return "Appointment"; 229 case APPOINTMENTRESPONSE: 230 return "AppointmentResponse"; 231 case CAREPLAN: 232 return "CarePlan"; 233 case CLAIM: 234 return "Claim"; 235 case COMMUNICATIONREQUEST: 236 return "CommunicationRequest"; 237 case CONTRACT: 238 return "Contract"; 239 case DEVICEREQUEST: 240 return "DeviceRequest"; 241 case ENROLLMENTREQUEST: 242 return "EnrollmentRequest"; 243 case IMMUNIZATIONRECOMMENDATION: 244 return "ImmunizationRecommendation"; 245 case MEDICATIONREQUEST: 246 return "MedicationRequest"; 247 case NUTRITIONORDER: 248 return "NutritionOrder"; 249 case SERVICEREQUEST: 250 return "ServiceRequest"; 251 case SUPPLYREQUEST: 252 return "SupplyRequest"; 253 case TASK: 254 return "Task"; 255 case VISIONPRESCRIPTION: 256 return "VisionPrescription"; 257 case NULL: 258 return null; 259 default: 260 return "?"; 261 } 262 } 263 264}