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