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 BasicResourceType { 058 059 /** 060 * An assertion of permission for an activity or set of activities to occur, possibly subject to particular limitations; e.g. surgical consent, information disclosure consent, etc. 061 */ 062 CONSENT, 063 /** 064 * A request that care of a particular type be provided to a patient. Could involve the transfer of care, a consult, etc. 065 */ 066 REFERRAL, 067 /** 068 * An undesired reaction caused by exposure to some agent (e.g. a medication, immunization, food, or environmental agent). 069 */ 070 ADVEVENT, 071 /** 072 * A request that a time be scheduled for a type of service for a specified patient, potentially subject to other constraints 073 */ 074 APTMTREQ, 075 /** 076 * The transition of a patient or set of material from one location to another 077 */ 078 TRANSFER, 079 /** 080 * The specification of a set of food and/or other nutritional material to be delivered to a patient. 081 */ 082 DIET, 083 /** 084 * An occurrence of a non-care-related event in the healthcare domain, such as approvals, reviews, etc. 085 */ 086 ADMINACT, 087 /** 088 * Record of a situation where a subject was exposed to a substance. Usually of interest to public health. 089 */ 090 EXPOSURE, 091 /** 092 * A formalized inquiry into the circumstances surrounding a particular unplanned event or potential event for the purposes of identifying possible causes and contributing factors for the event 093 */ 094 INVESTIGATION, 095 /** 096 * A financial instrument used to track costs, charges or other amounts. 097 */ 098 ACCOUNT, 099 /** 100 * A request for payment for goods and/or services. Includes the idea of a healthcare insurance claim. 101 */ 102 INVOICE, 103 /** 104 * The determination of what will be paid against a particular invoice based on coverage, plan rules, etc. 105 */ 106 ADJUDICAT, 107 /** 108 * A request for a pre-determination of the cost that would be paid under an insurance plan for a hypothetical claim for goods or services 109 */ 110 PREDETREQ, 111 /** 112 * An adjudication of what would be paid under an insurance plan for a hypothetical claim for goods or services 113 */ 114 PREDETERMINE, 115 /** 116 * An investigation to determine information about a particular therapy or product 117 */ 118 STUDY, 119 /** 120 * A set of (possibly conditional) steps to be taken to achieve some aim. Includes study protocols, treatment protocols, emergency protocols, etc. 121 */ 122 PROTOCOL, 123 /** 124 * added to help the parsers 125 */ 126 NULL; 127 public static BasicResourceType fromCode(String codeString) throws FHIRException { 128 if (codeString == null || "".equals(codeString)) 129 return null; 130 if ("consent".equals(codeString)) 131 return CONSENT; 132 if ("referral".equals(codeString)) 133 return REFERRAL; 134 if ("advevent".equals(codeString)) 135 return ADVEVENT; 136 if ("aptmtreq".equals(codeString)) 137 return APTMTREQ; 138 if ("transfer".equals(codeString)) 139 return TRANSFER; 140 if ("diet".equals(codeString)) 141 return DIET; 142 if ("adminact".equals(codeString)) 143 return ADMINACT; 144 if ("exposure".equals(codeString)) 145 return EXPOSURE; 146 if ("investigation".equals(codeString)) 147 return INVESTIGATION; 148 if ("account".equals(codeString)) 149 return ACCOUNT; 150 if ("invoice".equals(codeString)) 151 return INVOICE; 152 if ("adjudicat".equals(codeString)) 153 return ADJUDICAT; 154 if ("predetreq".equals(codeString)) 155 return PREDETREQ; 156 if ("predetermine".equals(codeString)) 157 return PREDETERMINE; 158 if ("study".equals(codeString)) 159 return STUDY; 160 if ("protocol".equals(codeString)) 161 return PROTOCOL; 162 throw new FHIRException("Unknown BasicResourceType code '"+codeString+"'"); 163 } 164 public String toCode() { 165 switch (this) { 166 case CONSENT: return "consent"; 167 case REFERRAL: return "referral"; 168 case ADVEVENT: return "advevent"; 169 case APTMTREQ: return "aptmtreq"; 170 case TRANSFER: return "transfer"; 171 case DIET: return "diet"; 172 case ADMINACT: return "adminact"; 173 case EXPOSURE: return "exposure"; 174 case INVESTIGATION: return "investigation"; 175 case ACCOUNT: return "account"; 176 case INVOICE: return "invoice"; 177 case ADJUDICAT: return "adjudicat"; 178 case PREDETREQ: return "predetreq"; 179 case PREDETERMINE: return "predetermine"; 180 case STUDY: return "study"; 181 case PROTOCOL: return "protocol"; 182 default: return "?"; 183 } 184 } 185 public String getSystem() { 186 return "http://terminology.hl7.org/CodeSystem/basic-resource-type"; 187 } 188 public String getDefinition() { 189 switch (this) { 190 case CONSENT: return "An assertion of permission for an activity or set of activities to occur, possibly subject to particular limitations; e.g. surgical consent, information disclosure consent, etc."; 191 case REFERRAL: return "A request that care of a particular type be provided to a patient. Could involve the transfer of care, a consult, etc."; 192 case ADVEVENT: return "An undesired reaction caused by exposure to some agent (e.g. a medication, immunization, food, or environmental agent)."; 193 case APTMTREQ: return "A request that a time be scheduled for a type of service for a specified patient, potentially subject to other constraints"; 194 case TRANSFER: return "The transition of a patient or set of material from one location to another"; 195 case DIET: return "The specification of a set of food and/or other nutritional material to be delivered to a patient."; 196 case ADMINACT: return "An occurrence of a non-care-related event in the healthcare domain, such as approvals, reviews, etc."; 197 case EXPOSURE: return "Record of a situation where a subject was exposed to a substance. Usually of interest to public health."; 198 case INVESTIGATION: return "A formalized inquiry into the circumstances surrounding a particular unplanned event or potential event for the purposes of identifying possible causes and contributing factors for the event"; 199 case ACCOUNT: return "A financial instrument used to track costs, charges or other amounts."; 200 case INVOICE: return "A request for payment for goods and/or services. Includes the idea of a healthcare insurance claim."; 201 case ADJUDICAT: return "The determination of what will be paid against a particular invoice based on coverage, plan rules, etc."; 202 case PREDETREQ: return "A request for a pre-determination of the cost that would be paid under an insurance plan for a hypothetical claim for goods or services"; 203 case PREDETERMINE: return "An adjudication of what would be paid under an insurance plan for a hypothetical claim for goods or services"; 204 case STUDY: return "An investigation to determine information about a particular therapy or product"; 205 case PROTOCOL: return "A set of (possibly conditional) steps to be taken to achieve some aim. Includes study protocols, treatment protocols, emergency protocols, etc."; 206 default: return "?"; 207 } 208 } 209 public String getDisplay() { 210 switch (this) { 211 case CONSENT: return "Consent"; 212 case REFERRAL: return "Referral"; 213 case ADVEVENT: return "Adverse Event"; 214 case APTMTREQ: return "Appointment Request"; 215 case TRANSFER: return "Transfer"; 216 case DIET: return "Diet"; 217 case ADMINACT: return "Administrative Activity"; 218 case EXPOSURE: return "Exposure"; 219 case INVESTIGATION: return "Investigation"; 220 case ACCOUNT: return "Account"; 221 case INVOICE: return "Invoice"; 222 case ADJUDICAT: return "Invoice Adjudication"; 223 case PREDETREQ: return "Pre-determination Request"; 224 case PREDETERMINE: return "Predetermination"; 225 case STUDY: return "Study"; 226 case PROTOCOL: return "Protocol"; 227 default: return "?"; 228 } 229 } 230 231 232} 233