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