001package org.hl7.fhir.r4.model.codesystems; 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 Thu, Sep 13, 2018 09:04-0400 for FHIR v3.5.0 033 034 035import org.hl7.fhir.exceptions.FHIRException; 036 037public enum V3WorkClassificationODH { 038 039 /** 040 * A situation in which an individual serves in a government-sponsored military force. 041 */ 042 PWAF, 043 /** 044 * A situation in which an individual works for a national government organization, not including armed forces, and receives a paid salary or wage. 045 */ 046 PWFG, 047 /** 048 * A situation in which an individual works for a government organization with jurisdiction below the level of state/provincial/territorial/tribal government (e.g., city, town, township), not armed forces, and receives a paid salary or wage. 049 */ 050 PWLG, 051 /** 052 * A situation in which an individual works for a business (not government) that they do not own and receives a paid salary or wage. 053 */ 054 PWNSE, 055 /** 056 * A situation in which an individual earns a salary or wage working for himself or herself instead of working for an employer. 057 */ 058 PWSE, 059 /** 060 * A situation in which an individual works for a government organization with jurisdiction immediately below the level of national government (between national government and local government), not armed forces and receives a paid salary or wage. Often called a state, provincial, territorial, or tribal government. 061 */ 062 PWSG, 063 /** 064 * A situation in which an individual works for a business (not government) that they do not own without receiving a paid salary or wage. 065 */ 066 UWNSE, 067 /** 068 * A situation in which an individual works for himself or herself without receiving a paid salary or wage. 069 */ 070 UWSE, 071 /** 072 * A situation in which an individual chooses to do something, especially for other people or for an organization, willingly and without being forced or compensated to do it. This can include formal activity undertaken through public, private and voluntary organizations as well as informal community participation. 073 */ 074 VW, 075 /** 076 * added to help the parsers 077 */ 078 NULL; 079 public static V3WorkClassificationODH fromCode(String codeString) throws FHIRException { 080 if (codeString == null || "".equals(codeString)) 081 return null; 082 if ("PWAF".equals(codeString)) 083 return PWAF; 084 if ("PWFG".equals(codeString)) 085 return PWFG; 086 if ("PWLG".equals(codeString)) 087 return PWLG; 088 if ("PWNSE".equals(codeString)) 089 return PWNSE; 090 if ("PWSE".equals(codeString)) 091 return PWSE; 092 if ("PWSG".equals(codeString)) 093 return PWSG; 094 if ("UWNSE".equals(codeString)) 095 return UWNSE; 096 if ("UWSE".equals(codeString)) 097 return UWSE; 098 if ("VW".equals(codeString)) 099 return VW; 100 throw new FHIRException("Unknown V3WorkClassificationODH code '"+codeString+"'"); 101 } 102 public String toCode() { 103 switch (this) { 104 case PWAF: return "PWAF"; 105 case PWFG: return "PWFG"; 106 case PWLG: return "PWLG"; 107 case PWNSE: return "PWNSE"; 108 case PWSE: return "PWSE"; 109 case PWSG: return "PWSG"; 110 case UWNSE: return "UWNSE"; 111 case UWSE: return "UWSE"; 112 case VW: return "VW"; 113 default: return "?"; 114 } 115 } 116 public String getSystem() { 117 return "http://terminology.hl7.org/CodeSystem/v3-WorkClassificationODH"; 118 } 119 public String getDefinition() { 120 switch (this) { 121 case PWAF: return "A situation in which an individual serves in a government-sponsored military force."; 122 case PWFG: return "A situation in which an individual works for a national government organization, not including armed forces, and receives a paid salary or wage."; 123 case PWLG: return "A situation in which an individual works for a government organization with jurisdiction below the level of state/provincial/territorial/tribal government (e.g., city, town, township), not armed forces, and receives a paid salary or wage."; 124 case PWNSE: return "A situation in which an individual works for a business (not government) that they do not own and receives a paid salary or wage."; 125 case PWSE: return "A situation in which an individual earns a salary or wage working for himself or herself instead of working for an employer."; 126 case PWSG: return "A situation in which an individual works for a government organization with jurisdiction immediately below the level of national government (between national government and local government), not armed forces and receives a paid salary or wage. Often called a state, provincial, territorial, or tribal government."; 127 case UWNSE: return "A situation in which an individual works for a business (not government) that they do not own without receiving a paid salary or wage."; 128 case UWSE: return "A situation in which an individual works for himself or herself without receiving a paid salary or wage."; 129 case VW: return "A situation in which an individual chooses to do something, especially for other people or for an organization, willingly and without being forced or compensated to do it. This can include formal activity undertaken through public, private and voluntary organizations as well as informal community participation."; 130 default: return "?"; 131 } 132 } 133 public String getDisplay() { 134 switch (this) { 135 case PWAF: return "Paid work, Armed Forces"; 136 case PWFG: return "Paid work, national government, not armed forces"; 137 case PWLG: return "Paid work, local government, not armed forces"; 138 case PWNSE: return "Paid non-governmental work, not self-employed"; 139 case PWSE: return "Paid work, self-employed"; 140 case PWSG: return "Paid work, state government, not armed forces"; 141 case UWNSE: return "Unpaid non-governmental work, not self-employed"; 142 case UWSE: return "Unpaid work, self-employed"; 143 case VW: return "Voluntary work"; 144 default: return "?"; 145 } 146 } 147 148 149} 150