001package org.hl7.fhir.dstu2016may.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 Sun, May 8, 2016 03:05+1000 for FHIR v1.4.0 036 037 038import org.hl7.fhir.exceptions.FHIRException; 039 040public enum HspcPatientVeteranMilitaryStatus { 041 042 /** 043 * A part-time member of the armed forces (military) who maintains a long-term commitment to support their country if necessary. 044 */ 045 _8CA8CC2BBAA04CB68863418173C125D1, 046 /** 047 * An individual who is not a member of the armed forces (military). 048 */ 049 _4EB9A0A1333448DF084DCEF37C9AC0D3, 050 /** 051 * A family member of someone who has a full-time occupation in the armed forces (military). 052 */ 053 _70A6818301A445B1A5E649A13E221713, 054 /** 055 * Someone who has served or is currently serving in the armed forces (military). 056 */ 057 _189E9AF6BCBF47E2ACEE4E5C50F54BA6, 058 /** 059 * A full-time occupation as a member of the armed forces (military). 060 */ 061 BAB7B911E3CF426F95D60637D7091E07, 062 /** 063 * A member of the armed forces (military) who became disabled while carrying out their duties. 064 */ 065 _2B98CEC8B29D45459350A2B54DBD2FE7, 066 /** 067 * A family member of someone who has retired from the armed forces (military). 068 */ 069 _617936ECD6A74642A1D8B27BF8735F9D, 070 /** 071 * A previous full-time member of the armed forces (military) who has a commitment to be called to active duty if necessary, but who currently works as a civilian. 072 */ 073 _40D86A6267A949C68F43C1A9EF51689B, 074 /** 075 * Retired from a career in the armed forces (military). 076 */ 077 CA02026A3EBF4FB409E002D89C931643, 078 /** 079 * A part-time member of a reserve military force of the United States military whos units are composed of members from the state or territory of residence. 080 */ 081 _75F4440AEC3747FEB26D39C09C204676, 082 /** 083 * added to help the parsers 084 */ 085 NULL; 086 public static HspcPatientVeteranMilitaryStatus fromCode(String codeString) throws FHIRException { 087 if (codeString == null || "".equals(codeString)) 088 return null; 089 if ("8ca8cc2b-baa0-4cb6-8863-418173c125d1".equals(codeString)) 090 return _8CA8CC2BBAA04CB68863418173C125D1; 091 if ("4eb9a0a1-3334-48df-084d-cef37c9ac0d3".equals(codeString)) 092 return _4EB9A0A1333448DF084DCEF37C9AC0D3; 093 if ("70a68183-01a4-45b1-a5e6-49a13e221713".equals(codeString)) 094 return _70A6818301A445B1A5E649A13E221713; 095 if ("189e9af6-bcbf-47e2-acee-4e5c50f54ba6".equals(codeString)) 096 return _189E9AF6BCBF47E2ACEE4E5C50F54BA6; 097 if ("bab7b911-e3cf-426f-95d6-0637d7091e07".equals(codeString)) 098 return BAB7B911E3CF426F95D60637D7091E07; 099 if ("2b98cec8-b29d-4545-9350-a2b54dbd2fe7".equals(codeString)) 100 return _2B98CEC8B29D45459350A2B54DBD2FE7; 101 if ("617936ec-d6a7-4642-a1d8-b27bf8735f9d".equals(codeString)) 102 return _617936ECD6A74642A1D8B27BF8735F9D; 103 if ("40d86a62-67a9-49c6-8f43-c1a9ef51689b".equals(codeString)) 104 return _40D86A6267A949C68F43C1A9EF51689B; 105 if ("ca02026a-3ebf-4fb4-09e0-02d89c931643".equals(codeString)) 106 return CA02026A3EBF4FB409E002D89C931643; 107 if ("75f4440a-ec37-47fe-b26d-39c09c204676".equals(codeString)) 108 return _75F4440AEC3747FEB26D39C09C204676; 109 throw new FHIRException("Unknown HspcPatientVeteranMilitaryStatus code '"+codeString+"'"); 110 } 111 public String toCode() { 112 switch (this) { 113 case _8CA8CC2BBAA04CB68863418173C125D1: return "8ca8cc2b-baa0-4cb6-8863-418173c125d1"; 114 case _4EB9A0A1333448DF084DCEF37C9AC0D3: return "4eb9a0a1-3334-48df-084d-cef37c9ac0d3"; 115 case _70A6818301A445B1A5E649A13E221713: return "70a68183-01a4-45b1-a5e6-49a13e221713"; 116 case _189E9AF6BCBF47E2ACEE4E5C50F54BA6: return "189e9af6-bcbf-47e2-acee-4e5c50f54ba6"; 117 case BAB7B911E3CF426F95D60637D7091E07: return "bab7b911-e3cf-426f-95d6-0637d7091e07"; 118 case _2B98CEC8B29D45459350A2B54DBD2FE7: return "2b98cec8-b29d-4545-9350-a2b54dbd2fe7"; 119 case _617936ECD6A74642A1D8B27BF8735F9D: return "617936ec-d6a7-4642-a1d8-b27bf8735f9d"; 120 case _40D86A6267A949C68F43C1A9EF51689B: return "40d86a62-67a9-49c6-8f43-c1a9ef51689b"; 121 case CA02026A3EBF4FB409E002D89C931643: return "ca02026a-3ebf-4fb4-09e0-02d89c931643"; 122 case _75F4440AEC3747FEB26D39C09C204676: return "75f4440a-ec37-47fe-b26d-39c09c204676"; 123 case NULL: return null; 124 default: return "?"; 125 } 126 } 127 public String getSystem() { 128 return "http://hl7.org/fhir/patient-hspc-veteranMilitaryStatus"; 129 } 130 public String getDefinition() { 131 switch (this) { 132 case _8CA8CC2BBAA04CB68863418173C125D1: return "A part-time member of the armed forces (military) who maintains a long-term commitment to support their country if necessary."; 133 case _4EB9A0A1333448DF084DCEF37C9AC0D3: return "An individual who is not a member of the armed forces (military)."; 134 case _70A6818301A445B1A5E649A13E221713: return "A family member of someone who has a full-time occupation in the armed forces (military)."; 135 case _189E9AF6BCBF47E2ACEE4E5C50F54BA6: return "Someone who has served or is currently serving in the armed forces (military)."; 136 case BAB7B911E3CF426F95D60637D7091E07: return "A full-time occupation as a member of the armed forces (military)."; 137 case _2B98CEC8B29D45459350A2B54DBD2FE7: return "A member of the armed forces (military) who became disabled while carrying out their duties."; 138 case _617936ECD6A74642A1D8B27BF8735F9D: return "A family member of someone who has retired from the armed forces (military)."; 139 case _40D86A6267A949C68F43C1A9EF51689B: return "A previous full-time member of the armed forces (military) who has a commitment to be called to active duty if necessary, but who currently works as a civilian."; 140 case CA02026A3EBF4FB409E002D89C931643: return "Retired from a career in the armed forces (military)."; 141 case _75F4440AEC3747FEB26D39C09C204676: return "A part-time member of a reserve military force of the United States military whos units are composed of members from the state or territory of residence."; 142 case NULL: return null; 143 default: return "?"; 144 } 145 } 146 public String getDisplay() { 147 switch (this) { 148 case _8CA8CC2BBAA04CB68863418173C125D1: return "Reserves"; 149 case _4EB9A0A1333448DF084DCEF37C9AC0D3: return "Civilian"; 150 case _70A6818301A445B1A5E649A13E221713: return "Family Member of Active Duty"; 151 case _189E9AF6BCBF47E2ACEE4E5C50F54BA6: return "Veteran"; 152 case BAB7B911E3CF426F95D60637D7091E07: return "Active Military Duty"; 153 case _2B98CEC8B29D45459350A2B54DBD2FE7: return "Disabled Veteran"; 154 case _617936ECD6A74642A1D8B27BF8735F9D: return "Family Member of Retired Military"; 155 case _40D86A6267A949C68F43C1A9EF51689B: return "Inactive Ready Reserve"; 156 case CA02026A3EBF4FB409E002D89C931643: return "Retired military"; 157 case _75F4440AEC3747FEB26D39C09C204676: return "National Guard"; 158 case NULL: return null; 159 default: return "?"; 160 } 161 } 162 163 164}