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