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 V3EntityNameUseR2 { 058 059 /** 060 * Description:A name that a person has assumed or has been assumed to them. 061 */ 062 ASSUMED, 063 /** 064 * Description:A name used in a Professional or Business context . Examples: Continuing to use a maiden name in a professional context, or using a stage performing name (some of these names are also pseudonyms) 065 */ 066 A, 067 /** 068 * Description:Anonymous assigned name (used to protect a persons identity for privacy reasons) 069 */ 070 ANON, 071 /** 072 * Description:e.g . Chief Red Cloud 073 */ 074 I, 075 /** 076 * Description:A non-official name by which the person is sometimes known. (This may also be used to record informal names such as a nickname) 077 */ 078 P, 079 /** 080 * Description:A name assumed as part of a religious vocation . e.g . Sister Mary Francis, Brother John 081 */ 082 R, 083 /** 084 * Description:Known as/conventional/the one you normally use 085 */ 086 C, 087 /** 088 * Description:A name used prior to marriage.Note that marriage naming customs vary greatly around the world. This name use is for use by applications that collect and store maiden names. Though the concept of maiden name is often gender specific, the use of this term is not gender specific. The use of this term does not imply any particular history for a person's name, nor should the maiden name be determined algorithmically 089 */ 090 M, 091 /** 092 * Description:Identifies the different representations of a name . The representation may affect how the name is used . (E.g . use of Ideographic for formal communications.) 093 */ 094 NAMEREPRESENTATIONUSE, 095 /** 096 * Description:Alphabetic transcription of name in latin alphabet (Japanese: romaji) 097 */ 098 ABC, 099 /** 100 * Description:Ideographic representation of name (e.g., Japanese kanji, Chinese characters) 101 */ 102 IDE, 103 /** 104 * Description:Syllabic transcription of name (e.g., Japanese kana, Korean hangul) 105 */ 106 SYL, 107 /** 108 * Description:This name is no longer in use (note: Names may also carry valid time ranges . This code is used to cover the situations where it is known that the name is no longer valid, but no particular time range for its use is known) 109 */ 110 OLD, 111 /** 112 * Description:This name should no longer be used when interacting with the person (i.e . in addition to no longer being used, the name should not be even mentioned when interacting with the person)Note: applications are not required to compare names labeled "Do Not Use" and other names in order to eliminate name parts that are common between the other name and a name labeled "Do Not Use". 113 */ 114 DN, 115 /** 116 * Description:The formal name as registered in an official (government) registry, but which name might not be commonly used . May correspond to the concept of legal name 117 */ 118 OR, 119 /** 120 * Description:The name as understood by the data enterer, i.e. a close approximation of a phonetic spelling of the name, not based on a phonetic algorithm. 121 */ 122 PHON, 123 /** 124 * Description:A name intended for use in searching or matching. This is used when the name is incomplete and contains enough details for search matching, but not enough for other uses. 125 */ 126 SRCH, 127 /** 128 * Description:A temporary name. Note that a name valid time can provide more detailed information. This may also be used for temporary names assigned at birth or in emergency situations. 129 */ 130 T, 131 /** 132 * added to help the parsers 133 */ 134 NULL; 135 public static V3EntityNameUseR2 fromCode(String codeString) throws FHIRException { 136 if (codeString == null || "".equals(codeString)) 137 return null; 138 if ("Assumed".equals(codeString)) 139 return ASSUMED; 140 if ("A".equals(codeString)) 141 return A; 142 if ("ANON".equals(codeString)) 143 return ANON; 144 if ("I".equals(codeString)) 145 return I; 146 if ("P".equals(codeString)) 147 return P; 148 if ("R".equals(codeString)) 149 return R; 150 if ("C".equals(codeString)) 151 return C; 152 if ("M".equals(codeString)) 153 return M; 154 if ("NameRepresentationUse".equals(codeString)) 155 return NAMEREPRESENTATIONUSE; 156 if ("ABC".equals(codeString)) 157 return ABC; 158 if ("IDE".equals(codeString)) 159 return IDE; 160 if ("SYL".equals(codeString)) 161 return SYL; 162 if ("OLD".equals(codeString)) 163 return OLD; 164 if ("DN".equals(codeString)) 165 return DN; 166 if ("OR".equals(codeString)) 167 return OR; 168 if ("PHON".equals(codeString)) 169 return PHON; 170 if ("SRCH".equals(codeString)) 171 return SRCH; 172 if ("T".equals(codeString)) 173 return T; 174 throw new FHIRException("Unknown V3EntityNameUseR2 code '"+codeString+"'"); 175 } 176 public String toCode() { 177 switch (this) { 178 case ASSUMED: return "Assumed"; 179 case A: return "A"; 180 case ANON: return "ANON"; 181 case I: return "I"; 182 case P: return "P"; 183 case R: return "R"; 184 case C: return "C"; 185 case M: return "M"; 186 case NAMEREPRESENTATIONUSE: return "NameRepresentationUse"; 187 case ABC: return "ABC"; 188 case IDE: return "IDE"; 189 case SYL: return "SYL"; 190 case OLD: return "OLD"; 191 case DN: return "DN"; 192 case OR: return "OR"; 193 case PHON: return "PHON"; 194 case SRCH: return "SRCH"; 195 case T: return "T"; 196 default: return "?"; 197 } 198 } 199 public String getSystem() { 200 return "http://terminology.hl7.org/CodeSystem/v3-EntityNameUseR2"; 201 } 202 public String getDefinition() { 203 switch (this) { 204 case ASSUMED: return "Description:A name that a person has assumed or has been assumed to them."; 205 case A: return "Description:A name used in a Professional or Business context . Examples: Continuing to use a maiden name in a professional context, or using a stage performing name (some of these names are also pseudonyms)"; 206 case ANON: return "Description:Anonymous assigned name (used to protect a persons identity for privacy reasons)"; 207 case I: return "Description:e.g . Chief Red Cloud"; 208 case P: return "Description:A non-official name by which the person is sometimes known. (This may also be used to record informal names such as a nickname)"; 209 case R: return "Description:A name assumed as part of a religious vocation . e.g . Sister Mary Francis, Brother John"; 210 case C: return "Description:Known as/conventional/the one you normally use"; 211 case M: return "Description:A name used prior to marriage.Note that marriage naming customs vary greatly around the world. This name use is for use by applications that collect and store maiden names. Though the concept of maiden name is often gender specific, the use of this term is not gender specific. The use of this term does not imply any particular history for a person's name, nor should the maiden name be determined algorithmically"; 212 case NAMEREPRESENTATIONUSE: return "Description:Identifies the different representations of a name . The representation may affect how the name is used . (E.g . use of Ideographic for formal communications.)"; 213 case ABC: return "Description:Alphabetic transcription of name in latin alphabet (Japanese: romaji)"; 214 case IDE: return "Description:Ideographic representation of name (e.g., Japanese kanji, Chinese characters)"; 215 case SYL: return "Description:Syllabic transcription of name (e.g., Japanese kana, Korean hangul)"; 216 case OLD: return "Description:This name is no longer in use (note: Names may also carry valid time ranges . This code is used to cover the situations where it is known that the name is no longer valid, but no particular time range for its use is known)"; 217 case DN: return "Description:This name should no longer be used when interacting with the person (i.e . in addition to no longer being used, the name should not be even mentioned when interacting with the person)Note: applications are not required to compare names labeled \"Do Not Use\" and other names in order to eliminate name parts that are common between the other name and a name labeled \"Do Not Use\"."; 218 case OR: return "Description:The formal name as registered in an official (government) registry, but which name might not be commonly used . May correspond to the concept of legal name"; 219 case PHON: return "Description:The name as understood by the data enterer, i.e. a close approximation of a phonetic spelling of the name, not based on a phonetic algorithm."; 220 case SRCH: return "Description:A name intended for use in searching or matching. This is used when the name is incomplete and contains enough details for search matching, but not enough for other uses."; 221 case T: return "Description:A temporary name. Note that a name valid time can provide more detailed information. This may also be used for temporary names assigned at birth or in emergency situations."; 222 default: return "?"; 223 } 224 } 225 public String getDisplay() { 226 switch (this) { 227 case ASSUMED: return "Assumed"; 228 case A: return "business name"; 229 case ANON: return "Anonymous"; 230 case I: return "Indigenous/Tribal"; 231 case P: return "Other/Pseudonym/Alias"; 232 case R: return "religious"; 233 case C: return "customary"; 234 case M: return "maiden name"; 235 case NAMEREPRESENTATIONUSE: return "NameRepresentationUse"; 236 case ABC: return "alphabetic"; 237 case IDE: return "ideographic"; 238 case SYL: return "syllabic"; 239 case OLD: return "no longer in use"; 240 case DN: return "do not use"; 241 case OR: return "official registry name"; 242 case PHON: return "phonetic"; 243 case SRCH: return "search"; 244 case T: return "temporary"; 245 default: return "?"; 246 } 247 } 248 249 250} 251