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 HspcOrganizationOrganizationtype { 041 042 /** 043 * A place where outpatients are provided medical treatments or advices. 044 */ 045 _526758010, 046 /** 047 * A center where patients with cancer are cared and treated. 048 */ 049 _526758011, 050 /** 051 * A place where dental services are provided. 052 */ 053 _526758012, 054 /** 055 * A center where patients are provided imaging services. 056 */ 057 _526758013, 058 /** 059 * A center where patients with kidney diseases are provided dialysis services. 060 */ 061 _526758014, 062 /** 063 * A place where people of different ages gain an education. 064 */ 065 _526758015, 066 /** 067 * A government organization set up for a specific purpose such as the management of resources, financial oversight of industries or national security issues. 068 */ 069 _526758016, 070 /** 071 * An organization which provides assistant health care for people at their homes. 072 */ 073 _526758017, 074 /** 075 * An institution where the sick or injuried people are provided medical and surgical treatments and nursing cares. 076 */ 077 _526758018, 078 /** 079 * A network or group of hospitals that work together to coordinate and deliver a broad spectrum of services to their community. 080 */ 081 _526758019, 082 /** 083 * A financial institution that sells insurance. 084 */ 085 _526758020, 086 /** 087 * A laboratory where tests are done on clinical specimens in order to get information about the health of a patient as pertaining to the diagnosis, treatment, and prevention of disease. 088 */ 089 _526758021, 090 /** 091 * A facility providing skilled, intermediate or custodial nursing care. 092 */ 093 _526758022, 094 /** 095 * A store or a place in the hospital where drugs and medicines are dispensed and sold. 096 */ 097 _526758023, 098 /** 099 * A center where outpatients are provided surgical services. 100 */ 101 _526758024, 102 /** 103 * added to help the parsers 104 */ 105 NULL; 106 public static HspcOrganizationOrganizationtype fromCode(String codeString) throws FHIRException { 107 if (codeString == null || "".equals(codeString)) 108 return null; 109 if ("526758010".equals(codeString)) 110 return _526758010; 111 if ("526758011".equals(codeString)) 112 return _526758011; 113 if ("526758012".equals(codeString)) 114 return _526758012; 115 if ("526758013".equals(codeString)) 116 return _526758013; 117 if ("526758014".equals(codeString)) 118 return _526758014; 119 if ("526758015".equals(codeString)) 120 return _526758015; 121 if ("526758016".equals(codeString)) 122 return _526758016; 123 if ("526758017".equals(codeString)) 124 return _526758017; 125 if ("526758018".equals(codeString)) 126 return _526758018; 127 if ("526758019".equals(codeString)) 128 return _526758019; 129 if ("526758020".equals(codeString)) 130 return _526758020; 131 if ("526758021".equals(codeString)) 132 return _526758021; 133 if ("526758022".equals(codeString)) 134 return _526758022; 135 if ("526758023".equals(codeString)) 136 return _526758023; 137 if ("526758024".equals(codeString)) 138 return _526758024; 139 throw new FHIRException("Unknown HspcOrganizationOrganizationtype code '"+codeString+"'"); 140 } 141 public String toCode() { 142 switch (this) { 143 case _526758010: return "526758010"; 144 case _526758011: return "526758011"; 145 case _526758012: return "526758012"; 146 case _526758013: return "526758013"; 147 case _526758014: return "526758014"; 148 case _526758015: return "526758015"; 149 case _526758016: return "526758016"; 150 case _526758017: return "526758017"; 151 case _526758018: return "526758018"; 152 case _526758019: return "526758019"; 153 case _526758020: return "526758020"; 154 case _526758021: return "526758021"; 155 case _526758022: return "526758022"; 156 case _526758023: return "526758023"; 157 case _526758024: return "526758024"; 158 case NULL: return null; 159 default: return "?"; 160 } 161 } 162 public String getSystem() { 163 return "http://hl7,org/fhir/organization-hspc-organizationtype"; 164 } 165 public String getDefinition() { 166 switch (this) { 167 case _526758010: return "A place where outpatients are provided medical treatments or advices."; 168 case _526758011: return "A center where patients with cancer are cared and treated."; 169 case _526758012: return "A place where dental services are provided."; 170 case _526758013: return "A center where patients are provided imaging services."; 171 case _526758014: return "A center where patients with kidney diseases are provided dialysis services."; 172 case _526758015: return "A place where people of different ages gain an education."; 173 case _526758016: return "A government organization set up for a specific purpose such as the management of resources, financial oversight of industries or national security issues."; 174 case _526758017: return "An organization which provides assistant health care for people at their homes."; 175 case _526758018: return "An institution where the sick or injuried people are provided medical and surgical treatments and nursing cares."; 176 case _526758019: return "A network or group of hospitals that work together to coordinate and deliver a broad spectrum of services to their community."; 177 case _526758020: return "A financial institution that sells insurance."; 178 case _526758021: return "A laboratory where tests are done on clinical specimens in order to get information about the health of a patient as pertaining to the diagnosis, treatment, and prevention of disease."; 179 case _526758022: return "A facility providing skilled, intermediate or custodial nursing care."; 180 case _526758023: return "A store or a place in the hospital where drugs and medicines are dispensed and sold."; 181 case _526758024: return "A center where outpatients are provided surgical services."; 182 case NULL: return null; 183 default: return "?"; 184 } 185 } 186 public String getDisplay() { 187 switch (this) { 188 case _526758010: return "Clinic"; 189 case _526758011: return "Cancer Center"; 190 case _526758012: return "Dental Office"; 191 case _526758013: return "Diagnostic Imaging Center"; 192 case _526758014: return "Dialysis Center"; 193 case _526758015: return "Educational Institute"; 194 case _526758016: return "Federal Agency"; 195 case _526758017: return "Home Health"; 196 case _526758018: return "Hospital"; 197 case _526758019: return "Hospital Network"; 198 case _526758020: return "Insurance Company"; 199 case _526758021: return "Medical Laboratory"; 200 case _526758022: return "Nursing Care Facility"; 201 case _526758023: return "Pharmacy"; 202 case _526758024: return "Surgical Center"; 203 case NULL: return null; 204 default: return "?"; 205 } 206 } 207 208 209}