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 Thu, Sep 13, 2018 09:04-0400 for FHIR v3.5.0 033 034 035import org.hl7.fhir.exceptions.FHIRException; 036 037public enum RequestResourceTypes { 038 039 /** 040 * 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). 041 */ 042 APPOINTMENT, 043 /** 044 * A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection. 045 */ 046 APPOINTMENTRESPONSE, 047 /** 048 * Healthcare plan for patient or group. 049 */ 050 CAREPLAN, 051 /** 052 * Claim, Pre-determination or Pre-authorization. 053 */ 054 CLAIM, 055 /** 056 * A request for information to be sent to a receiver. 057 */ 058 COMMUNICATIONREQUEST, 059 /** 060 * Legal Agreement. 061 */ 062 CONTRACT, 063 /** 064 * Medical device request. 065 */ 066 DEVICEREQUEST, 067 /** 068 * Enrollment request. 069 */ 070 ENROLLMENTREQUEST, 071 /** 072 * Guidance or advice relating to an immunization. 073 */ 074 IMMUNIZATIONRECOMMENDATION, 075 /** 076 * Ordering of medication for patient or group. 077 */ 078 MEDICATIONREQUEST, 079 /** 080 * Diet, formula or nutritional supplement request. 081 */ 082 NUTRITIONORDER, 083 /** 084 * A record of a request for service such as diagnostic investigations, treatments, or operations to be performed. 085 */ 086 SERVICEREQUEST, 087 /** 088 * Request for a medication, substance or device. 089 */ 090 SUPPLYREQUEST, 091 /** 092 * A task to be performed. 093 */ 094 TASK, 095 /** 096 * Prescription for vision correction products for a patient. 097 */ 098 VISIONPRESCRIPTION, 099 /** 100 * added to help the parsers 101 */ 102 NULL; 103 public static RequestResourceTypes fromCode(String codeString) throws FHIRException { 104 if (codeString == null || "".equals(codeString)) 105 return null; 106 if ("Appointment".equals(codeString)) 107 return APPOINTMENT; 108 if ("AppointmentResponse".equals(codeString)) 109 return APPOINTMENTRESPONSE; 110 if ("CarePlan".equals(codeString)) 111 return CAREPLAN; 112 if ("Claim".equals(codeString)) 113 return CLAIM; 114 if ("CommunicationRequest".equals(codeString)) 115 return COMMUNICATIONREQUEST; 116 if ("Contract".equals(codeString)) 117 return CONTRACT; 118 if ("DeviceRequest".equals(codeString)) 119 return DEVICEREQUEST; 120 if ("EnrollmentRequest".equals(codeString)) 121 return ENROLLMENTREQUEST; 122 if ("ImmunizationRecommendation".equals(codeString)) 123 return IMMUNIZATIONRECOMMENDATION; 124 if ("MedicationRequest".equals(codeString)) 125 return MEDICATIONREQUEST; 126 if ("NutritionOrder".equals(codeString)) 127 return NUTRITIONORDER; 128 if ("ServiceRequest".equals(codeString)) 129 return SERVICEREQUEST; 130 if ("SupplyRequest".equals(codeString)) 131 return SUPPLYREQUEST; 132 if ("Task".equals(codeString)) 133 return TASK; 134 if ("VisionPrescription".equals(codeString)) 135 return VISIONPRESCRIPTION; 136 throw new FHIRException("Unknown RequestResourceTypes code '"+codeString+"'"); 137 } 138 public String toCode() { 139 switch (this) { 140 case APPOINTMENT: return "Appointment"; 141 case APPOINTMENTRESPONSE: return "AppointmentResponse"; 142 case CAREPLAN: return "CarePlan"; 143 case CLAIM: return "Claim"; 144 case COMMUNICATIONREQUEST: return "CommunicationRequest"; 145 case CONTRACT: return "Contract"; 146 case DEVICEREQUEST: return "DeviceRequest"; 147 case ENROLLMENTREQUEST: return "EnrollmentRequest"; 148 case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation"; 149 case MEDICATIONREQUEST: return "MedicationRequest"; 150 case NUTRITIONORDER: return "NutritionOrder"; 151 case SERVICEREQUEST: return "ServiceRequest"; 152 case SUPPLYREQUEST: return "SupplyRequest"; 153 case TASK: return "Task"; 154 case VISIONPRESCRIPTION: return "VisionPrescription"; 155 default: return "?"; 156 } 157 } 158 public String getSystem() { 159 return "http://hl7.org/fhir/request-resource-types"; 160 } 161 public String getDefinition() { 162 switch (this) { 163 case APPOINTMENT: 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)."; 164 case APPOINTMENTRESPONSE: return "A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection."; 165 case CAREPLAN: return "Healthcare plan for patient or group."; 166 case CLAIM: return "Claim, Pre-determination or Pre-authorization."; 167 case COMMUNICATIONREQUEST: return "A request for information to be sent to a receiver."; 168 case CONTRACT: return "Legal Agreement."; 169 case DEVICEREQUEST: return "Medical device request."; 170 case ENROLLMENTREQUEST: return "Enrollment request."; 171 case IMMUNIZATIONRECOMMENDATION: return "Guidance or advice relating to an immunization."; 172 case MEDICATIONREQUEST: return "Ordering of medication for patient or group."; 173 case NUTRITIONORDER: return "Diet, formula or nutritional supplement request."; 174 case SERVICEREQUEST: return "A record of a request for service such as diagnostic investigations, treatments, or operations to be performed."; 175 case SUPPLYREQUEST: return "Request for a medication, substance or device."; 176 case TASK: return "A task to be performed."; 177 case VISIONPRESCRIPTION: return "Prescription for vision correction products for a patient."; 178 default: return "?"; 179 } 180 } 181 public String getDisplay() { 182 switch (this) { 183 case APPOINTMENT: return "Appointment"; 184 case APPOINTMENTRESPONSE: return "AppointmentResponse"; 185 case CAREPLAN: return "CarePlan"; 186 case CLAIM: return "Claim"; 187 case COMMUNICATIONREQUEST: return "CommunicationRequest"; 188 case CONTRACT: return "Contract"; 189 case DEVICEREQUEST: return "DeviceRequest"; 190 case ENROLLMENTREQUEST: return "EnrollmentRequest"; 191 case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation"; 192 case MEDICATIONREQUEST: return "MedicationRequest"; 193 case NUTRITIONORDER: return "NutritionOrder"; 194 case SERVICEREQUEST: return "ServiceRequest"; 195 case SUPPLYREQUEST: return "SupplyRequest"; 196 case TASK: return "Task"; 197 case VISIONPRESCRIPTION: return "VisionPrescription"; 198 default: return "?"; 199 } 200 } 201 202 203} 204