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            default: return "?";
292          }
293        }
294        public String getSystem() {
295          return "http://hl7.org/fhir/event-resource-types";
296        }
297        public String getDefinition() {
298          switch (this) {
299            case CHARGEITEM: return "Item containing charge code(s) associated with the provision of healthcare provider products.";
300            case CLAIMRESPONSE: return "Remittance resource.";
301            case CLINICALIMPRESSION: return "A clinical assessment performed when planning treatments and management strategies for a patient.";
302            case COMMUNICATION: return "A record of information transmitted from a sender to a receiver.";
303            case COMPOSITION: return "A set of resources composed into a single coherent clinical statement with clinical attestation.";
304            case CONDITION: return "Detailed information about conditions, problems or diagnoses.";
305            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.";
306            case COVERAGE: return "Insurance or medical plan or a payment agreement.";
307            case DEVICEUSESTATEMENT: return "Record of use of a device.";
308            case DIAGNOSTICREPORT: return "A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports.";
309            case DOCUMENTMANIFEST: return "A list that defines a set of documents.";
310            case DOCUMENTREFERENCE: return "A reference to a document.";
311            case ENCOUNTER: return "An interaction during which services are provided to the patient.";
312            case ENROLLMENTRESPONSE: return "EnrollmentResponse resource.";
313            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.";
314            case EXPLANATIONOFBENEFIT: return "Explanation of Benefit resource.";
315            case FAMILYMEMBERHISTORY: return "Information about patient's relatives, relevant for patient.";
316            case GUIDANCERESPONSE: return "The formal response to a guidance request.";
317            case IMAGINGSTUDY: return "A set of images produced in single study (one or more series of references images).";
318            case IMMUNIZATION: return "Immunization event information.";
319            case MEASUREREPORT: return "Results of a measure evaluation.";
320            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.";
321            case MEDICATIONADMINISTRATION: return "Administration of medication to a patient.";
322            case MEDICATIONDISPENSE: return "Dispensing a medication to a named patient.";
323            case MEDICATIONSTATEMENT: return "Record of medication being taken by a patient.";
324            case OBSERVATION: return "Measurements and simple assertions.";
325            case PAYMENTNOTICE: return "PaymentNotice request.";
326            case PAYMENTRECONCILIATION: return "PaymentReconciliation resource.";
327            case PROCEDURE: return "An action that is being or was performed on a patient.";
328            case PROCESSRESPONSE: return "ProcessResponse resource.";
329            case QUESTIONNAIRERESPONSE: return "A structured set of questions and their answers.";
330            case RISKASSESSMENT: return "Potential outcomes for a subject with likelihood.";
331            case SUPPLYDELIVERY: return "Delivery of bulk Supplies.";
332            case TASK: return "A task to be performed.";
333            default: return "?";
334          }
335        }
336        public String getDisplay() {
337          switch (this) {
338            case CHARGEITEM: return "ChargeItem";
339            case CLAIMRESPONSE: return "ClaimResponse";
340            case CLINICALIMPRESSION: return "ClinicalImpression";
341            case COMMUNICATION: return "Communication";
342            case COMPOSITION: return "Composition";
343            case CONDITION: return "Condition";
344            case CONSENT: return "Consent";
345            case COVERAGE: return "Coverage";
346            case DEVICEUSESTATEMENT: return "DeviceUseStatement";
347            case DIAGNOSTICREPORT: return "DiagnosticReport";
348            case DOCUMENTMANIFEST: return "DocumentManifest";
349            case DOCUMENTREFERENCE: return "DocumentReference";
350            case ENCOUNTER: return "Encounter";
351            case ENROLLMENTRESPONSE: return "EnrollmentResponse";
352            case EPISODEOFCARE: return "EpisodeOfCare";
353            case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit";
354            case FAMILYMEMBERHISTORY: return "FamilyMemberHistory";
355            case GUIDANCERESPONSE: return "GuidanceResponse";
356            case IMAGINGSTUDY: return "ImagingStudy";
357            case IMMUNIZATION: return "Immunization";
358            case MEASUREREPORT: return "MeasureReport";
359            case MEDIA: return "Media";
360            case MEDICATIONADMINISTRATION: return "MedicationAdministration";
361            case MEDICATIONDISPENSE: return "MedicationDispense";
362            case MEDICATIONSTATEMENT: return "MedicationStatement";
363            case OBSERVATION: return "Observation";
364            case PAYMENTNOTICE: return "PaymentNotice";
365            case PAYMENTRECONCILIATION: return "PaymentReconciliation";
366            case PROCEDURE: return "Procedure";
367            case PROCESSRESPONSE: return "ProcessResponse";
368            case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse";
369            case RISKASSESSMENT: return "RiskAssessment";
370            case SUPPLYDELIVERY: return "SupplyDelivery";
371            case TASK: return "Task";
372            default: return "?";
373          }
374    }
375
376
377}