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 V3EntityNamePartQualifierR2 { 058 059 /** 060 * Description:A name part a person acquired. The name part may be acquired by adoption, or the person may have chosen to use the name part for some other reason. 061 062 063 Note: this differs from an Other/Psuedonym/Alias in that an acquired name part is acquired on a formal basis rather than an informal one (e.g. registered as part of the official name). 064 */ 065 AD, 066 /** 067 * Description:The name assumed from the partner in a marital relationship. Usually the spouse's family name. Note that no inference about gender can be made from the existence of spouse names. 068 */ 069 SP, 070 /** 071 * Description:A name that a person was given at birth or established as a consequence of adoption. 072 073 074 Note: This is not used for temporary names assigned at birth such as "Baby of Smith" a" which is just a name with a use code of "TEMP". 075 */ 076 BR, 077 /** 078 * Description:Used to indicate which of the various name parts is used when interacting with the person. 079 */ 080 CL, 081 /** 082 * Description:Indicates that a name part is just an initial. Initials do not imply a trailing period since this would not work with non-Latin scripts. In some languages, initials may consist of more than one letter, e.g., "Ph" could stand for "Philippe" or "Th" For "Thomas". 083 */ 084 IN, 085 /** 086 * Description:For organizations a suffix indicating the legal status, e.g., "Inc.", "Co.", "AG", "GmbH", "B.V." "S.A.", "Ltd." etc. 087 */ 088 LS, 089 /** 090 * Description:Indicates that the name part is a middle name. 091 092 093 Usage Notes: In general, the english "middle name" concept is all of the given names after the first. This qualifier may be used to explicitly indicate which given names are considered to be middle names. The middle name qualifier may also be used with family names. This is a Scandinavian use case, matching the concept of "mellomnavn","mellannamn". Note that there are specific rules that indicate what names may be taken as a mellannamn in different Scandinavian countries. 094 */ 095 MID, 096 /** 097 * Description:A prefix has a strong association to the immediately following name part. A prefix has no implicit trailing white space (it has implicit leading white space though). 098 */ 099 PFX, 100 /** 101 * Description: Medication Name Parts are a means of specifying a range of acceptable "official" forms of the name of a product. They are used as patterns against which input name strings may be matched for automatic identification of products from input text reports. While they cover the concepts held under "doseForm" or "route" or "strength" the name parts are not the same and do not fit into a controlled vocabulary in the same way. By specifying up to 8 name parts a much larger range of possible names can be generated. 102 */ 103 PHARMACEUTICALENTITYNAMEPARTQUALIFIERS, 104 /** 105 * Description: This refers to the container if present in the medicinal product name. 106 107 EXAMPLES: 108 109 110 111 For Optaflu suspension for injection in pre-filled syringe Influenza vaccine (surface antigen, inactivated, prepared in cell culture) (2007/2008 season): pre-filled syringe 112 */ 113 CON, 114 /** 115 * Description: This refers to the qualifiers in the name for devices and is at the moment mainly applicable to insulins and inhalation products. 116 117 EXAMPLES: 118 119 120 121 For the medicinal product Actrapid FlexPen 100 IU/ml Solution for injection Subcutaneous use: FlexPen. 122 */ 123 DEV, 124 /** 125 * Description: This refers to a flavor of the medicinal product if present in the medicinal product name. 126 127 128 Examples: 129 130 131 132 For 'CoughCure Linctus Orange Flavor', the flavor part is "Orange" 133 For 'Wonderdrug Syrup Cherry Flavor', the flavor part is "Cherry" 134 */ 135 FLAV, 136 /** 137 * Description: This refers to the formulation of the medicinal product if present in the medicinal product name. 138 139 140 Examples: 141 142 143 144 For 'SpecialMed Sugar Free Cough Syrup', the formulation name part is "Sugar Free" 145 For 'QuickCure Gluten-free Bulk Fibre', the formulation name part is "gluten-free" 146 */ 147 FORMUL, 148 /** 149 * Description: This refers to the pharmaceutical form/ if present in the medicinal product name. 150 151 EXAMPLES: 152 153 154 155 For Agenerase 50 mg soft capsules: Soft Capsules 156 157 158 159 For Ludiomil 25mg-Filmtabletten: Filmtabletten 160 161 162 163 For Optaflu suspension for injection in pre-filled syringe Influenza vaccine (surface antigen, inactivated, prepared in cell culture) (2007/2008 season): suspension for injection 164 */ 165 FRM, 166 /** 167 * Description: This refers to the product name without the trademark or the name of the marketing authorization holder or any other descriptor reflected in the product name and, if appropriate, whether it is intended e.g. for babies, children or adults. 168 169 EXAMPLES: 170 171 172 173 Agenerase 174 175 176 177 Optaflu 178 179 180 181 Ludiomil 182 */ 183 INV, 184 /** 185 * Description: This refers to the target population for the medicinal product if present in the medicinal product name 186 187 188 Examples: 189 190 191 192 For 'Broncho-Drug 3.5 mg-capsules for children', the target population part is "children" 193 For 'Adult Chesty Cough Syrup', the target population part is "adult" 194 */ 195 POPUL, 196 /** 197 * Description: This refers to the product common or scientific name without the trademark or the name of the marketing authorization holder or any other descriptor reflected in the product name. 198 199 EXAMPLES: 200 201 202 203 For Agenerase: N/A 204 205 206 207 For Optaflu: Influenza vaccine (surface antigen, inactivated, prepared in cell culture) (2007/2008 season) 208 209 210 211 For Ludiomil: N/A 212 */ 213 SCI, 214 /** 215 * Description: This refers to the strength if present in the medicinal product name. The use of decimal points should be accommodated if required. 216 217 EXAMPLES: 218 219 220 221 For Agenerase 50 mg soft capsules: 50mg 222 223 224 225 For Ludiomil 25mg-Filmtabletten: 25 mg 226 227 228 229 For Optaflu suspension for injection in pre-filled syringe Influenza vaccine (surface antigen, inactivated, prepared in cell culture) (2007/2008 season): N/A 230 */ 231 STR, 232 /** 233 * Description: This refers to a time or time period that may be specified in the text of the medicinal product name 234 235 236 Example: 237 238 239 240 For an influenza vaccine 'Drug-FLU season 2008/2009', the time/period part is "2008/2009 season" 241 */ 242 TIME, 243 /** 244 * Description: This refers to trademark/company element if present in the medicinal product name. 245 246 EXAMPLES: 247 248 249 250 for Insulin Human Winthrop Comb 15: Winthrop 251 */ 252 TMK, 253 /** 254 * Description: This refers to the intended use if present in the medicinal product name without the trademark or the name of the marketing authorization holder or any other descriptor reflected in the product name. 255 256 257 258 Examples: 259 260 261 262 For 'Drug-BI Caplets - Heartburn Relief', the intended use part is: "Heartburn Relief" 263 For 'Medicine Honey Syrup for Soothing Coughs' the intended use part is "Soothing Coughs" 264 */ 265 USE, 266 /** 267 * Description:A suffix has a strong association to the immediately preceding name part. A suffix has no implicit leading white space (it has implicit trailing white space though). 268 */ 269 SFX, 270 /** 271 * Description:Extra information about the style of a title 272 */ 273 TITLESTYLES, 274 /** 275 * Description:Indicates that a title like "Dr.", "M.D." or "Ph.D." is an academic title. 276 */ 277 AC, 278 /** 279 * Description:A honorific such as "The Right Honourable" or "Weledelgeleerde Heer". 280 */ 281 HON, 282 /** 283 * Description:A nobility title such as Sir, Count, Grafin. 284 */ 285 NB, 286 /** 287 * Description:Primarily in the British Imperial culture people tend to have an abbreviation of their professional organization as part of their credential titles. 288 */ 289 PR, 290 /** 291 * added to help the parsers 292 */ 293 NULL; 294 public static V3EntityNamePartQualifierR2 fromCode(String codeString) throws FHIRException { 295 if (codeString == null || "".equals(codeString)) 296 return null; 297 if ("AD".equals(codeString)) 298 return AD; 299 if ("SP".equals(codeString)) 300 return SP; 301 if ("BR".equals(codeString)) 302 return BR; 303 if ("CL".equals(codeString)) 304 return CL; 305 if ("IN".equals(codeString)) 306 return IN; 307 if ("LS".equals(codeString)) 308 return LS; 309 if ("MID".equals(codeString)) 310 return MID; 311 if ("PFX".equals(codeString)) 312 return PFX; 313 if ("PharmaceuticalEntityNamePartQualifiers".equals(codeString)) 314 return PHARMACEUTICALENTITYNAMEPARTQUALIFIERS; 315 if ("CON".equals(codeString)) 316 return CON; 317 if ("DEV".equals(codeString)) 318 return DEV; 319 if ("FLAV".equals(codeString)) 320 return FLAV; 321 if ("FORMUL".equals(codeString)) 322 return FORMUL; 323 if ("FRM".equals(codeString)) 324 return FRM; 325 if ("INV".equals(codeString)) 326 return INV; 327 if ("POPUL".equals(codeString)) 328 return POPUL; 329 if ("SCI".equals(codeString)) 330 return SCI; 331 if ("STR".equals(codeString)) 332 return STR; 333 if ("TIME".equals(codeString)) 334 return TIME; 335 if ("TMK".equals(codeString)) 336 return TMK; 337 if ("USE".equals(codeString)) 338 return USE; 339 if ("SFX".equals(codeString)) 340 return SFX; 341 if ("TitleStyles".equals(codeString)) 342 return TITLESTYLES; 343 if ("AC".equals(codeString)) 344 return AC; 345 if ("HON".equals(codeString)) 346 return HON; 347 if ("NB".equals(codeString)) 348 return NB; 349 if ("PR".equals(codeString)) 350 return PR; 351 throw new FHIRException("Unknown V3EntityNamePartQualifierR2 code '"+codeString+"'"); 352 } 353 public String toCode() { 354 switch (this) { 355 case AD: return "AD"; 356 case SP: return "SP"; 357 case BR: return "BR"; 358 case CL: return "CL"; 359 case IN: return "IN"; 360 case LS: return "LS"; 361 case MID: return "MID"; 362 case PFX: return "PFX"; 363 case PHARMACEUTICALENTITYNAMEPARTQUALIFIERS: return "PharmaceuticalEntityNamePartQualifiers"; 364 case CON: return "CON"; 365 case DEV: return "DEV"; 366 case FLAV: return "FLAV"; 367 case FORMUL: return "FORMUL"; 368 case FRM: return "FRM"; 369 case INV: return "INV"; 370 case POPUL: return "POPUL"; 371 case SCI: return "SCI"; 372 case STR: return "STR"; 373 case TIME: return "TIME"; 374 case TMK: return "TMK"; 375 case USE: return "USE"; 376 case SFX: return "SFX"; 377 case TITLESTYLES: return "TitleStyles"; 378 case AC: return "AC"; 379 case HON: return "HON"; 380 case NB: return "NB"; 381 case PR: return "PR"; 382 default: return "?"; 383 } 384 } 385 public String getSystem() { 386 return "http://terminology.hl7.org/CodeSystem/v3-EntityNamePartQualifierR2"; 387 } 388 public String getDefinition() { 389 switch (this) { 390 case AD: return "Description:A name part a person acquired. The name part may be acquired by adoption, or the person may have chosen to use the name part for some other reason.\r\n\n \n Note: this differs from an Other/Psuedonym/Alias in that an acquired name part is acquired on a formal basis rather than an informal one (e.g. registered as part of the official name)."; 391 case SP: return "Description:The name assumed from the partner in a marital relationship. Usually the spouse's family name. Note that no inference about gender can be made from the existence of spouse names."; 392 case BR: return "Description:A name that a person was given at birth or established as a consequence of adoption. \r\n\n \n Note: This is not used for temporary names assigned at birth such as \"Baby of Smith\" a\" which is just a name with a use code of \"TEMP\"."; 393 case CL: return "Description:Used to indicate which of the various name parts is used when interacting with the person."; 394 case IN: return "Description:Indicates that a name part is just an initial. Initials do not imply a trailing period since this would not work with non-Latin scripts. In some languages, initials may consist of more than one letter, e.g., \"Ph\" could stand for \"Philippe\" or \"Th\" For \"Thomas\"."; 395 case LS: return "Description:For organizations a suffix indicating the legal status, e.g., \"Inc.\", \"Co.\", \"AG\", \"GmbH\", \"B.V.\" \"S.A.\", \"Ltd.\" etc."; 396 case MID: return "Description:Indicates that the name part is a middle name.\r\n\n \n Usage Notes: In general, the english \"middle name\" concept is all of the given names after the first. This qualifier may be used to explicitly indicate which given names are considered to be middle names. The middle name qualifier may also be used with family names. This is a Scandinavian use case, matching the concept of \"mellomnavn\",\"mellannamn\". Note that there are specific rules that indicate what names may be taken as a mellannamn in different Scandinavian countries."; 397 case PFX: return "Description:A prefix has a strong association to the immediately following name part. A prefix has no implicit trailing white space (it has implicit leading white space though)."; 398 case PHARMACEUTICALENTITYNAMEPARTQUALIFIERS: return "Description: Medication Name Parts are a means of specifying a range of acceptable \"official\" forms of the name of a product. They are used as patterns against which input name strings may be matched for automatic identification of products from input text reports. While they cover the concepts held under \"doseForm\" or \"route\" or \"strength\" the name parts are not the same and do not fit into a controlled vocabulary in the same way. By specifying up to 8 name parts a much larger range of possible names can be generated."; 399 case CON: return "Description: This refers to the container if present in the medicinal product name.\r\n\n EXAMPLES: \r\n\n \n \n For Optaflu suspension for injection in pre-filled syringe Influenza vaccine (surface antigen, inactivated, prepared in cell culture) (2007/2008 season): pre-filled syringe"; 400 case DEV: return "Description: This refers to the qualifiers in the name for devices and is at the moment mainly applicable to insulins and inhalation products.\r\n\n EXAMPLES: \r\n\n \n \n For the medicinal product Actrapid FlexPen 100 IU/ml Solution for injection Subcutaneous use: FlexPen."; 401 case FLAV: return "Description: This refers to a flavor of the medicinal product if present in the medicinal product name.\r\n\n \n Examples:\n \r\n\n \n For 'CoughCure Linctus Orange Flavor', the flavor part is \"Orange\"\n For 'Wonderdrug Syrup Cherry Flavor', the flavor part is \"Cherry\""; 402 case FORMUL: return "Description: This refers to the formulation of the medicinal product if present in the medicinal product name.\r\n\n \n Examples:\n \r\n\n \n For 'SpecialMed Sugar Free Cough Syrup', the formulation name part is \"Sugar Free\"\n For 'QuickCure Gluten-free Bulk Fibre', the formulation name part is \"gluten-free\""; 403 case FRM: return "Description: This refers to the pharmaceutical form/ if present in the medicinal product name.\r\n\n EXAMPLES: \r\n\n \n \n For Agenerase 50 mg soft capsules: Soft Capsules\r\n\n \n \n For Ludiomil 25mg-Filmtabletten: Filmtabletten\r\n\n \n \n For Optaflu suspension for injection in pre-filled syringe Influenza vaccine (surface antigen, inactivated, prepared in cell culture) (2007/2008 season): suspension for injection"; 404 case INV: return "Description: This refers to the product name without the trademark or the name of the marketing authorization holder or any other descriptor reflected in the product name and, if appropriate, whether it is intended e.g. for babies, children or adults. \r\n\n EXAMPLES: \r\n\n \n \n Agenerase\r\n\n \n \n Optaflu\r\n\n \n \n Ludiomil"; 405 case POPUL: return "Description: This refers to the target population for the medicinal product if present in the medicinal product name\r\n\n \n Examples:\n \r\n\n \n For 'Broncho-Drug 3.5 mg-capsules for children', the target population part is \"children\"\n For 'Adult Chesty Cough Syrup', the target population part is \"adult\""; 406 case SCI: return "Description: This refers to the product common or scientific name without the trademark or the name of the marketing authorization holder or any other descriptor reflected in the product name.\r\n\n EXAMPLES: \r\n\n \n \n For Agenerase: N/A\r\n\n \n \n For Optaflu: Influenza vaccine (surface antigen, inactivated, prepared in cell culture) (2007/2008 season)\r\n\n \n \n For Ludiomil: N/A"; 407 case STR: return "Description: This refers to the strength if present in the medicinal product name. The use of decimal points should be accommodated if required.\r\n\n EXAMPLES:\r\n\n \n \n For Agenerase 50 mg soft capsules: 50mg\r\n\n \n \n For Ludiomil 25mg-Filmtabletten: 25 mg\r\n\n \n \n For Optaflu suspension for injection in pre-filled syringe Influenza vaccine (surface antigen, inactivated, prepared in cell culture) (2007/2008 season): N/A"; 408 case TIME: return "Description: This refers to a time or time period that may be specified in the text of the medicinal product name\r\n\n \n Example:\n \r\n\n \n For an influenza vaccine 'Drug-FLU season 2008/2009', the time/period part is \"2008/2009 season\""; 409 case TMK: return "Description: This refers to trademark/company element if present in the medicinal product name.\r\n\n EXAMPLES: \r\n\n \n \n for Insulin Human Winthrop Comb 15: Winthrop"; 410 case USE: return "Description: This refers to the intended use if present in the medicinal product name without the trademark or the name of the marketing authorization holder or any other descriptor reflected in the product name.\n\r\n\n \n Examples:\n \r\n\n \n For 'Drug-BI Caplets - Heartburn Relief', the intended use part is: \"Heartburn Relief\"\n For 'Medicine Honey Syrup for Soothing Coughs' the intended use part is \"Soothing Coughs\""; 411 case SFX: return "Description:A suffix has a strong association to the immediately preceding name part. A suffix has no implicit leading white space (it has implicit trailing white space though)."; 412 case TITLESTYLES: return "Description:Extra information about the style of a title"; 413 case AC: return "Description:Indicates that a title like \"Dr.\", \"M.D.\" or \"Ph.D.\" is an academic title."; 414 case HON: return "Description:A honorific such as \"The Right Honourable\" or \"Weledelgeleerde Heer\"."; 415 case NB: return "Description:A nobility title such as Sir, Count, Grafin."; 416 case PR: return "Description:Primarily in the British Imperial culture people tend to have an abbreviation of their professional organization as part of their credential titles."; 417 default: return "?"; 418 } 419 } 420 public String getDisplay() { 421 switch (this) { 422 case AD: return "acquired"; 423 case SP: return "spouse"; 424 case BR: return "birth"; 425 case CL: return "callme"; 426 case IN: return "initial"; 427 case LS: return "legal status"; 428 case MID: return "middle name"; 429 case PFX: return "prefix"; 430 case PHARMACEUTICALENTITYNAMEPARTQUALIFIERS: return "PharmaceuticalEntityNamePartQualifiers"; 431 case CON: return "container name"; 432 case DEV: return "device name"; 433 case FLAV: return "FlavorName"; 434 case FORMUL: return "FormulationPartName"; 435 case FRM: return "form name"; 436 case INV: return "invented name"; 437 case POPUL: return "TargetPopulationName"; 438 case SCI: return "scientific name"; 439 case STR: return "strength name"; 440 case TIME: return "TimeOrPeriodName"; 441 case TMK: return "trademark name"; 442 case USE: return "intended use name"; 443 case SFX: return "suffix"; 444 case TITLESTYLES: return "TitleStyles"; 445 case AC: return "academic"; 446 case HON: return "honorific"; 447 case NB: return "nobility"; 448 case PR: return "professional"; 449 default: return "?"; 450 } 451 } 452 453 454} 455