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