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 EventResourceTypes {
058
059        /**
060         * Item containing charge code(s) associated with the provision of healthcare provider products.
061         */
062        CHARGEITEM, 
063        /**
064         * Remittance resource.
065         */
066        CLAIMRESPONSE, 
067        /**
068         * A clinical assessment performed when planning treatments and management strategies for a patient.
069         */
070        CLINICALIMPRESSION, 
071        /**
072         * A record of information transmitted from a sender to a receiver.
073         */
074        COMMUNICATION, 
075        /**
076         * A set of resources composed into a single coherent clinical statement with clinical attestation.
077         */
078        COMPOSITION, 
079        /**
080         * Detailed information about conditions, problems or diagnoses.
081         */
082        CONDITION, 
083        /**
084         * A healthcare consumer's policy choices to permits or denies recipients or roles to perform actions for specific purposes and periods of time.
085         */
086        CONSENT, 
087        /**
088         * Insurance or medical plan or a payment agreement.
089         */
090        COVERAGE, 
091        /**
092         * Record of use of a device.
093         */
094        DEVICEUSESTATEMENT, 
095        /**
096         * A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports.
097         */
098        DIAGNOSTICREPORT, 
099        /**
100         * A list that defines a set of documents.
101         */
102        DOCUMENTMANIFEST, 
103        /**
104         * A reference to a document.
105         */
106        DOCUMENTREFERENCE, 
107        /**
108         * An interaction during which services are provided to the patient.
109         */
110        ENCOUNTER, 
111        /**
112         * EnrollmentResponse resource.
113         */
114        ENROLLMENTRESPONSE, 
115        /**
116         * An association of a Patient with an Organization and  Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility.
117         */
118        EPISODEOFCARE, 
119        /**
120         * Explanation of Benefit resource.
121         */
122        EXPLANATIONOFBENEFIT, 
123        /**
124         * Information about patient's relatives, relevant for patient.
125         */
126        FAMILYMEMBERHISTORY, 
127        /**
128         * The formal response to a guidance request.
129         */
130        GUIDANCERESPONSE, 
131        /**
132         * A set of images produced in single study (one or more series of references images).
133         */
134        IMAGINGSTUDY, 
135        /**
136         * Immunization event information.
137         */
138        IMMUNIZATION, 
139        /**
140         * Results of a measure evaluation.
141         */
142        MEASUREREPORT, 
143        /**
144         * A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.
145         */
146        MEDIA, 
147        /**
148         * Administration of medication to a patient.
149         */
150        MEDICATIONADMINISTRATION, 
151        /**
152         * Dispensing a medication to a named patient.
153         */
154        MEDICATIONDISPENSE, 
155        /**
156         * Record of medication being taken by a patient.
157         */
158        MEDICATIONUSAGE, 
159        /**
160         * Measurements and simple assertions.
161         */
162        OBSERVATION, 
163        /**
164         * PaymentNotice request.
165         */
166        PAYMENTNOTICE, 
167        /**
168         * PaymentReconciliation resource.
169         */
170        PAYMENTRECONCILIATION, 
171        /**
172         * An action that is being or was performed on a patient.
173         */
174        PROCEDURE, 
175        /**
176         * ProcessResponse resource.
177         */
178        PROCESSRESPONSE, 
179        /**
180         * A structured set of questions and their answers.
181         */
182        QUESTIONNAIRERESPONSE, 
183        /**
184         * Potential outcomes for a subject with likelihood.
185         */
186        RISKASSESSMENT, 
187        /**
188         * Delivery of bulk Supplies.
189         */
190        SUPPLYDELIVERY, 
191        /**
192         * A task to be performed.
193         */
194        TASK, 
195        /**
196         * added to help the parsers
197         */
198        NULL;
199        public static EventResourceTypes fromCode(String codeString) throws FHIRException {
200            if (codeString == null || "".equals(codeString))
201                return null;
202        if ("ChargeItem".equals(codeString))
203          return CHARGEITEM;
204        if ("ClaimResponse".equals(codeString))
205          return CLAIMRESPONSE;
206        if ("ClinicalImpression".equals(codeString))
207          return CLINICALIMPRESSION;
208        if ("Communication".equals(codeString))
209          return COMMUNICATION;
210        if ("Composition".equals(codeString))
211          return COMPOSITION;
212        if ("Condition".equals(codeString))
213          return CONDITION;
214        if ("Consent".equals(codeString))
215          return CONSENT;
216        if ("Coverage".equals(codeString))
217          return COVERAGE;
218        if ("DeviceUseStatement".equals(codeString))
219          return DEVICEUSESTATEMENT;
220        if ("DiagnosticReport".equals(codeString))
221          return DIAGNOSTICREPORT;
222        if ("DocumentManifest".equals(codeString))
223          return DOCUMENTMANIFEST;
224        if ("DocumentReference".equals(codeString))
225          return DOCUMENTREFERENCE;
226        if ("Encounter".equals(codeString))
227          return ENCOUNTER;
228        if ("EnrollmentResponse".equals(codeString))
229          return ENROLLMENTRESPONSE;
230        if ("EpisodeOfCare".equals(codeString))
231          return EPISODEOFCARE;
232        if ("ExplanationOfBenefit".equals(codeString))
233          return EXPLANATIONOFBENEFIT;
234        if ("FamilyMemberHistory".equals(codeString))
235          return FAMILYMEMBERHISTORY;
236        if ("GuidanceResponse".equals(codeString))
237          return GUIDANCERESPONSE;
238        if ("ImagingStudy".equals(codeString))
239          return IMAGINGSTUDY;
240        if ("Immunization".equals(codeString))
241          return IMMUNIZATION;
242        if ("MeasureReport".equals(codeString))
243          return MEASUREREPORT;
244        if ("Media".equals(codeString))
245          return MEDIA;
246        if ("MedicationAdministration".equals(codeString))
247          return MEDICATIONADMINISTRATION;
248        if ("MedicationDispense".equals(codeString))
249          return MEDICATIONDISPENSE;
250        if ("MedicationUsage".equals(codeString))
251          return MEDICATIONUSAGE;
252        if ("Observation".equals(codeString))
253          return OBSERVATION;
254        if ("PaymentNotice".equals(codeString))
255          return PAYMENTNOTICE;
256        if ("PaymentReconciliation".equals(codeString))
257          return PAYMENTRECONCILIATION;
258        if ("Procedure".equals(codeString))
259          return PROCEDURE;
260        if ("ProcessResponse".equals(codeString))
261          return PROCESSRESPONSE;
262        if ("QuestionnaireResponse".equals(codeString))
263          return QUESTIONNAIRERESPONSE;
264        if ("RiskAssessment".equals(codeString))
265          return RISKASSESSMENT;
266        if ("SupplyDelivery".equals(codeString))
267          return SUPPLYDELIVERY;
268        if ("Task".equals(codeString))
269          return TASK;
270        throw new FHIRException("Unknown EventResourceTypes code '"+codeString+"'");
271        }
272        public String toCode() {
273          switch (this) {
274            case CHARGEITEM: return "ChargeItem";
275            case CLAIMRESPONSE: return "ClaimResponse";
276            case CLINICALIMPRESSION: return "ClinicalImpression";
277            case COMMUNICATION: return "Communication";
278            case COMPOSITION: return "Composition";
279            case CONDITION: return "Condition";
280            case CONSENT: return "Consent";
281            case COVERAGE: return "Coverage";
282            case DEVICEUSESTATEMENT: return "DeviceUseStatement";
283            case DIAGNOSTICREPORT: return "DiagnosticReport";
284            case DOCUMENTMANIFEST: return "DocumentManifest";
285            case DOCUMENTREFERENCE: return "DocumentReference";
286            case ENCOUNTER: return "Encounter";
287            case ENROLLMENTRESPONSE: return "EnrollmentResponse";
288            case EPISODEOFCARE: return "EpisodeOfCare";
289            case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit";
290            case FAMILYMEMBERHISTORY: return "FamilyMemberHistory";
291            case GUIDANCERESPONSE: return "GuidanceResponse";
292            case IMAGINGSTUDY: return "ImagingStudy";
293            case IMMUNIZATION: return "Immunization";
294            case MEASUREREPORT: return "MeasureReport";
295            case MEDIA: return "Media";
296            case MEDICATIONADMINISTRATION: return "MedicationAdministration";
297            case MEDICATIONDISPENSE: return "MedicationDispense";
298            case MEDICATIONUSAGE: return "MedicationUsage";
299            case OBSERVATION: return "Observation";
300            case PAYMENTNOTICE: return "PaymentNotice";
301            case PAYMENTRECONCILIATION: return "PaymentReconciliation";
302            case PROCEDURE: return "Procedure";
303            case PROCESSRESPONSE: return "ProcessResponse";
304            case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse";
305            case RISKASSESSMENT: return "RiskAssessment";
306            case SUPPLYDELIVERY: return "SupplyDelivery";
307            case TASK: return "Task";
308            default: return "?";
309          }
310        }
311        public String getSystem() {
312          return "http://hl7.org/fhir/event-resource-types";
313        }
314        public String getDefinition() {
315          switch (this) {
316            case CHARGEITEM: return "Item containing charge code(s) associated with the provision of healthcare provider products.";
317            case CLAIMRESPONSE: return "Remittance resource.";
318            case CLINICALIMPRESSION: return "A clinical assessment performed when planning treatments and management strategies for a patient.";
319            case COMMUNICATION: return "A record of information transmitted from a sender to a receiver.";
320            case COMPOSITION: return "A set of resources composed into a single coherent clinical statement with clinical attestation.";
321            case CONDITION: return "Detailed information about conditions, problems or diagnoses.";
322            case CONSENT: return "A healthcare consumer's policy choices to permits or denies recipients or roles to perform actions for specific purposes and periods of time.";
323            case COVERAGE: return "Insurance or medical plan or a payment agreement.";
324            case DEVICEUSESTATEMENT: return "Record of use of a device.";
325            case DIAGNOSTICREPORT: return "A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports.";
326            case DOCUMENTMANIFEST: return "A list that defines a set of documents.";
327            case DOCUMENTREFERENCE: return "A reference to a document.";
328            case ENCOUNTER: return "An interaction during which services are provided to the patient.";
329            case ENROLLMENTRESPONSE: return "EnrollmentResponse resource.";
330            case EPISODEOFCARE: return "An association of a Patient with an Organization and  Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility.";
331            case EXPLANATIONOFBENEFIT: return "Explanation of Benefit resource.";
332            case FAMILYMEMBERHISTORY: return "Information about patient's relatives, relevant for patient.";
333            case GUIDANCERESPONSE: return "The formal response to a guidance request.";
334            case IMAGINGSTUDY: return "A set of images produced in single study (one or more series of references images).";
335            case IMMUNIZATION: return "Immunization event information.";
336            case MEASUREREPORT: return "Results of a measure evaluation.";
337            case MEDIA: return "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.";
338            case MEDICATIONADMINISTRATION: return "Administration of medication to a patient.";
339            case MEDICATIONDISPENSE: return "Dispensing a medication to a named patient.";
340            case MEDICATIONUSAGE: return "Record of medication being taken by a patient.";
341            case OBSERVATION: return "Measurements and simple assertions.";
342            case PAYMENTNOTICE: return "PaymentNotice request.";
343            case PAYMENTRECONCILIATION: return "PaymentReconciliation resource.";
344            case PROCEDURE: return "An action that is being or was performed on a patient.";
345            case PROCESSRESPONSE: return "ProcessResponse resource.";
346            case QUESTIONNAIRERESPONSE: return "A structured set of questions and their answers.";
347            case RISKASSESSMENT: return "Potential outcomes for a subject with likelihood.";
348            case SUPPLYDELIVERY: return "Delivery of bulk Supplies.";
349            case TASK: return "A task to be performed.";
350            default: return "?";
351          }
352        }
353        public String getDisplay() {
354          switch (this) {
355            case CHARGEITEM: return "ChargeItem";
356            case CLAIMRESPONSE: return "ClaimResponse";
357            case CLINICALIMPRESSION: return "ClinicalImpression";
358            case COMMUNICATION: return "Communication";
359            case COMPOSITION: return "Composition";
360            case CONDITION: return "Condition";
361            case CONSENT: return "Consent";
362            case COVERAGE: return "Coverage";
363            case DEVICEUSESTATEMENT: return "DeviceUseStatement";
364            case DIAGNOSTICREPORT: return "DiagnosticReport";
365            case DOCUMENTMANIFEST: return "DocumentManifest";
366            case DOCUMENTREFERENCE: return "DocumentReference";
367            case ENCOUNTER: return "Encounter";
368            case ENROLLMENTRESPONSE: return "EnrollmentResponse";
369            case EPISODEOFCARE: return "EpisodeOfCare";
370            case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit";
371            case FAMILYMEMBERHISTORY: return "FamilyMemberHistory";
372            case GUIDANCERESPONSE: return "GuidanceResponse";
373            case IMAGINGSTUDY: return "ImagingStudy";
374            case IMMUNIZATION: return "Immunization";
375            case MEASUREREPORT: return "MeasureReport";
376            case MEDIA: return "Media";
377            case MEDICATIONADMINISTRATION: return "MedicationAdministration";
378            case MEDICATIONDISPENSE: return "MedicationDispense";
379            case MEDICATIONUSAGE: return "MedicationUsage";
380            case OBSERVATION: return "Observation";
381            case PAYMENTNOTICE: return "PaymentNotice";
382            case PAYMENTRECONCILIATION: return "PaymentReconciliation";
383            case PROCEDURE: return "Procedure";
384            case PROCESSRESPONSE: return "ProcessResponse";
385            case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse";
386            case RISKASSESSMENT: return "RiskAssessment";
387            case SUPPLYDELIVERY: return "SupplyDelivery";
388            case TASK: return "Task";
389            default: return "?";
390          }
391    }
392
393
394}
395