001package org.hl7.fhir.r4.model.codesystems;
002
003/*-
004 * #%L
005 * org.hl7.fhir.r4
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/*
025  Copyright (c) 2011+, HL7, Inc.
026  All rights reserved.
027  
028  Redistribution and use in source and binary forms, with or without modification, 
029  are permitted provided that the following conditions are met:
030  
031   * Redistributions of source code must retain the above copyright notice, this 
032     list of conditions and the following disclaimer.
033   * Redistributions in binary form must reproduce the above copyright notice, 
034     this list of conditions and the following disclaimer in the documentation 
035     and/or other materials provided with the distribution.
036   * Neither the name of HL7 nor the names of its contributors may be used to 
037     endorse or promote products derived from this software without specific 
038     prior written permission.
039  
040  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
041  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
042  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
043  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
044  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
045  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
046  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
047  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
048  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
049  POSSIBILITY OF SUCH DAMAGE.
050  
051*/
052
053// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0
054
055
056import org.hl7.fhir.exceptions.FHIRException;
057
058public enum EventResourceTypes {
059
060        /**
061         * Item containing charge code(s) associated with the provision of healthcare provider products.
062         */
063        CHARGEITEM, 
064        /**
065         * Remittance resource.
066         */
067        CLAIMRESPONSE, 
068        /**
069         * A clinical assessment performed when planning treatments and management strategies for a patient.
070         */
071        CLINICALIMPRESSION, 
072        /**
073         * A record of information transmitted from a sender to a receiver.
074         */
075        COMMUNICATION, 
076        /**
077         * A set of resources composed into a single coherent clinical statement with clinical attestation.
078         */
079        COMPOSITION, 
080        /**
081         * Detailed information about conditions, problems or diagnoses.
082         */
083        CONDITION, 
084        /**
085         * A healthcare consumer's policy choices to permits or denies recipients or roles to perform actions for specific purposes and periods of time.
086         */
087        CONSENT, 
088        /**
089         * Insurance or medical plan or a payment agreement.
090         */
091        COVERAGE, 
092        /**
093         * Record of use of a device.
094         */
095        DEVICEUSESTATEMENT, 
096        /**
097         * A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports.
098         */
099        DIAGNOSTICREPORT, 
100        /**
101         * A list that defines a set of documents.
102         */
103        DOCUMENTMANIFEST, 
104        /**
105         * A reference to a document.
106         */
107        DOCUMENTREFERENCE, 
108        /**
109         * An interaction during which services are provided to the patient.
110         */
111        ENCOUNTER, 
112        /**
113         * EnrollmentResponse resource.
114         */
115        ENROLLMENTRESPONSE, 
116        /**
117         * 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.
118         */
119        EPISODEOFCARE, 
120        /**
121         * Explanation of Benefit resource.
122         */
123        EXPLANATIONOFBENEFIT, 
124        /**
125         * Information about patient's relatives, relevant for patient.
126         */
127        FAMILYMEMBERHISTORY, 
128        /**
129         * The formal response to a guidance request.
130         */
131        GUIDANCERESPONSE, 
132        /**
133         * A set of images produced in single study (one or more series of references images).
134         */
135        IMAGINGSTUDY, 
136        /**
137         * Immunization event information.
138         */
139        IMMUNIZATION, 
140        /**
141         * Results of a measure evaluation.
142         */
143        MEASUREREPORT, 
144        /**
145         * A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.
146         */
147        MEDIA, 
148        /**
149         * Administration of medication to a patient.
150         */
151        MEDICATIONADMINISTRATION, 
152        /**
153         * Dispensing a medication to a named patient.
154         */
155        MEDICATIONDISPENSE, 
156        /**
157         * Record of medication being taken by a patient.
158         */
159        MEDICATIONSTATEMENT, 
160        /**
161         * Measurements and simple assertions.
162         */
163        OBSERVATION, 
164        /**
165         * PaymentNotice request.
166         */
167        PAYMENTNOTICE, 
168        /**
169         * PaymentReconciliation resource.
170         */
171        PAYMENTRECONCILIATION, 
172        /**
173         * An action that is being or was performed on a patient.
174         */
175        PROCEDURE, 
176        /**
177         * ProcessResponse resource.
178         */
179        PROCESSRESPONSE, 
180        /**
181         * A structured set of questions and their answers.
182         */
183        QUESTIONNAIRERESPONSE, 
184        /**
185         * Potential outcomes for a subject with likelihood.
186         */
187        RISKASSESSMENT, 
188        /**
189         * Delivery of bulk Supplies.
190         */
191        SUPPLYDELIVERY, 
192        /**
193         * A task to be performed.
194         */
195        TASK, 
196        /**
197         * added to help the parsers
198         */
199        NULL;
200        public static EventResourceTypes fromCode(String codeString) throws FHIRException {
201            if (codeString == null || "".equals(codeString))
202                return null;
203        if ("ChargeItem".equals(codeString))
204          return CHARGEITEM;
205        if ("ClaimResponse".equals(codeString))
206          return CLAIMRESPONSE;
207        if ("ClinicalImpression".equals(codeString))
208          return CLINICALIMPRESSION;
209        if ("Communication".equals(codeString))
210          return COMMUNICATION;
211        if ("Composition".equals(codeString))
212          return COMPOSITION;
213        if ("Condition".equals(codeString))
214          return CONDITION;
215        if ("Consent".equals(codeString))
216          return CONSENT;
217        if ("Coverage".equals(codeString))
218          return COVERAGE;
219        if ("DeviceUseStatement".equals(codeString))
220          return DEVICEUSESTATEMENT;
221        if ("DiagnosticReport".equals(codeString))
222          return DIAGNOSTICREPORT;
223        if ("DocumentManifest".equals(codeString))
224          return DOCUMENTMANIFEST;
225        if ("DocumentReference".equals(codeString))
226          return DOCUMENTREFERENCE;
227        if ("Encounter".equals(codeString))
228          return ENCOUNTER;
229        if ("EnrollmentResponse".equals(codeString))
230          return ENROLLMENTRESPONSE;
231        if ("EpisodeOfCare".equals(codeString))
232          return EPISODEOFCARE;
233        if ("ExplanationOfBenefit".equals(codeString))
234          return EXPLANATIONOFBENEFIT;
235        if ("FamilyMemberHistory".equals(codeString))
236          return FAMILYMEMBERHISTORY;
237        if ("GuidanceResponse".equals(codeString))
238          return GUIDANCERESPONSE;
239        if ("ImagingStudy".equals(codeString))
240          return IMAGINGSTUDY;
241        if ("Immunization".equals(codeString))
242          return IMMUNIZATION;
243        if ("MeasureReport".equals(codeString))
244          return MEASUREREPORT;
245        if ("Media".equals(codeString))
246          return MEDIA;
247        if ("MedicationAdministration".equals(codeString))
248          return MEDICATIONADMINISTRATION;
249        if ("MedicationDispense".equals(codeString))
250          return MEDICATIONDISPENSE;
251        if ("MedicationStatement".equals(codeString))
252          return MEDICATIONSTATEMENT;
253        if ("Observation".equals(codeString))
254          return OBSERVATION;
255        if ("PaymentNotice".equals(codeString))
256          return PAYMENTNOTICE;
257        if ("PaymentReconciliation".equals(codeString))
258          return PAYMENTRECONCILIATION;
259        if ("Procedure".equals(codeString))
260          return PROCEDURE;
261        if ("ProcessResponse".equals(codeString))
262          return PROCESSRESPONSE;
263        if ("QuestionnaireResponse".equals(codeString))
264          return QUESTIONNAIRERESPONSE;
265        if ("RiskAssessment".equals(codeString))
266          return RISKASSESSMENT;
267        if ("SupplyDelivery".equals(codeString))
268          return SUPPLYDELIVERY;
269        if ("Task".equals(codeString))
270          return TASK;
271        throw new FHIRException("Unknown EventResourceTypes code '"+codeString+"'");
272        }
273        public String toCode() {
274          switch (this) {
275            case CHARGEITEM: return "ChargeItem";
276            case CLAIMRESPONSE: return "ClaimResponse";
277            case CLINICALIMPRESSION: return "ClinicalImpression";
278            case COMMUNICATION: return "Communication";
279            case COMPOSITION: return "Composition";
280            case CONDITION: return "Condition";
281            case CONSENT: return "Consent";
282            case COVERAGE: return "Coverage";
283            case DEVICEUSESTATEMENT: return "DeviceUseStatement";
284            case DIAGNOSTICREPORT: return "DiagnosticReport";
285            case DOCUMENTMANIFEST: return "DocumentManifest";
286            case DOCUMENTREFERENCE: return "DocumentReference";
287            case ENCOUNTER: return "Encounter";
288            case ENROLLMENTRESPONSE: return "EnrollmentResponse";
289            case EPISODEOFCARE: return "EpisodeOfCare";
290            case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit";
291            case FAMILYMEMBERHISTORY: return "FamilyMemberHistory";
292            case GUIDANCERESPONSE: return "GuidanceResponse";
293            case IMAGINGSTUDY: return "ImagingStudy";
294            case IMMUNIZATION: return "Immunization";
295            case MEASUREREPORT: return "MeasureReport";
296            case MEDIA: return "Media";
297            case MEDICATIONADMINISTRATION: return "MedicationAdministration";
298            case MEDICATIONDISPENSE: return "MedicationDispense";
299            case MEDICATIONSTATEMENT: return "MedicationStatement";
300            case OBSERVATION: return "Observation";
301            case PAYMENTNOTICE: return "PaymentNotice";
302            case PAYMENTRECONCILIATION: return "PaymentReconciliation";
303            case PROCEDURE: return "Procedure";
304            case PROCESSRESPONSE: return "ProcessResponse";
305            case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse";
306            case RISKASSESSMENT: return "RiskAssessment";
307            case SUPPLYDELIVERY: return "SupplyDelivery";
308            case TASK: return "Task";
309            default: return "?";
310          }
311        }
312        public String getSystem() {
313          return "http://hl7.org/fhir/event-resource-types";
314        }
315        public String getDefinition() {
316          switch (this) {
317            case CHARGEITEM: return "Item containing charge code(s) associated with the provision of healthcare provider products.";
318            case CLAIMRESPONSE: return "Remittance resource.";
319            case CLINICALIMPRESSION: return "A clinical assessment performed when planning treatments and management strategies for a patient.";
320            case COMMUNICATION: return "A record of information transmitted from a sender to a receiver.";
321            case COMPOSITION: return "A set of resources composed into a single coherent clinical statement with clinical attestation.";
322            case CONDITION: return "Detailed information about conditions, problems or diagnoses.";
323            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.";
324            case COVERAGE: return "Insurance or medical plan or a payment agreement.";
325            case DEVICEUSESTATEMENT: return "Record of use of a device.";
326            case DIAGNOSTICREPORT: return "A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports.";
327            case DOCUMENTMANIFEST: return "A list that defines a set of documents.";
328            case DOCUMENTREFERENCE: return "A reference to a document.";
329            case ENCOUNTER: return "An interaction during which services are provided to the patient.";
330            case ENROLLMENTRESPONSE: return "EnrollmentResponse resource.";
331            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.";
332            case EXPLANATIONOFBENEFIT: return "Explanation of Benefit resource.";
333            case FAMILYMEMBERHISTORY: return "Information about patient's relatives, relevant for patient.";
334            case GUIDANCERESPONSE: return "The formal response to a guidance request.";
335            case IMAGINGSTUDY: return "A set of images produced in single study (one or more series of references images).";
336            case IMMUNIZATION: return "Immunization event information.";
337            case MEASUREREPORT: return "Results of a measure evaluation.";
338            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.";
339            case MEDICATIONADMINISTRATION: return "Administration of medication to a patient.";
340            case MEDICATIONDISPENSE: return "Dispensing a medication to a named patient.";
341            case MEDICATIONSTATEMENT: return "Record of medication being taken by a patient.";
342            case OBSERVATION: return "Measurements and simple assertions.";
343            case PAYMENTNOTICE: return "PaymentNotice request.";
344            case PAYMENTRECONCILIATION: return "PaymentReconciliation resource.";
345            case PROCEDURE: return "An action that is being or was performed on a patient.";
346            case PROCESSRESPONSE: return "ProcessResponse resource.";
347            case QUESTIONNAIRERESPONSE: return "A structured set of questions and their answers.";
348            case RISKASSESSMENT: return "Potential outcomes for a subject with likelihood.";
349            case SUPPLYDELIVERY: return "Delivery of bulk Supplies.";
350            case TASK: return "A task to be performed.";
351            default: return "?";
352          }
353        }
354        public String getDisplay() {
355          switch (this) {
356            case CHARGEITEM: return "ChargeItem";
357            case CLAIMRESPONSE: return "ClaimResponse";
358            case CLINICALIMPRESSION: return "ClinicalImpression";
359            case COMMUNICATION: return "Communication";
360            case COMPOSITION: return "Composition";
361            case CONDITION: return "Condition";
362            case CONSENT: return "Consent";
363            case COVERAGE: return "Coverage";
364            case DEVICEUSESTATEMENT: return "DeviceUseStatement";
365            case DIAGNOSTICREPORT: return "DiagnosticReport";
366            case DOCUMENTMANIFEST: return "DocumentManifest";
367            case DOCUMENTREFERENCE: return "DocumentReference";
368            case ENCOUNTER: return "Encounter";
369            case ENROLLMENTRESPONSE: return "EnrollmentResponse";
370            case EPISODEOFCARE: return "EpisodeOfCare";
371            case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit";
372            case FAMILYMEMBERHISTORY: return "FamilyMemberHistory";
373            case GUIDANCERESPONSE: return "GuidanceResponse";
374            case IMAGINGSTUDY: return "ImagingStudy";
375            case IMMUNIZATION: return "Immunization";
376            case MEASUREREPORT: return "MeasureReport";
377            case MEDIA: return "Media";
378            case MEDICATIONADMINISTRATION: return "MedicationAdministration";
379            case MEDICATIONDISPENSE: return "MedicationDispense";
380            case MEDICATIONSTATEMENT: return "MedicationStatement";
381            case OBSERVATION: return "Observation";
382            case PAYMENTNOTICE: return "PaymentNotice";
383            case PAYMENTRECONCILIATION: return "PaymentReconciliation";
384            case PROCEDURE: return "Procedure";
385            case PROCESSRESPONSE: return "ProcessResponse";
386            case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse";
387            case RISKASSESSMENT: return "RiskAssessment";
388            case SUPPLYDELIVERY: return "SupplyDelivery";
389            case TASK: return "Task";
390            default: return "?";
391          }
392    }
393
394
395}
396