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 V3ActSite {
037
038  /**
039   * An anatomical location on a human which can be the focus of an act.
040   */
041  _HUMANACTSITE,
042  /**
043   * The set of body locations to or through which a drug product may be
044   * administered.
045   */
046  _HUMANSUBSTANCEADMINISTRATIONSITE,
047  /**
048   * bilateral ears
049   */
050  BE,
051  /**
052   * bilateral nares
053   */
054  BN,
055  /**
056   * buttock
057   */
058  BU,
059  /**
060   * left arm
061   */
062  LA,
063  /**
064   * left anterior chest
065   */
066  LAC,
067  /**
068   * left antecubital fossa
069   */
070  LACF,
071  /**
072   * left deltoid
073   */
074  LD,
075  /**
076   * left ear
077   */
078  LE,
079  /**
080   * left external jugular
081   */
082  LEJ,
083  /**
084   * left foot
085   */
086  LF,
087  /**
088   * left gluteus medius
089   */
090  LG,
091  /**
092   * left hand
093   */
094  LH,
095  /**
096   * left internal jugular
097   */
098  LIJ,
099  /**
100   * left lower abd quadrant
101   */
102  LLAQ,
103  /**
104   * left lower forearm
105   */
106  LLFA,
107  /**
108   * left mid forearm
109   */
110  LMFA,
111  /**
112   * left naris
113   */
114  LN,
115  /**
116   * left posterior chest
117   */
118  LPC,
119  /**
120   * left subclavian
121   */
122  LSC,
123  /**
124   * left thigh
125   */
126  LT,
127  /**
128   * left upper arm
129   */
130  LUA,
131  /**
132   * left upper abd quadrant
133   */
134  LUAQ,
135  /**
136   * left upper forearm
137   */
138  LUFA,
139  /**
140   * left ventragluteal
141   */
142  LVG,
143  /**
144   * left vastus lateralis
145   */
146  LVL,
147  /**
148   * right eye
149   */
150  OD,
151  /**
152   * left eye
153   */
154  OS,
155  /**
156   * bilateral eyes
157   */
158  OU,
159  /**
160   * perianal
161   */
162  PA,
163  /**
164   * perineal
165   */
166  PERIN,
167  /**
168   * right arm
169   */
170  RA,
171  /**
172   * right anterior chest
173   */
174  RAC,
175  /**
176   * right antecubital fossa
177   */
178  RACF,
179  /**
180   * right deltoid
181   */
182  RD,
183  /**
184   * right ear
185   */
186  RE,
187  /**
188   * right external jugular
189   */
190  REJ,
191  /**
192   * right foot
193   */
194  RF,
195  /**
196   * right gluteus medius
197   */
198  RG,
199  /**
200   * right hand
201   */
202  RH,
203  /**
204   * right internal jugular
205   */
206  RIJ,
207  /**
208   * right lower abd quadrant
209   */
210  RLAQ,
211  /**
212   * right lower forearm
213   */
214  RLFA,
215  /**
216   * right mid forearm
217   */
218  RMFA,
219  /**
220   * right naris
221   */
222  RN,
223  /**
224   * right posterior chest
225   */
226  RPC,
227  /**
228   * right subclavian
229   */
230  RSC,
231  /**
232   * right thigh
233   */
234  RT,
235  /**
236   * right upper arm
237   */
238  RUA,
239  /**
240   * right upper abd quadrant
241   */
242  RUAQ,
243  /**
244   * right upper forearm
245   */
246  RUFA,
247  /**
248   * right ventragluteal
249   */
250  RVG,
251  /**
252   * right vastus lateralis
253   */
254  RVL,
255  /**
256   * added to help the parsers
257   */
258  NULL;
259
260  public static V3ActSite fromCode(String codeString) throws FHIRException {
261    if (codeString == null || "".equals(codeString))
262      return null;
263    if ("_HumanActSite".equals(codeString))
264      return _HUMANACTSITE;
265    if ("_HumanSubstanceAdministrationSite".equals(codeString))
266      return _HUMANSUBSTANCEADMINISTRATIONSITE;
267    if ("BE".equals(codeString))
268      return BE;
269    if ("BN".equals(codeString))
270      return BN;
271    if ("BU".equals(codeString))
272      return BU;
273    if ("LA".equals(codeString))
274      return LA;
275    if ("LAC".equals(codeString))
276      return LAC;
277    if ("LACF".equals(codeString))
278      return LACF;
279    if ("LD".equals(codeString))
280      return LD;
281    if ("LE".equals(codeString))
282      return LE;
283    if ("LEJ".equals(codeString))
284      return LEJ;
285    if ("LF".equals(codeString))
286      return LF;
287    if ("LG".equals(codeString))
288      return LG;
289    if ("LH".equals(codeString))
290      return LH;
291    if ("LIJ".equals(codeString))
292      return LIJ;
293    if ("LLAQ".equals(codeString))
294      return LLAQ;
295    if ("LLFA".equals(codeString))
296      return LLFA;
297    if ("LMFA".equals(codeString))
298      return LMFA;
299    if ("LN".equals(codeString))
300      return LN;
301    if ("LPC".equals(codeString))
302      return LPC;
303    if ("LSC".equals(codeString))
304      return LSC;
305    if ("LT".equals(codeString))
306      return LT;
307    if ("LUA".equals(codeString))
308      return LUA;
309    if ("LUAQ".equals(codeString))
310      return LUAQ;
311    if ("LUFA".equals(codeString))
312      return LUFA;
313    if ("LVG".equals(codeString))
314      return LVG;
315    if ("LVL".equals(codeString))
316      return LVL;
317    if ("OD".equals(codeString))
318      return OD;
319    if ("OS".equals(codeString))
320      return OS;
321    if ("OU".equals(codeString))
322      return OU;
323    if ("PA".equals(codeString))
324      return PA;
325    if ("PERIN".equals(codeString))
326      return PERIN;
327    if ("RA".equals(codeString))
328      return RA;
329    if ("RAC".equals(codeString))
330      return RAC;
331    if ("RACF".equals(codeString))
332      return RACF;
333    if ("RD".equals(codeString))
334      return RD;
335    if ("RE".equals(codeString))
336      return RE;
337    if ("REJ".equals(codeString))
338      return REJ;
339    if ("RF".equals(codeString))
340      return RF;
341    if ("RG".equals(codeString))
342      return RG;
343    if ("RH".equals(codeString))
344      return RH;
345    if ("RIJ".equals(codeString))
346      return RIJ;
347    if ("RLAQ".equals(codeString))
348      return RLAQ;
349    if ("RLFA".equals(codeString))
350      return RLFA;
351    if ("RMFA".equals(codeString))
352      return RMFA;
353    if ("RN".equals(codeString))
354      return RN;
355    if ("RPC".equals(codeString))
356      return RPC;
357    if ("RSC".equals(codeString))
358      return RSC;
359    if ("RT".equals(codeString))
360      return RT;
361    if ("RUA".equals(codeString))
362      return RUA;
363    if ("RUAQ".equals(codeString))
364      return RUAQ;
365    if ("RUFA".equals(codeString))
366      return RUFA;
367    if ("RVG".equals(codeString))
368      return RVG;
369    if ("RVL".equals(codeString))
370      return RVL;
371    throw new FHIRException("Unknown V3ActSite code '" + codeString + "'");
372  }
373
374  public String toCode() {
375    switch (this) {
376    case _HUMANACTSITE:
377      return "_HumanActSite";
378    case _HUMANSUBSTANCEADMINISTRATIONSITE:
379      return "_HumanSubstanceAdministrationSite";
380    case BE:
381      return "BE";
382    case BN:
383      return "BN";
384    case BU:
385      return "BU";
386    case LA:
387      return "LA";
388    case LAC:
389      return "LAC";
390    case LACF:
391      return "LACF";
392    case LD:
393      return "LD";
394    case LE:
395      return "LE";
396    case LEJ:
397      return "LEJ";
398    case LF:
399      return "LF";
400    case LG:
401      return "LG";
402    case LH:
403      return "LH";
404    case LIJ:
405      return "LIJ";
406    case LLAQ:
407      return "LLAQ";
408    case LLFA:
409      return "LLFA";
410    case LMFA:
411      return "LMFA";
412    case LN:
413      return "LN";
414    case LPC:
415      return "LPC";
416    case LSC:
417      return "LSC";
418    case LT:
419      return "LT";
420    case LUA:
421      return "LUA";
422    case LUAQ:
423      return "LUAQ";
424    case LUFA:
425      return "LUFA";
426    case LVG:
427      return "LVG";
428    case LVL:
429      return "LVL";
430    case OD:
431      return "OD";
432    case OS:
433      return "OS";
434    case OU:
435      return "OU";
436    case PA:
437      return "PA";
438    case PERIN:
439      return "PERIN";
440    case RA:
441      return "RA";
442    case RAC:
443      return "RAC";
444    case RACF:
445      return "RACF";
446    case RD:
447      return "RD";
448    case RE:
449      return "RE";
450    case REJ:
451      return "REJ";
452    case RF:
453      return "RF";
454    case RG:
455      return "RG";
456    case RH:
457      return "RH";
458    case RIJ:
459      return "RIJ";
460    case RLAQ:
461      return "RLAQ";
462    case RLFA:
463      return "RLFA";
464    case RMFA:
465      return "RMFA";
466    case RN:
467      return "RN";
468    case RPC:
469      return "RPC";
470    case RSC:
471      return "RSC";
472    case RT:
473      return "RT";
474    case RUA:
475      return "RUA";
476    case RUAQ:
477      return "RUAQ";
478    case RUFA:
479      return "RUFA";
480    case RVG:
481      return "RVG";
482    case RVL:
483      return "RVL";
484    case NULL:
485      return null;
486    default:
487      return "?";
488    }
489  }
490
491  public String getSystem() {
492    return "http://terminology.hl7.org/CodeSystem/v3-ActSite";
493  }
494
495  public String getDefinition() {
496    switch (this) {
497    case _HUMANACTSITE:
498      return "An anatomical location on a human which can be the focus of an act.";
499    case _HUMANSUBSTANCEADMINISTRATIONSITE:
500      return "The set of body locations to or through which a drug product may be administered.";
501    case BE:
502      return "bilateral ears";
503    case BN:
504      return "bilateral nares";
505    case BU:
506      return "buttock";
507    case LA:
508      return "left arm";
509    case LAC:
510      return "left anterior chest";
511    case LACF:
512      return "left antecubital fossa";
513    case LD:
514      return "left deltoid";
515    case LE:
516      return "left ear";
517    case LEJ:
518      return "left external jugular";
519    case LF:
520      return "left foot";
521    case LG:
522      return "left gluteus medius";
523    case LH:
524      return "left hand";
525    case LIJ:
526      return "left internal jugular";
527    case LLAQ:
528      return "left lower abd quadrant";
529    case LLFA:
530      return "left lower forearm";
531    case LMFA:
532      return "left mid forearm";
533    case LN:
534      return "left naris";
535    case LPC:
536      return "left posterior chest";
537    case LSC:
538      return "left subclavian";
539    case LT:
540      return "left thigh";
541    case LUA:
542      return "left upper arm";
543    case LUAQ:
544      return "left upper abd quadrant";
545    case LUFA:
546      return "left upper forearm";
547    case LVG:
548      return "left ventragluteal";
549    case LVL:
550      return "left vastus lateralis";
551    case OD:
552      return "right eye";
553    case OS:
554      return "left eye";
555    case OU:
556      return "bilateral eyes";
557    case PA:
558      return "perianal";
559    case PERIN:
560      return "perineal";
561    case RA:
562      return "right arm";
563    case RAC:
564      return "right anterior chest";
565    case RACF:
566      return "right antecubital fossa";
567    case RD:
568      return "right deltoid";
569    case RE:
570      return "right ear";
571    case REJ:
572      return "right external jugular";
573    case RF:
574      return "right foot";
575    case RG:
576      return "right gluteus medius";
577    case RH:
578      return "right hand";
579    case RIJ:
580      return "right internal jugular";
581    case RLAQ:
582      return "right lower abd quadrant";
583    case RLFA:
584      return "right lower forearm";
585    case RMFA:
586      return "right mid forearm";
587    case RN:
588      return "right naris";
589    case RPC:
590      return "right posterior chest";
591    case RSC:
592      return "right subclavian";
593    case RT:
594      return "right thigh";
595    case RUA:
596      return "right upper arm";
597    case RUAQ:
598      return "right upper abd quadrant";
599    case RUFA:
600      return "right upper forearm";
601    case RVG:
602      return "right ventragluteal";
603    case RVL:
604      return "right vastus lateralis";
605    case NULL:
606      return null;
607    default:
608      return "?";
609    }
610  }
611
612  public String getDisplay() {
613    switch (this) {
614    case _HUMANACTSITE:
615      return "HumanActSite";
616    case _HUMANSUBSTANCEADMINISTRATIONSITE:
617      return "HumanSubstanceAdministrationSite";
618    case BE:
619      return "bilateral ears";
620    case BN:
621      return "bilateral nares";
622    case BU:
623      return "buttock";
624    case LA:
625      return "left arm";
626    case LAC:
627      return "left anterior chest";
628    case LACF:
629      return "left antecubital fossa";
630    case LD:
631      return "left deltoid";
632    case LE:
633      return "left ear";
634    case LEJ:
635      return "left external jugular";
636    case LF:
637      return "left foot";
638    case LG:
639      return "left gluteus medius";
640    case LH:
641      return "left hand";
642    case LIJ:
643      return "left internal jugular";
644    case LLAQ:
645      return "left lower abd quadrant";
646    case LLFA:
647      return "left lower forearm";
648    case LMFA:
649      return "left mid forearm";
650    case LN:
651      return "left naris";
652    case LPC:
653      return "left posterior chest";
654    case LSC:
655      return "left subclavian";
656    case LT:
657      return "left thigh";
658    case LUA:
659      return "left upper arm";
660    case LUAQ:
661      return "left upper abd quadrant";
662    case LUFA:
663      return "left upper forearm";
664    case LVG:
665      return "left ventragluteal";
666    case LVL:
667      return "left vastus lateralis";
668    case OD:
669      return "right eye";
670    case OS:
671      return "left eye";
672    case OU:
673      return "bilateral eyes";
674    case PA:
675      return "perianal";
676    case PERIN:
677      return "perineal";
678    case RA:
679      return "right arm";
680    case RAC:
681      return "right anterior chest";
682    case RACF:
683      return "right antecubital fossa";
684    case RD:
685      return "right deltoid";
686    case RE:
687      return "right ear";
688    case REJ:
689      return "right external jugular";
690    case RF:
691      return "right foot";
692    case RG:
693      return "right gluteus medius";
694    case RH:
695      return "right hand";
696    case RIJ:
697      return "right internal jugular";
698    case RLAQ:
699      return "right lower abd quadrant";
700    case RLFA:
701      return "right lower forearm";
702    case RMFA:
703      return "right mid forearm";
704    case RN:
705      return "right naris";
706    case RPC:
707      return "right posterior chest";
708    case RSC:
709      return "right subclavian";
710    case RT:
711      return "right thigh";
712    case RUA:
713      return "right upper arm";
714    case RUAQ:
715      return "right upper abd quadrant";
716    case RUFA:
717      return "right upper forearm";
718    case RVG:
719      return "right ventragluteal";
720    case RVL:
721      return "right vastus lateralis";
722    case NULL:
723      return null;
724    default:
725      return "?";
726    }
727  }
728
729}