001package org.hl7.fhir.dstu3.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 Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
036
037
038import org.hl7.fhir.exceptions.FHIRException;
039
040public enum V3ActSite {
041
042        /**
043         * An anatomical location on a human which can be the focus of an act.
044         */
045        _HUMANACTSITE, 
046        /**
047         * The set of body locations to or through which a drug product may be administered.
048         */
049        _HUMANSUBSTANCEADMINISTRATIONSITE, 
050        /**
051         * bilateral ears
052         */
053        BE, 
054        /**
055         * bilateral nares
056         */
057        BN, 
058        /**
059         * buttock
060         */
061        BU, 
062        /**
063         * left arm
064         */
065        LA, 
066        /**
067         * left anterior chest
068         */
069        LAC, 
070        /**
071         * left antecubital fossa
072         */
073        LACF, 
074        /**
075         * left deltoid
076         */
077        LD, 
078        /**
079         * left ear
080         */
081        LE, 
082        /**
083         * left external jugular
084         */
085        LEJ, 
086        /**
087         * left foot
088         */
089        LF, 
090        /**
091         * left gluteus medius
092         */
093        LG, 
094        /**
095         * left hand
096         */
097        LH, 
098        /**
099         * left internal jugular
100         */
101        LIJ, 
102        /**
103         * left lower abd quadrant
104         */
105        LLAQ, 
106        /**
107         * left lower forearm
108         */
109        LLFA, 
110        /**
111         * left mid forearm
112         */
113        LMFA, 
114        /**
115         * left naris
116         */
117        LN, 
118        /**
119         * left posterior chest
120         */
121        LPC, 
122        /**
123         * left subclavian
124         */
125        LSC, 
126        /**
127         * left thigh
128         */
129        LT, 
130        /**
131         * left upper arm
132         */
133        LUA, 
134        /**
135         * left upper abd quadrant
136         */
137        LUAQ, 
138        /**
139         * left upper forearm
140         */
141        LUFA, 
142        /**
143         * left ventragluteal
144         */
145        LVG, 
146        /**
147         * left vastus lateralis
148         */
149        LVL, 
150        /**
151         * right eye
152         */
153        OD, 
154        /**
155         * left eye
156         */
157        OS, 
158        /**
159         * bilateral eyes
160         */
161        OU, 
162        /**
163         * perianal
164         */
165        PA, 
166        /**
167         * perineal
168         */
169        PERIN, 
170        /**
171         * right arm
172         */
173        RA, 
174        /**
175         * right anterior chest
176         */
177        RAC, 
178        /**
179         * right antecubital fossa
180         */
181        RACF, 
182        /**
183         * right deltoid
184         */
185        RD, 
186        /**
187         * right ear
188         */
189        RE, 
190        /**
191         * right external jugular
192         */
193        REJ, 
194        /**
195         * right foot
196         */
197        RF, 
198        /**
199         * right gluteus medius
200         */
201        RG, 
202        /**
203         * right hand
204         */
205        RH, 
206        /**
207         * right internal jugular
208         */
209        RIJ, 
210        /**
211         * right lower abd quadrant
212         */
213        RLAQ, 
214        /**
215         * right lower forearm
216         */
217        RLFA, 
218        /**
219         * right mid forearm
220         */
221        RMFA, 
222        /**
223         * right naris
224         */
225        RN, 
226        /**
227         * right posterior chest
228         */
229        RPC, 
230        /**
231         * right subclavian
232         */
233        RSC, 
234        /**
235         * right thigh
236         */
237        RT, 
238        /**
239         * right upper arm
240         */
241        RUA, 
242        /**
243         * right upper abd quadrant
244         */
245        RUAQ, 
246        /**
247         * right upper forearm
248         */
249        RUFA, 
250        /**
251         * right ventragluteal
252         */
253        RVG, 
254        /**
255         * right vastus lateralis
256         */
257        RVL, 
258        /**
259         * added to help the parsers
260         */
261        NULL;
262        public static V3ActSite fromCode(String codeString) throws FHIRException {
263            if (codeString == null || "".equals(codeString))
264                return null;
265        if ("_HumanActSite".equals(codeString))
266          return _HUMANACTSITE;
267        if ("_HumanSubstanceAdministrationSite".equals(codeString))
268          return _HUMANSUBSTANCEADMINISTRATIONSITE;
269        if ("BE".equals(codeString))
270          return BE;
271        if ("BN".equals(codeString))
272          return BN;
273        if ("BU".equals(codeString))
274          return BU;
275        if ("LA".equals(codeString))
276          return LA;
277        if ("LAC".equals(codeString))
278          return LAC;
279        if ("LACF".equals(codeString))
280          return LACF;
281        if ("LD".equals(codeString))
282          return LD;
283        if ("LE".equals(codeString))
284          return LE;
285        if ("LEJ".equals(codeString))
286          return LEJ;
287        if ("LF".equals(codeString))
288          return LF;
289        if ("LG".equals(codeString))
290          return LG;
291        if ("LH".equals(codeString))
292          return LH;
293        if ("LIJ".equals(codeString))
294          return LIJ;
295        if ("LLAQ".equals(codeString))
296          return LLAQ;
297        if ("LLFA".equals(codeString))
298          return LLFA;
299        if ("LMFA".equals(codeString))
300          return LMFA;
301        if ("LN".equals(codeString))
302          return LN;
303        if ("LPC".equals(codeString))
304          return LPC;
305        if ("LSC".equals(codeString))
306          return LSC;
307        if ("LT".equals(codeString))
308          return LT;
309        if ("LUA".equals(codeString))
310          return LUA;
311        if ("LUAQ".equals(codeString))
312          return LUAQ;
313        if ("LUFA".equals(codeString))
314          return LUFA;
315        if ("LVG".equals(codeString))
316          return LVG;
317        if ("LVL".equals(codeString))
318          return LVL;
319        if ("OD".equals(codeString))
320          return OD;
321        if ("OS".equals(codeString))
322          return OS;
323        if ("OU".equals(codeString))
324          return OU;
325        if ("PA".equals(codeString))
326          return PA;
327        if ("PERIN".equals(codeString))
328          return PERIN;
329        if ("RA".equals(codeString))
330          return RA;
331        if ("RAC".equals(codeString))
332          return RAC;
333        if ("RACF".equals(codeString))
334          return RACF;
335        if ("RD".equals(codeString))
336          return RD;
337        if ("RE".equals(codeString))
338          return RE;
339        if ("REJ".equals(codeString))
340          return REJ;
341        if ("RF".equals(codeString))
342          return RF;
343        if ("RG".equals(codeString))
344          return RG;
345        if ("RH".equals(codeString))
346          return RH;
347        if ("RIJ".equals(codeString))
348          return RIJ;
349        if ("RLAQ".equals(codeString))
350          return RLAQ;
351        if ("RLFA".equals(codeString))
352          return RLFA;
353        if ("RMFA".equals(codeString))
354          return RMFA;
355        if ("RN".equals(codeString))
356          return RN;
357        if ("RPC".equals(codeString))
358          return RPC;
359        if ("RSC".equals(codeString))
360          return RSC;
361        if ("RT".equals(codeString))
362          return RT;
363        if ("RUA".equals(codeString))
364          return RUA;
365        if ("RUAQ".equals(codeString))
366          return RUAQ;
367        if ("RUFA".equals(codeString))
368          return RUFA;
369        if ("RVG".equals(codeString))
370          return RVG;
371        if ("RVL".equals(codeString))
372          return RVL;
373        throw new FHIRException("Unknown V3ActSite code '"+codeString+"'");
374        }
375        public String toCode() {
376          switch (this) {
377            case _HUMANACTSITE: return "_HumanActSite";
378            case _HUMANSUBSTANCEADMINISTRATIONSITE: return "_HumanSubstanceAdministrationSite";
379            case BE: return "BE";
380            case BN: return "BN";
381            case BU: return "BU";
382            case LA: return "LA";
383            case LAC: return "LAC";
384            case LACF: return "LACF";
385            case LD: return "LD";
386            case LE: return "LE";
387            case LEJ: return "LEJ";
388            case LF: return "LF";
389            case LG: return "LG";
390            case LH: return "LH";
391            case LIJ: return "LIJ";
392            case LLAQ: return "LLAQ";
393            case LLFA: return "LLFA";
394            case LMFA: return "LMFA";
395            case LN: return "LN";
396            case LPC: return "LPC";
397            case LSC: return "LSC";
398            case LT: return "LT";
399            case LUA: return "LUA";
400            case LUAQ: return "LUAQ";
401            case LUFA: return "LUFA";
402            case LVG: return "LVG";
403            case LVL: return "LVL";
404            case OD: return "OD";
405            case OS: return "OS";
406            case OU: return "OU";
407            case PA: return "PA";
408            case PERIN: return "PERIN";
409            case RA: return "RA";
410            case RAC: return "RAC";
411            case RACF: return "RACF";
412            case RD: return "RD";
413            case RE: return "RE";
414            case REJ: return "REJ";
415            case RF: return "RF";
416            case RG: return "RG";
417            case RH: return "RH";
418            case RIJ: return "RIJ";
419            case RLAQ: return "RLAQ";
420            case RLFA: return "RLFA";
421            case RMFA: return "RMFA";
422            case RN: return "RN";
423            case RPC: return "RPC";
424            case RSC: return "RSC";
425            case RT: return "RT";
426            case RUA: return "RUA";
427            case RUAQ: return "RUAQ";
428            case RUFA: return "RUFA";
429            case RVG: return "RVG";
430            case RVL: return "RVL";
431            case NULL: return null;
432            default: return "?";
433          }
434        }
435        public String getSystem() {
436          return "http://hl7.org/fhir/v3/ActSite";
437        }
438        public String getDefinition() {
439          switch (this) {
440            case _HUMANACTSITE: return "An anatomical location on a human which can be the focus of an act.";
441            case _HUMANSUBSTANCEADMINISTRATIONSITE: return "The set of body locations to or through which a drug product may be administered.";
442            case BE: return "bilateral ears";
443            case BN: return "bilateral nares";
444            case BU: return "buttock";
445            case LA: return "left arm";
446            case LAC: return "left anterior chest";
447            case LACF: return "left antecubital fossa";
448            case LD: return "left deltoid";
449            case LE: return "left ear";
450            case LEJ: return "left external jugular";
451            case LF: return "left foot";
452            case LG: return "left gluteus medius";
453            case LH: return "left hand";
454            case LIJ: return "left internal jugular";
455            case LLAQ: return "left lower abd quadrant";
456            case LLFA: return "left lower forearm";
457            case LMFA: return "left mid forearm";
458            case LN: return "left naris";
459            case LPC: return "left posterior chest";
460            case LSC: return "left subclavian";
461            case LT: return "left thigh";
462            case LUA: return "left upper arm";
463            case LUAQ: return "left upper abd quadrant";
464            case LUFA: return "left upper forearm";
465            case LVG: return "left ventragluteal";
466            case LVL: return "left vastus lateralis";
467            case OD: return "right eye";
468            case OS: return "left eye";
469            case OU: return "bilateral eyes";
470            case PA: return "perianal";
471            case PERIN: return "perineal";
472            case RA: return "right arm";
473            case RAC: return "right anterior chest";
474            case RACF: return "right antecubital fossa";
475            case RD: return "right deltoid";
476            case RE: return "right ear";
477            case REJ: return "right external jugular";
478            case RF: return "right foot";
479            case RG: return "right gluteus medius";
480            case RH: return "right hand";
481            case RIJ: return "right internal jugular";
482            case RLAQ: return "right lower abd quadrant";
483            case RLFA: return "right lower forearm";
484            case RMFA: return "right mid forearm";
485            case RN: return "right naris";
486            case RPC: return "right posterior chest";
487            case RSC: return "right subclavian";
488            case RT: return "right thigh";
489            case RUA: return "right upper arm";
490            case RUAQ: return "right upper abd quadrant";
491            case RUFA: return "right upper forearm";
492            case RVG: return "right ventragluteal";
493            case RVL: return "right vastus lateralis";
494            case NULL: return null;
495            default: return "?";
496          }
497        }
498        public String getDisplay() {
499          switch (this) {
500            case _HUMANACTSITE: return "HumanActSite";
501            case _HUMANSUBSTANCEADMINISTRATIONSITE: return "HumanSubstanceAdministrationSite";
502            case BE: return "bilateral ears";
503            case BN: return "bilateral nares";
504            case BU: return "buttock";
505            case LA: return "left arm";
506            case LAC: return "left anterior chest";
507            case LACF: return "left antecubital fossa";
508            case LD: return "left deltoid";
509            case LE: return "left ear";
510            case LEJ: return "left external jugular";
511            case LF: return "left foot";
512            case LG: return "left gluteus medius";
513            case LH: return "left hand";
514            case LIJ: return "left internal jugular";
515            case LLAQ: return "left lower abd quadrant";
516            case LLFA: return "left lower forearm";
517            case LMFA: return "left mid forearm";
518            case LN: return "left naris";
519            case LPC: return "left posterior chest";
520            case LSC: return "left subclavian";
521            case LT: return "left thigh";
522            case LUA: return "left upper arm";
523            case LUAQ: return "left upper abd quadrant";
524            case LUFA: return "left upper forearm";
525            case LVG: return "left ventragluteal";
526            case LVL: return "left vastus lateralis";
527            case OD: return "right eye";
528            case OS: return "left eye";
529            case OU: return "bilateral eyes";
530            case PA: return "perianal";
531            case PERIN: return "perineal";
532            case RA: return "right arm";
533            case RAC: return "right anterior chest";
534            case RACF: return "right antecubital fossa";
535            case RD: return "right deltoid";
536            case RE: return "right ear";
537            case REJ: return "right external jugular";
538            case RF: return "right foot";
539            case RG: return "right gluteus medius";
540            case RH: return "right hand";
541            case RIJ: return "right internal jugular";
542            case RLAQ: return "right lower abd quadrant";
543            case RLFA: return "right lower forearm";
544            case RMFA: return "right mid forearm";
545            case RN: return "right naris";
546            case RPC: return "right posterior chest";
547            case RSC: return "right subclavian";
548            case RT: return "right thigh";
549            case RUA: return "right upper arm";
550            case RUAQ: return "right upper abd quadrant";
551            case RUFA: return "right upper forearm";
552            case RVG: return "right ventragluteal";
553            case RVL: return "right vastus lateralis";
554            case NULL: return null;
555            default: return "?";
556          }
557    }
558
559
560}