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