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