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 V3EntityNamePartQualifier {
058
059        /**
060         * OrganizationNamePartQualifier
061         */
062        _ORGANIZATIONNAMEPARTQUALIFIER, 
063        /**
064         * Indicates that a prefix like "Dr." or a suffix like "M.D." or "Ph.D." is an academic title.
065         */
066        AC, 
067        /**
068         * The name the person was given at the time of adoption.
069         */
070        AD, 
071        /**
072         * A name that a person had shortly after being born. Usually for family names but may be used to mark given names at birth that may have changed later.
073         */
074        BR, 
075        /**
076         * A callme name is (usually a given name) that is preferred when a person is directly addressed.
077         */
078        CL, 
079        /**
080         * 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.  Initials may consist of more than one letter, e.g., "Ph." could stand for "Philippe" or "Th." for "Thomas".
081         */
082        IN, 
083        /**
084         * For organizations a suffix indicating the legal status, e.g., "Inc.", "Co.", "AG", "GmbH", "B.V." "S.A.",  "Ltd." etc.
085         */
086        LS, 
087        /**
088         * In Europe and Asia, there are still people with nobility titles (aristocrats).  German "von" is generally a nobility title, not a mere voorvoegsel.  Others are "Earl of" or "His Majesty King of..." etc.  Rarely used nowadays, but some systems do keep track of this.
089         */
090        NB, 
091        /**
092         * Primarily in the British Imperial culture people tend to have an abbreviation of their professional organization as part of their credential suffices.
093         */
094        PR, 
095        /**
096         * The name assumed from the partner in a marital relationship (hence the "SP"). Usually the spouse's family name. Note that no inference about gender can be made from the existence of spouse names.
097         */
098        SP, 
099        /**
100         * Indicates that a prefix or a suffix is a title that applies to the whole name, not just the adjacent name part.
101         */
102        TITLE, 
103        /**
104         * A Dutch "voorvoegsel" is something like "van" or "de" that might have indicated nobility in the past but no longer so. Similar prefixes exist in other languages such as Spanish, French or Portugese.
105         */
106        VV, 
107        /**
108         * 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.
109         */
110        PHARMACEUTICALENTITYNAMEPARTQUALIFIERS, 
111        /**
112         * Description: This refers to the container if present in the medicinal product name.
113
114                        EXAMPLES: 
115
116                        
117                           
118                              For Optaflu suspension for injection in pre-filled syringe Influenza vaccine (surface antigen, inactivated, prepared in cell culture) (2007/2008 season): pre-filled syringe
119         */
120        CON, 
121        /**
122         * Description: This refers to the qualifiers in the name for devices and is at the moment mainly applicable to insulins and inhalation products.
123
124                        EXAMPLES: 
125
126                        
127                           
128                              For the medicinal product Actrapid FlexPen 100 IU/ml Solution for injection Subcutaneous use: FlexPen.
129         */
130        DEV, 
131        /**
132         * Description: This refers to a flavor of the medicinal product if present in the medicinal product name.
133
134                        
135                           Examples:
136                        
137
138                        
139                           For 'CoughCure Linctus Orange Flavor', the flavor part is "Orange"
140                           For 'Wonderdrug Syrup Cherry Flavor', the flavor part is "Cherry"
141         */
142        FLAV, 
143        /**
144         * Description: This refers to the formulation of the medicinal product if present in the medicinal product name.
145
146                        
147                           Examples:
148                        
149
150                        
151                           For 'SpecialMed Sugar Free Cough Syrup', the formulation name part is "Sugar Free"
152                           For 'QuickCure Gluten-free Bulk Fibre', the formulation name part is "gluten-free"
153         */
154        FORMUL, 
155        /**
156         * Description: This refers to the pharmaceutical form/ if present in the medicinal product name.
157
158                        EXAMPLES: 
159
160                        
161                           
162                              For Agenerase 50 mg soft capsules: Soft Capsules
163
164                           
165                           
166                              For Ludiomil 25mg-Filmtabletten: Filmtabletten
167
168                           
169                           
170                              For Optaflu suspension for injection in pre-filled syringe Influenza vaccine (surface antigen, inactivated, prepared in cell culture) (2007/2008 season): suspension for injection
171         */
172        FRM, 
173        /**
174         * 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. 
175
176                        EXAMPLES: 
177
178                        
179                           
180                              Agenerase
181
182                           
183                           
184                              Optaflu
185
186                           
187                           
188                              Ludiomil
189         */
190        INV, 
191        /**
192         * Description: This refers to the target population for the medicinal product if present in the medicinal product name
193
194                        
195                           Examples:
196                        
197
198                        
199                           For 'Broncho-Drug 3.5 mg-capsules for children', the target population part is "children"
200                           For 'Adult Chesty Cough Syrup', the target population part is "adult"
201         */
202        POPUL, 
203        /**
204         * 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.
205
206                        EXAMPLES: 
207
208                        
209                           
210                              For Agenerase: N/A
211
212                           
213                           
214                              For Optaflu: Influenza vaccine (surface antigen, inactivated, prepared in cell culture) (2007/2008 season)
215
216                           
217                           
218                              For Ludiomil: N/A
219         */
220        SCI, 
221        /**
222         * Description: This refers to the strength if present in the medicinal product name. The use of decimal points should be accommodated if required.
223
224                        EXAMPLES:
225
226                        
227                           
228                              For Agenerase 50 mg soft capsules: 50mg
229
230                           
231                           
232                              For Ludiomil 25mg-Filmtabletten: 25 mg
233
234                           
235                           
236                              For Optaflu suspension for injection in pre-filled syringe Influenza vaccine (surface antigen, inactivated, prepared in cell culture) (2007/2008 season): N/A
237         */
238        STR, 
239        /**
240         * Description: This refers to a time or time period that may be specified in the text of the medicinal product name
241
242                        
243                           Example:
244                        
245
246                        
247                           For an influenza vaccine 'Drug-FLU season 2008/2009', the time/period part is "2008/2009 season"
248         */
249        TIME, 
250        /**
251         * Description: This refers to trademark/company element if present in the medicinal product name.
252
253                        EXAMPLES: 
254
255                        
256                           
257                              for Insulin Human Winthrop Comb 15: Winthrop
258         */
259        TMK, 
260        /**
261         * 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.
262
263
264                        
265                           Examples:
266                        
267
268                        
269                           For 'Drug-BI Caplets - Heartburn Relief', the intended use part is: "Heartburn Relief"
270                           For 'Medicine Honey Syrup for Soothing Coughs' the intended use part is "Soothing Coughs"
271         */
272        USE, 
273        /**
274         * PersonNamePartQualifier
275         */
276        _PERSONNAMEPARTQUALIFIER, 
277        /**
278         * PersonNamePartAffixTypes
279         */
280        _PERSONNAMEPARTAFFIXTYPES, 
281        /**
282         * PersonNamePartChangeQualifier
283         */
284        _PERSONNAMEPARTCHANGEQUALIFIER, 
285        /**
286         * PersonNamePartMiscQualifier
287         */
288        _PERSONNAMEPARTMISCQUALIFIER, 
289        /**
290         * added to help the parsers
291         */
292        NULL;
293        public static V3EntityNamePartQualifier fromCode(String codeString) throws FHIRException {
294            if (codeString == null || "".equals(codeString))
295                return null;
296        if ("_OrganizationNamePartQualifier".equals(codeString))
297          return _ORGANIZATIONNAMEPARTQUALIFIER;
298        if ("AC".equals(codeString))
299          return AC;
300        if ("AD".equals(codeString))
301          return AD;
302        if ("BR".equals(codeString))
303          return BR;
304        if ("CL".equals(codeString))
305          return CL;
306        if ("IN".equals(codeString))
307          return IN;
308        if ("LS".equals(codeString))
309          return LS;
310        if ("NB".equals(codeString))
311          return NB;
312        if ("PR".equals(codeString))
313          return PR;
314        if ("SP".equals(codeString))
315          return SP;
316        if ("TITLE".equals(codeString))
317          return TITLE;
318        if ("VV".equals(codeString))
319          return VV;
320        if ("PharmaceuticalEntityNamePartQualifiers".equals(codeString))
321          return PHARMACEUTICALENTITYNAMEPARTQUALIFIERS;
322        if ("CON".equals(codeString))
323          return CON;
324        if ("DEV".equals(codeString))
325          return DEV;
326        if ("FLAV".equals(codeString))
327          return FLAV;
328        if ("FORMUL".equals(codeString))
329          return FORMUL;
330        if ("FRM".equals(codeString))
331          return FRM;
332        if ("INV".equals(codeString))
333          return INV;
334        if ("POPUL".equals(codeString))
335          return POPUL;
336        if ("SCI".equals(codeString))
337          return SCI;
338        if ("STR".equals(codeString))
339          return STR;
340        if ("TIME".equals(codeString))
341          return TIME;
342        if ("TMK".equals(codeString))
343          return TMK;
344        if ("USE".equals(codeString))
345          return USE;
346        if ("_PersonNamePartQualifier".equals(codeString))
347          return _PERSONNAMEPARTQUALIFIER;
348        if ("_PersonNamePartAffixTypes".equals(codeString))
349          return _PERSONNAMEPARTAFFIXTYPES;
350        if ("_PersonNamePartChangeQualifier".equals(codeString))
351          return _PERSONNAMEPARTCHANGEQUALIFIER;
352        if ("_PersonNamePartMiscQualifier".equals(codeString))
353          return _PERSONNAMEPARTMISCQUALIFIER;
354        throw new FHIRException("Unknown V3EntityNamePartQualifier code '"+codeString+"'");
355        }
356        public String toCode() {
357          switch (this) {
358            case _ORGANIZATIONNAMEPARTQUALIFIER: return "_OrganizationNamePartQualifier";
359            case AC: return "AC";
360            case AD: return "AD";
361            case BR: return "BR";
362            case CL: return "CL";
363            case IN: return "IN";
364            case LS: return "LS";
365            case NB: return "NB";
366            case PR: return "PR";
367            case SP: return "SP";
368            case TITLE: return "TITLE";
369            case VV: return "VV";
370            case PHARMACEUTICALENTITYNAMEPARTQUALIFIERS: return "PharmaceuticalEntityNamePartQualifiers";
371            case CON: return "CON";
372            case DEV: return "DEV";
373            case FLAV: return "FLAV";
374            case FORMUL: return "FORMUL";
375            case FRM: return "FRM";
376            case INV: return "INV";
377            case POPUL: return "POPUL";
378            case SCI: return "SCI";
379            case STR: return "STR";
380            case TIME: return "TIME";
381            case TMK: return "TMK";
382            case USE: return "USE";
383            case _PERSONNAMEPARTQUALIFIER: return "_PersonNamePartQualifier";
384            case _PERSONNAMEPARTAFFIXTYPES: return "_PersonNamePartAffixTypes";
385            case _PERSONNAMEPARTCHANGEQUALIFIER: return "_PersonNamePartChangeQualifier";
386            case _PERSONNAMEPARTMISCQUALIFIER: return "_PersonNamePartMiscQualifier";
387            default: return "?";
388          }
389        }
390        public String getSystem() {
391          return "http://terminology.hl7.org/CodeSystem/v3-EntityNamePartQualifier";
392        }
393        public String getDefinition() {
394          switch (this) {
395            case _ORGANIZATIONNAMEPARTQUALIFIER: return "OrganizationNamePartQualifier";
396            case AC: return "Indicates that a prefix like \"Dr.\" or a suffix like \"M.D.\" or \"Ph.D.\" is an academic title.";
397            case AD: return "The name the person was given at the time of adoption.";
398            case BR: return "A name that a person had shortly after being born. Usually for family names but may be used to mark given names at birth that may have changed later.";
399            case CL: return "A callme name is (usually a given name) that is preferred when a person is directly addressed.";
400            case IN: return "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.  Initials may consist of more than one letter, e.g., \"Ph.\" could stand for \"Philippe\" or \"Th.\" for \"Thomas\".";
401            case LS: return "For organizations a suffix indicating the legal status, e.g., \"Inc.\", \"Co.\", \"AG\", \"GmbH\", \"B.V.\" \"S.A.\",  \"Ltd.\" etc.";
402            case NB: return "In Europe and Asia, there are still people with nobility titles (aristocrats).  German \"von\" is generally a nobility title, not a mere voorvoegsel.  Others are \"Earl of\" or \"His Majesty King of...\" etc.  Rarely used nowadays, but some systems do keep track of this.";
403            case PR: return "Primarily in the British Imperial culture people tend to have an abbreviation of their professional organization as part of their credential suffices.";
404            case SP: return "The name assumed from the partner in a marital relationship (hence the \"SP\"). Usually the spouse's family name. Note that no inference about gender can be made from the existence of spouse names.";
405            case TITLE: return "Indicates that a prefix or a suffix is a title that applies to the whole name, not just the adjacent name part.";
406            case VV: return "A Dutch \"voorvoegsel\" is something like \"van\" or \"de\" that might have indicated nobility in the past but no longer so. Similar prefixes exist in other languages such as Spanish, French or Portugese.";
407            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.";
408            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";
409            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.";
410            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\"";
411            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\"";
412            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";
413            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";
414            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\"";
415            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";
416            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";
417            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\"";
418            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";
419            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\"";
420            case _PERSONNAMEPARTQUALIFIER: return "PersonNamePartQualifier";
421            case _PERSONNAMEPARTAFFIXTYPES: return "PersonNamePartAffixTypes";
422            case _PERSONNAMEPARTCHANGEQUALIFIER: return "PersonNamePartChangeQualifier";
423            case _PERSONNAMEPARTMISCQUALIFIER: return "PersonNamePartMiscQualifier";
424            default: return "?";
425          }
426        }
427        public String getDisplay() {
428          switch (this) {
429            case _ORGANIZATIONNAMEPARTQUALIFIER: return "OrganizationNamePartQualifier";
430            case AC: return "academic";
431            case AD: return "adopted";
432            case BR: return "birth";
433            case CL: return "callme";
434            case IN: return "initial";
435            case LS: return "Legal status";
436            case NB: return "nobility";
437            case PR: return "professional";
438            case SP: return "spouse";
439            case TITLE: return "title";
440            case VV: return "voorvoegsel";
441            case PHARMACEUTICALENTITYNAMEPARTQUALIFIERS: return "PharmaceuticalEntityNamePartQualifiers";
442            case CON: return "container name";
443            case DEV: return "device name";
444            case FLAV: return "FlavorName";
445            case FORMUL: return "FormulationPartName";
446            case FRM: return "form name";
447            case INV: return "invented name";
448            case POPUL: return "TargetPopulationName";
449            case SCI: return "scientific name";
450            case STR: return "strength name";
451            case TIME: return "TimeOrPeriodName";
452            case TMK: return "trademark name";
453            case USE: return "intended use name";
454            case _PERSONNAMEPARTQUALIFIER: return "PersonNamePartQualifier";
455            case _PERSONNAMEPARTAFFIXTYPES: return "PersonNamePartAffixTypes";
456            case _PERSONNAMEPARTCHANGEQUALIFIER: return "PersonNamePartChangeQualifier";
457            case _PERSONNAMEPARTMISCQUALIFIER: return "PersonNamePartMiscQualifier";
458            default: return "?";
459          }
460    }
461
462
463}
464