001package org.hl7.fhir.r5.model.codesystems;
002
003/*
004 * #%L
005 * org.hl7.fhir.r5
006 * %%
007 * Copyright (C) 2014 - 2019 Health Level 7
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023/*
024  Copyright (c) 2011+, HL7, Inc.
025  All rights reserved.
026  
027  Redistribution and use in source and binary forms, with or without modification, 
028  are permitted provided that the following conditions are met:
029  
030   * Redistributions of source code must retain the above copyright notice, this 
031     list of conditions and the following disclaimer.
032   * Redistributions in binary form must reproduce the above copyright notice, 
033     this list of conditions and the following disclaimer in the documentation 
034     and/or other materials provided with the distribution.
035   * Neither the name of HL7 nor the names of its contributors may be used to 
036     endorse or promote products derived from this software without specific 
037     prior written permission.
038  
039  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
040  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
041  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
042  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
043  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
044  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
045  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
046  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
047  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
048  POSSIBILITY OF SUCH DAMAGE.
049  
050*/
051
052// Generated on Thu, Oct 17, 2019 09:42+1100 for FHIR v4.1.0
053
054
055import org.hl7.fhir.exceptions.FHIRException;
056
057public enum V3ParticipationMode {
058
059        /**
060         * Participation by non-human-languaged based electronic signal
061         */
062        ELECTRONIC, 
063        /**
064         * Participation by direct action where subject and actor are in the same location. (The participation involves more than communication.)
065         */
066        PHYSICAL, 
067        /**
068         * 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.)
069         */
070        REMOTE, 
071        /**
072         * Participation by voice communication
073         */
074        VERBAL, 
075        /**
076         * Participation by pre-recorded voice.  Communication is limited to one direction (from the recorder to recipient).
077         */
078        DICTATE, 
079        /**
080         * Participation by voice communication where parties speak to each other directly.
081         */
082        FACE, 
083        /**
084         * Participation by voice communication where the voices of the communicating parties are transported over an electronic medium
085         */
086        PHONE, 
087        /**
088         * Participation by voice and visual communication where the voices and images of the communicating parties are transported over an electronic medium
089         */
090        VIDEOCONF, 
091        /**
092         * Participation by human language recorded on a physical material
093         */
094        WRITTEN, 
095        /**
096         * Participation by text or diagrams printed on paper that have been transmitted over a fax device
097         */
098        FAXWRIT, 
099        /**
100         * Participation by text or diagrams printed on paper or other recording medium
101         */
102        HANDWRIT, 
103        /**
104         * Participation by text or diagrams printed on paper transmitted physically (e.g. by courier service, postal service).
105         */
106        MAILWRIT, 
107        /**
108         * Participation by text or diagrams submitted by computer network, e.g. online survey.
109         */
110        ONLINEWRIT, 
111        /**
112         * Participation by text or diagrams transmitted over an electronic mail system.
113         */
114        EMAILWRIT, 
115        /**
116         * 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.
117         */
118        TYPEWRIT, 
119        /**
120         * added to help the parsers
121         */
122        NULL;
123        public static V3ParticipationMode fromCode(String codeString) throws FHIRException {
124            if (codeString == null || "".equals(codeString))
125                return null;
126        if ("ELECTRONIC".equals(codeString))
127          return ELECTRONIC;
128        if ("PHYSICAL".equals(codeString))
129          return PHYSICAL;
130        if ("REMOTE".equals(codeString))
131          return REMOTE;
132        if ("VERBAL".equals(codeString))
133          return VERBAL;
134        if ("DICTATE".equals(codeString))
135          return DICTATE;
136        if ("FACE".equals(codeString))
137          return FACE;
138        if ("PHONE".equals(codeString))
139          return PHONE;
140        if ("VIDEOCONF".equals(codeString))
141          return VIDEOCONF;
142        if ("WRITTEN".equals(codeString))
143          return WRITTEN;
144        if ("FAXWRIT".equals(codeString))
145          return FAXWRIT;
146        if ("HANDWRIT".equals(codeString))
147          return HANDWRIT;
148        if ("MAILWRIT".equals(codeString))
149          return MAILWRIT;
150        if ("ONLINEWRIT".equals(codeString))
151          return ONLINEWRIT;
152        if ("EMAILWRIT".equals(codeString))
153          return EMAILWRIT;
154        if ("TYPEWRIT".equals(codeString))
155          return TYPEWRIT;
156        throw new FHIRException("Unknown V3ParticipationMode code '"+codeString+"'");
157        }
158        public String toCode() {
159          switch (this) {
160            case ELECTRONIC: return "ELECTRONIC";
161            case PHYSICAL: return "PHYSICAL";
162            case REMOTE: return "REMOTE";
163            case VERBAL: return "VERBAL";
164            case DICTATE: return "DICTATE";
165            case FACE: return "FACE";
166            case PHONE: return "PHONE";
167            case VIDEOCONF: return "VIDEOCONF";
168            case WRITTEN: return "WRITTEN";
169            case FAXWRIT: return "FAXWRIT";
170            case HANDWRIT: return "HANDWRIT";
171            case MAILWRIT: return "MAILWRIT";
172            case ONLINEWRIT: return "ONLINEWRIT";
173            case EMAILWRIT: return "EMAILWRIT";
174            case TYPEWRIT: return "TYPEWRIT";
175            default: return "?";
176          }
177        }
178        public String getSystem() {
179          return "http://terminology.hl7.org/CodeSystem/v3-ParticipationMode";
180        }
181        public String getDefinition() {
182          switch (this) {
183            case ELECTRONIC: return "Participation by non-human-languaged based electronic signal";
184            case PHYSICAL: return "Participation by direct action where subject and actor are in the same location. (The participation involves more than communication.)";
185            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.)";
186            case VERBAL: return "Participation by voice communication";
187            case DICTATE: return "Participation by pre-recorded voice.  Communication is limited to one direction (from the recorder to recipient).";
188            case FACE: return "Participation by voice communication where parties speak to each other directly.";
189            case PHONE: return "Participation by voice communication where the voices of the communicating parties are transported over an electronic medium";
190            case VIDEOCONF: return "Participation by voice and visual communication where the voices and images of the communicating parties are transported over an electronic medium";
191            case WRITTEN: return "Participation by human language recorded on a physical material";
192            case FAXWRIT: return "Participation by text or diagrams printed on paper that have been transmitted over a fax device";
193            case HANDWRIT: return "Participation by text or diagrams printed on paper or other recording medium";
194            case MAILWRIT: return "Participation by text or diagrams printed on paper transmitted physically (e.g. by courier service, postal service).";
195            case ONLINEWRIT: return "Participation by text or diagrams submitted by computer network, e.g. online survey.";
196            case EMAILWRIT: return "Participation by text or diagrams transmitted over an electronic mail system.";
197            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.";
198            default: return "?";
199          }
200        }
201        public String getDisplay() {
202          switch (this) {
203            case ELECTRONIC: return "electronic data";
204            case PHYSICAL: return "physical presence";
205            case REMOTE: return "remote presence";
206            case VERBAL: return "verbal";
207            case DICTATE: return "dictated";
208            case FACE: return "face-to-face";
209            case PHONE: return "telephone";
210            case VIDEOCONF: return "videoconferencing";
211            case WRITTEN: return "written";
212            case FAXWRIT: return "telefax";
213            case HANDWRIT: return "handwritten";
214            case MAILWRIT: return "mail";
215            case ONLINEWRIT: return "online written";
216            case EMAILWRIT: return "email";
217            case TYPEWRIT: return "typewritten";
218            default: return "?";
219          }
220    }
221
222
223}
224