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 Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0
033
034import org.hl7.fhir.exceptions.FHIRException;
035
036public enum EventResourceTypes {
037
038  /**
039   * Item containing charge code(s) associated with the provision of healthcare
040   * provider products.
041   */
042  CHARGEITEM,
043  /**
044   * Remittance resource.
045   */
046  CLAIMRESPONSE,
047  /**
048   * A clinical assessment performed when planning treatments and management
049   * strategies for a patient.
050   */
051  CLINICALIMPRESSION,
052  /**
053   * A record of information transmitted from a sender to a receiver.
054   */
055  COMMUNICATION,
056  /**
057   * A set of resources composed into a single coherent clinical statement with
058   * clinical attestation.
059   */
060  COMPOSITION,
061  /**
062   * Detailed information about conditions, problems or diagnoses.
063   */
064  CONDITION,
065  /**
066   * A healthcare consumer's policy choices to permits or denies recipients or
067   * 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,
080   * images, interpretation, as well as formatted reports.
081   */
082  DIAGNOSTICREPORT,
083  /**
084   * A list that defines a set of documents.
085   */
086  DOCUMENTMANIFEST,
087  /**
088   * A reference to a document.
089   */
090  DOCUMENTREFERENCE,
091  /**
092   * An interaction during which services are provided to the patient.
093   */
094  ENCOUNTER,
095  /**
096   * EnrollmentResponse resource.
097   */
098  ENROLLMENTRESPONSE,
099  /**
100   * An association of a Patient with an Organization and Healthcare Provider(s)
101   * for a period of time that the Organization assumes some level of
102   * responsibility.
103   */
104  EPISODEOFCARE,
105  /**
106   * Explanation of Benefit resource.
107   */
108  EXPLANATIONOFBENEFIT,
109  /**
110   * Information about patient's relatives, relevant for patient.
111   */
112  FAMILYMEMBERHISTORY,
113  /**
114   * The formal response to a guidance request.
115   */
116  GUIDANCERESPONSE,
117  /**
118   * A set of images produced in single study (one or more series of references
119   * images).
120   */
121  IMAGINGSTUDY,
122  /**
123   * Immunization event information.
124   */
125  IMMUNIZATION,
126  /**
127   * Results of a measure evaluation.
128   */
129  MEASUREREPORT,
130  /**
131   * A photo, video, or audio recording acquired or used in healthcare. The actual
132   * content may be inline or provided by direct reference.
133   */
134  MEDIA,
135  /**
136   * Administration of medication to a patient.
137   */
138  MEDICATIONADMINISTRATION,
139  /**
140   * Dispensing a medication to a named patient.
141   */
142  MEDICATIONDISPENSE,
143  /**
144   * Record of medication being taken by a patient.
145   */
146  MEDICATIONSTATEMENT,
147  /**
148   * Measurements and simple assertions.
149   */
150  OBSERVATION,
151  /**
152   * PaymentNotice request.
153   */
154  PAYMENTNOTICE,
155  /**
156   * PaymentReconciliation resource.
157   */
158  PAYMENTRECONCILIATION,
159  /**
160   * An action that is being or was performed on a patient.
161   */
162  PROCEDURE,
163  /**
164   * ProcessResponse resource.
165   */
166  PROCESSRESPONSE,
167  /**
168   * A structured set of questions and their answers.
169   */
170  QUESTIONNAIRERESPONSE,
171  /**
172   * Potential outcomes for a subject with likelihood.
173   */
174  RISKASSESSMENT,
175  /**
176   * Delivery of bulk Supplies.
177   */
178  SUPPLYDELIVERY,
179  /**
180   * A task to be performed.
181   */
182  TASK,
183  /**
184   * added to help the parsers
185   */
186  NULL;
187
188  public static EventResourceTypes fromCode(String codeString) throws FHIRException {
189    if (codeString == null || "".equals(codeString))
190      return null;
191    if ("ChargeItem".equals(codeString))
192      return CHARGEITEM;
193    if ("ClaimResponse".equals(codeString))
194      return CLAIMRESPONSE;
195    if ("ClinicalImpression".equals(codeString))
196      return CLINICALIMPRESSION;
197    if ("Communication".equals(codeString))
198      return COMMUNICATION;
199    if ("Composition".equals(codeString))
200      return COMPOSITION;
201    if ("Condition".equals(codeString))
202      return CONDITION;
203    if ("Consent".equals(codeString))
204      return CONSENT;
205    if ("Coverage".equals(codeString))
206      return COVERAGE;
207    if ("DeviceUseStatement".equals(codeString))
208      return DEVICEUSESTATEMENT;
209    if ("DiagnosticReport".equals(codeString))
210      return DIAGNOSTICREPORT;
211    if ("DocumentManifest".equals(codeString))
212      return DOCUMENTMANIFEST;
213    if ("DocumentReference".equals(codeString))
214      return DOCUMENTREFERENCE;
215    if ("Encounter".equals(codeString))
216      return ENCOUNTER;
217    if ("EnrollmentResponse".equals(codeString))
218      return ENROLLMENTRESPONSE;
219    if ("EpisodeOfCare".equals(codeString))
220      return EPISODEOFCARE;
221    if ("ExplanationOfBenefit".equals(codeString))
222      return EXPLANATIONOFBENEFIT;
223    if ("FamilyMemberHistory".equals(codeString))
224      return FAMILYMEMBERHISTORY;
225    if ("GuidanceResponse".equals(codeString))
226      return GUIDANCERESPONSE;
227    if ("ImagingStudy".equals(codeString))
228      return IMAGINGSTUDY;
229    if ("Immunization".equals(codeString))
230      return IMMUNIZATION;
231    if ("MeasureReport".equals(codeString))
232      return MEASUREREPORT;
233    if ("Media".equals(codeString))
234      return MEDIA;
235    if ("MedicationAdministration".equals(codeString))
236      return MEDICATIONADMINISTRATION;
237    if ("MedicationDispense".equals(codeString))
238      return MEDICATIONDISPENSE;
239    if ("MedicationStatement".equals(codeString))
240      return MEDICATIONSTATEMENT;
241    if ("Observation".equals(codeString))
242      return OBSERVATION;
243    if ("PaymentNotice".equals(codeString))
244      return PAYMENTNOTICE;
245    if ("PaymentReconciliation".equals(codeString))
246      return PAYMENTRECONCILIATION;
247    if ("Procedure".equals(codeString))
248      return PROCEDURE;
249    if ("ProcessResponse".equals(codeString))
250      return PROCESSRESPONSE;
251    if ("QuestionnaireResponse".equals(codeString))
252      return QUESTIONNAIRERESPONSE;
253    if ("RiskAssessment".equals(codeString))
254      return RISKASSESSMENT;
255    if ("SupplyDelivery".equals(codeString))
256      return SUPPLYDELIVERY;
257    if ("Task".equals(codeString))
258      return TASK;
259    throw new FHIRException("Unknown EventResourceTypes code '" + codeString + "'");
260  }
261
262  public String toCode() {
263    switch (this) {
264    case CHARGEITEM:
265      return "ChargeItem";
266    case CLAIMRESPONSE:
267      return "ClaimResponse";
268    case CLINICALIMPRESSION:
269      return "ClinicalImpression";
270    case COMMUNICATION:
271      return "Communication";
272    case COMPOSITION:
273      return "Composition";
274    case CONDITION:
275      return "Condition";
276    case CONSENT:
277      return "Consent";
278    case COVERAGE:
279      return "Coverage";
280    case DEVICEUSESTATEMENT:
281      return "DeviceUseStatement";
282    case DIAGNOSTICREPORT:
283      return "DiagnosticReport";
284    case DOCUMENTMANIFEST:
285      return "DocumentManifest";
286    case DOCUMENTREFERENCE:
287      return "DocumentReference";
288    case ENCOUNTER:
289      return "Encounter";
290    case ENROLLMENTRESPONSE:
291      return "EnrollmentResponse";
292    case EPISODEOFCARE:
293      return "EpisodeOfCare";
294    case EXPLANATIONOFBENEFIT:
295      return "ExplanationOfBenefit";
296    case FAMILYMEMBERHISTORY:
297      return "FamilyMemberHistory";
298    case GUIDANCERESPONSE:
299      return "GuidanceResponse";
300    case IMAGINGSTUDY:
301      return "ImagingStudy";
302    case IMMUNIZATION:
303      return "Immunization";
304    case MEASUREREPORT:
305      return "MeasureReport";
306    case MEDIA:
307      return "Media";
308    case MEDICATIONADMINISTRATION:
309      return "MedicationAdministration";
310    case MEDICATIONDISPENSE:
311      return "MedicationDispense";
312    case MEDICATIONSTATEMENT:
313      return "MedicationStatement";
314    case OBSERVATION:
315      return "Observation";
316    case PAYMENTNOTICE:
317      return "PaymentNotice";
318    case PAYMENTRECONCILIATION:
319      return "PaymentReconciliation";
320    case PROCEDURE:
321      return "Procedure";
322    case PROCESSRESPONSE:
323      return "ProcessResponse";
324    case QUESTIONNAIRERESPONSE:
325      return "QuestionnaireResponse";
326    case RISKASSESSMENT:
327      return "RiskAssessment";
328    case SUPPLYDELIVERY:
329      return "SupplyDelivery";
330    case TASK:
331      return "Task";
332    case NULL:
333      return null;
334    default:
335      return "?";
336    }
337  }
338
339  public String getSystem() {
340    return "http://hl7.org/fhir/event-resource-types";
341  }
342
343  public String getDefinition() {
344    switch (this) {
345    case CHARGEITEM:
346      return "Item containing charge code(s) associated with the provision of healthcare provider products.";
347    case CLAIMRESPONSE:
348      return "Remittance resource.";
349    case CLINICALIMPRESSION:
350      return "A clinical assessment performed when planning treatments and management strategies for a patient.";
351    case COMMUNICATION:
352      return "A record of information transmitted from a sender to a receiver.";
353    case COMPOSITION:
354      return "A set of resources composed into a single coherent clinical statement with clinical attestation.";
355    case CONDITION:
356      return "Detailed information about conditions, problems or diagnoses.";
357    case CONSENT:
358      return "A healthcare consumer's policy choices to permits or denies recipients or roles to perform actions for specific purposes and periods of time.";
359    case COVERAGE:
360      return "Insurance or medical plan or a payment agreement.";
361    case DEVICEUSESTATEMENT:
362      return "Record of use of a device.";
363    case DIAGNOSTICREPORT:
364      return "A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports.";
365    case DOCUMENTMANIFEST:
366      return "A list that defines a set of documents.";
367    case DOCUMENTREFERENCE:
368      return "A reference to a document.";
369    case ENCOUNTER:
370      return "An interaction during which services are provided to the patient.";
371    case ENROLLMENTRESPONSE:
372      return "EnrollmentResponse resource.";
373    case EPISODEOFCARE:
374      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.";
375    case EXPLANATIONOFBENEFIT:
376      return "Explanation of Benefit resource.";
377    case FAMILYMEMBERHISTORY:
378      return "Information about patient's relatives, relevant for patient.";
379    case GUIDANCERESPONSE:
380      return "The formal response to a guidance request.";
381    case IMAGINGSTUDY:
382      return "A set of images produced in single study (one or more series of references images).";
383    case IMMUNIZATION:
384      return "Immunization event information.";
385    case MEASUREREPORT:
386      return "Results of a measure evaluation.";
387    case MEDIA:
388      return "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.";
389    case MEDICATIONADMINISTRATION:
390      return "Administration of medication to a patient.";
391    case MEDICATIONDISPENSE:
392      return "Dispensing a medication to a named patient.";
393    case MEDICATIONSTATEMENT:
394      return "Record of medication being taken by a patient.";
395    case OBSERVATION:
396      return "Measurements and simple assertions.";
397    case PAYMENTNOTICE:
398      return "PaymentNotice request.";
399    case PAYMENTRECONCILIATION:
400      return "PaymentReconciliation resource.";
401    case PROCEDURE:
402      return "An action that is being or was performed on a patient.";
403    case PROCESSRESPONSE:
404      return "ProcessResponse resource.";
405    case QUESTIONNAIRERESPONSE:
406      return "A structured set of questions and their answers.";
407    case RISKASSESSMENT:
408      return "Potential outcomes for a subject with likelihood.";
409    case SUPPLYDELIVERY:
410      return "Delivery of bulk Supplies.";
411    case TASK:
412      return "A task to be performed.";
413    case NULL:
414      return null;
415    default:
416      return "?";
417    }
418  }
419
420  public String getDisplay() {
421    switch (this) {
422    case CHARGEITEM:
423      return "ChargeItem";
424    case CLAIMRESPONSE:
425      return "ClaimResponse";
426    case CLINICALIMPRESSION:
427      return "ClinicalImpression";
428    case COMMUNICATION:
429      return "Communication";
430    case COMPOSITION:
431      return "Composition";
432    case CONDITION:
433      return "Condition";
434    case CONSENT:
435      return "Consent";
436    case COVERAGE:
437      return "Coverage";
438    case DEVICEUSESTATEMENT:
439      return "DeviceUseStatement";
440    case DIAGNOSTICREPORT:
441      return "DiagnosticReport";
442    case DOCUMENTMANIFEST:
443      return "DocumentManifest";
444    case DOCUMENTREFERENCE:
445      return "DocumentReference";
446    case ENCOUNTER:
447      return "Encounter";
448    case ENROLLMENTRESPONSE:
449      return "EnrollmentResponse";
450    case EPISODEOFCARE:
451      return "EpisodeOfCare";
452    case EXPLANATIONOFBENEFIT:
453      return "ExplanationOfBenefit";
454    case FAMILYMEMBERHISTORY:
455      return "FamilyMemberHistory";
456    case GUIDANCERESPONSE:
457      return "GuidanceResponse";
458    case IMAGINGSTUDY:
459      return "ImagingStudy";
460    case IMMUNIZATION:
461      return "Immunization";
462    case MEASUREREPORT:
463      return "MeasureReport";
464    case MEDIA:
465      return "Media";
466    case MEDICATIONADMINISTRATION:
467      return "MedicationAdministration";
468    case MEDICATIONDISPENSE:
469      return "MedicationDispense";
470    case MEDICATIONSTATEMENT:
471      return "MedicationStatement";
472    case OBSERVATION:
473      return "Observation";
474    case PAYMENTNOTICE:
475      return "PaymentNotice";
476    case PAYMENTRECONCILIATION:
477      return "PaymentReconciliation";
478    case PROCEDURE:
479      return "Procedure";
480    case PROCESSRESPONSE:
481      return "ProcessResponse";
482    case QUESTIONNAIRERESPONSE:
483      return "QuestionnaireResponse";
484    case RISKASSESSMENT:
485      return "RiskAssessment";
486    case SUPPLYDELIVERY:
487      return "SupplyDelivery";
488    case TASK:
489      return "Task";
490    case NULL:
491      return null;
492    default:
493      return "?";
494    }
495  }
496
497}