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 OrganizationType { 038 039 /** 040 * An organization that provides healthcare services. 041 */ 042 PROV, 043 /** 044 * A department or ward within a hospital (Generally is not applicable to top level organizations) 045 */ 046 DEPT, 047 /** 048 * An organizational team is usually a grouping of practitioners that perform a specific function within an organization (which could be a top level organization, or a department). 049 */ 050 TEAM, 051 /** 052 * A political body, often used when including organization records for government bodies such as a Federal Government, State or Local Government. 053 */ 054 GOVT, 055 /** 056 * A company that provides insurance to its subscribers that may include healthcare related policies. 057 */ 058 INS, 059 /** 060 * A company, charity, or governmental organization which processes claims and/or issues payments to providers on behalf of patients or groups of patients. 061 */ 062 PAY, 063 /** 064 * An educational institution that provides education or research facilities. 065 */ 066 EDU, 067 /** 068 * An organization that is identified as a part of a religious institution. 069 */ 070 RELI, 071 /** 072 * An organization that is identified as a Pharmaceutical/Clinical Research Sponsor. 073 */ 074 CRS, 075 /** 076 * An un-incorporated community group. 077 */ 078 CG, 079 /** 080 * An organization that is a registered business or corporation but not identified by other types. 081 */ 082 BUS, 083 /** 084 * Other type of organization not already specified. 085 */ 086 OTHER, 087 /** 088 * added to help the parsers 089 */ 090 NULL; 091 public static OrganizationType fromCode(String codeString) throws FHIRException { 092 if (codeString == null || "".equals(codeString)) 093 return null; 094 if ("prov".equals(codeString)) 095 return PROV; 096 if ("dept".equals(codeString)) 097 return DEPT; 098 if ("team".equals(codeString)) 099 return TEAM; 100 if ("govt".equals(codeString)) 101 return GOVT; 102 if ("ins".equals(codeString)) 103 return INS; 104 if ("pay".equals(codeString)) 105 return PAY; 106 if ("edu".equals(codeString)) 107 return EDU; 108 if ("reli".equals(codeString)) 109 return RELI; 110 if ("crs".equals(codeString)) 111 return CRS; 112 if ("cg".equals(codeString)) 113 return CG; 114 if ("bus".equals(codeString)) 115 return BUS; 116 if ("other".equals(codeString)) 117 return OTHER; 118 throw new FHIRException("Unknown OrganizationType code '"+codeString+"'"); 119 } 120 public String toCode() { 121 switch (this) { 122 case PROV: return "prov"; 123 case DEPT: return "dept"; 124 case TEAM: return "team"; 125 case GOVT: return "govt"; 126 case INS: return "ins"; 127 case PAY: return "pay"; 128 case EDU: return "edu"; 129 case RELI: return "reli"; 130 case CRS: return "crs"; 131 case CG: return "cg"; 132 case BUS: return "bus"; 133 case OTHER: return "other"; 134 default: return "?"; 135 } 136 } 137 public String getSystem() { 138 return "http://terminology.hl7.org/CodeSystem/organization-type"; 139 } 140 public String getDefinition() { 141 switch (this) { 142 case PROV: return "An organization that provides healthcare services."; 143 case DEPT: return "A department or ward within a hospital (Generally is not applicable to top level organizations)"; 144 case TEAM: return "An organizational team is usually a grouping of practitioners that perform a specific function within an organization (which could be a top level organization, or a department)."; 145 case GOVT: return "A political body, often used when including organization records for government bodies such as a Federal Government, State or Local Government."; 146 case INS: return "A company that provides insurance to its subscribers that may include healthcare related policies."; 147 case PAY: return "A company, charity, or governmental organization which processes claims and/or issues payments to providers on behalf of patients or groups of patients."; 148 case EDU: return "An educational institution that provides education or research facilities."; 149 case RELI: return "An organization that is identified as a part of a religious institution."; 150 case CRS: return "An organization that is identified as a Pharmaceutical/Clinical Research Sponsor."; 151 case CG: return "An un-incorporated community group."; 152 case BUS: return "An organization that is a registered business or corporation but not identified by other types."; 153 case OTHER: return "Other type of organization not already specified."; 154 default: return "?"; 155 } 156 } 157 public String getDisplay() { 158 switch (this) { 159 case PROV: return "Healthcare Provider"; 160 case DEPT: return "Hospital Department"; 161 case TEAM: return "Organizational team"; 162 case GOVT: return "Government"; 163 case INS: return "Insurance Company"; 164 case PAY: return "Payer"; 165 case EDU: return "Educational Institute"; 166 case RELI: return "Religious Institution"; 167 case CRS: return "Clinical Research Sponsor"; 168 case CG: return "Community Group"; 169 case BUS: return "Non-Healthcare Business or Corporation"; 170 case OTHER: return "Other"; 171 default: return "?"; 172 } 173 } 174 175 176} 177