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 Thu, Sep 13, 2018 09:04-0400 for FHIR v3.5.0
033
034
035import org.hl7.fhir.exceptions.FHIRException;
036
037public enum V3ParticipationMode {
038
039        /**
040         * Participation by non-human-languaged based electronic signal
041         */
042        ELECTRONIC, 
043        /**
044         * Participation by direct action where subject and actor are in the same location. (The participation involves more than communication.)
045         */
046        PHYSICAL, 
047        /**
048         * Participation by direct action where subject and actor are in separate locations, and the actions of the actor are transmitted by electronic or mechanical means. (The participation involves more than communication.)
049         */
050        REMOTE, 
051        /**
052         * Participation by voice communication
053         */
054        VERBAL, 
055        /**
056         * Participation by pre-recorded voice.  Communication is limited to one direction (from the recorder to recipient).
057         */
058        DICTATE, 
059        /**
060         * Participation by voice communication where parties speak to each other directly.
061         */
062        FACE, 
063        /**
064         * Participation by voice communication where the voices of the communicating parties are transported over an electronic medium
065         */
066        PHONE, 
067        /**
068         * Participation by voice and visual communication where the voices and images of the communicating parties are transported over an electronic medium
069         */
070        VIDEOCONF, 
071        /**
072         * Participation by human language recorded on a physical material
073         */
074        WRITTEN, 
075        /**
076         * Participation by text or diagrams printed on paper that have been transmitted over a fax device
077         */
078        FAXWRIT, 
079        /**
080         * Participation by text or diagrams printed on paper or other recording medium
081         */
082        HANDWRIT, 
083        /**
084         * Participation by text or diagrams printed on paper transmitted physically (e.g. by courier service, postal service).
085         */
086        MAILWRIT, 
087        /**
088         * Participation by text or diagrams submitted by computer network, e.g. online survey.
089         */
090        ONLINEWRIT, 
091        /**
092         * Participation by text or diagrams transmitted over an electronic mail system.
093         */
094        EMAILWRIT, 
095        /**
096         * Participation by text or diagrams printed on paper or other recording medium where the recording was performed using a typewriter, typesetter, computer or similar mechanism.
097         */
098        TYPEWRIT, 
099        /**
100         * added to help the parsers
101         */
102        NULL;
103        public static V3ParticipationMode fromCode(String codeString) throws FHIRException {
104            if (codeString == null || "".equals(codeString))
105                return null;
106        if ("ELECTRONIC".equals(codeString))
107          return ELECTRONIC;
108        if ("PHYSICAL".equals(codeString))
109          return PHYSICAL;
110        if ("REMOTE".equals(codeString))
111          return REMOTE;
112        if ("VERBAL".equals(codeString))
113          return VERBAL;
114        if ("DICTATE".equals(codeString))
115          return DICTATE;
116        if ("FACE".equals(codeString))
117          return FACE;
118        if ("PHONE".equals(codeString))
119          return PHONE;
120        if ("VIDEOCONF".equals(codeString))
121          return VIDEOCONF;
122        if ("WRITTEN".equals(codeString))
123          return WRITTEN;
124        if ("FAXWRIT".equals(codeString))
125          return FAXWRIT;
126        if ("HANDWRIT".equals(codeString))
127          return HANDWRIT;
128        if ("MAILWRIT".equals(codeString))
129          return MAILWRIT;
130        if ("ONLINEWRIT".equals(codeString))
131          return ONLINEWRIT;
132        if ("EMAILWRIT".equals(codeString))
133          return EMAILWRIT;
134        if ("TYPEWRIT".equals(codeString))
135          return TYPEWRIT;
136        throw new FHIRException("Unknown V3ParticipationMode code '"+codeString+"'");
137        }
138        public String toCode() {
139          switch (this) {
140            case ELECTRONIC: return "ELECTRONIC";
141            case PHYSICAL: return "PHYSICAL";
142            case REMOTE: return "REMOTE";
143            case VERBAL: return "VERBAL";
144            case DICTATE: return "DICTATE";
145            case FACE: return "FACE";
146            case PHONE: return "PHONE";
147            case VIDEOCONF: return "VIDEOCONF";
148            case WRITTEN: return "WRITTEN";
149            case FAXWRIT: return "FAXWRIT";
150            case HANDWRIT: return "HANDWRIT";
151            case MAILWRIT: return "MAILWRIT";
152            case ONLINEWRIT: return "ONLINEWRIT";
153            case EMAILWRIT: return "EMAILWRIT";
154            case TYPEWRIT: return "TYPEWRIT";
155            default: return "?";
156          }
157        }
158        public String getSystem() {
159          return "http://terminology.hl7.org/CodeSystem/v3-ParticipationMode";
160        }
161        public String getDefinition() {
162          switch (this) {
163            case ELECTRONIC: return "Participation by non-human-languaged based electronic signal";
164            case PHYSICAL: return "Participation by direct action where subject and actor are in the same location. (The participation involves more than communication.)";
165            case REMOTE: return "Participation by direct action where subject and actor are in separate locations, and the actions of the actor are transmitted by electronic or mechanical means. (The participation involves more than communication.)";
166            case VERBAL: return "Participation by voice communication";
167            case DICTATE: return "Participation by pre-recorded voice.  Communication is limited to one direction (from the recorder to recipient).";
168            case FACE: return "Participation by voice communication where parties speak to each other directly.";
169            case PHONE: return "Participation by voice communication where the voices of the communicating parties are transported over an electronic medium";
170            case VIDEOCONF: return "Participation by voice and visual communication where the voices and images of the communicating parties are transported over an electronic medium";
171            case WRITTEN: return "Participation by human language recorded on a physical material";
172            case FAXWRIT: return "Participation by text or diagrams printed on paper that have been transmitted over a fax device";
173            case HANDWRIT: return "Participation by text or diagrams printed on paper or other recording medium";
174            case MAILWRIT: return "Participation by text or diagrams printed on paper transmitted physically (e.g. by courier service, postal service).";
175            case ONLINEWRIT: return "Participation by text or diagrams submitted by computer network, e.g. online survey.";
176            case EMAILWRIT: return "Participation by text or diagrams transmitted over an electronic mail system.";
177            case TYPEWRIT: return "Participation by text or diagrams printed on paper or other recording medium where the recording was performed using a typewriter, typesetter, computer or similar mechanism.";
178            default: return "?";
179          }
180        }
181        public String getDisplay() {
182          switch (this) {
183            case ELECTRONIC: return "electronic data";
184            case PHYSICAL: return "physical presence";
185            case REMOTE: return "remote presence";
186            case VERBAL: return "verbal";
187            case DICTATE: return "dictated";
188            case FACE: return "face-to-face";
189            case PHONE: return "telephone";
190            case VIDEOCONF: return "videoconferencing";
191            case WRITTEN: return "written";
192            case FAXWRIT: return "telefax";
193            case HANDWRIT: return "handwritten";
194            case MAILWRIT: return "mail";
195            case ONLINEWRIT: return "online written";
196            case EMAILWRIT: return "email";
197            case TYPEWRIT: return "typewritten";
198            default: return "?";
199          }
200    }
201
202
203}
204