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 Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0 033 034import org.hl7.fhir.exceptions.FHIRException; 035 036public enum ContactentityType { 037 038 /** 039 * Contact details for information regarding to billing/general finance 040 * enquiries. 041 */ 042 BILL, 043 /** 044 * Contact details for administrative enquiries. 045 */ 046 ADMIN, 047 /** 048 * Contact details for issues related to Human Resources, such as staff matters, 049 * OH&S etc. 050 */ 051 HR, 052 /** 053 * Contact details for dealing with issues related to insurance 054 * claims/adjudication/payment. 055 */ 056 PAYOR, 057 /** 058 * Generic information contact for patients. 059 */ 060 PATINF, 061 /** 062 * Dedicated contact point for matters relating to press enquiries. 063 */ 064 PRESS, 065 /** 066 * added to help the parsers 067 */ 068 NULL; 069 070 public static ContactentityType fromCode(String codeString) throws FHIRException { 071 if (codeString == null || "".equals(codeString)) 072 return null; 073 if ("BILL".equals(codeString)) 074 return BILL; 075 if ("ADMIN".equals(codeString)) 076 return ADMIN; 077 if ("HR".equals(codeString)) 078 return HR; 079 if ("PAYOR".equals(codeString)) 080 return PAYOR; 081 if ("PATINF".equals(codeString)) 082 return PATINF; 083 if ("PRESS".equals(codeString)) 084 return PRESS; 085 throw new FHIRException("Unknown ContactentityType code '" + codeString + "'"); 086 } 087 088 public String toCode() { 089 switch (this) { 090 case BILL: 091 return "BILL"; 092 case ADMIN: 093 return "ADMIN"; 094 case HR: 095 return "HR"; 096 case PAYOR: 097 return "PAYOR"; 098 case PATINF: 099 return "PATINF"; 100 case PRESS: 101 return "PRESS"; 102 case NULL: 103 return null; 104 default: 105 return "?"; 106 } 107 } 108 109 public String getSystem() { 110 return "http://terminology.hl7.org/CodeSystem/contactentity-type"; 111 } 112 113 public String getDefinition() { 114 switch (this) { 115 case BILL: 116 return "Contact details for information regarding to billing/general finance enquiries."; 117 case ADMIN: 118 return "Contact details for administrative enquiries."; 119 case HR: 120 return "Contact details for issues related to Human Resources, such as staff matters, OH&S etc."; 121 case PAYOR: 122 return "Contact details for dealing with issues related to insurance claims/adjudication/payment."; 123 case PATINF: 124 return "Generic information contact for patients."; 125 case PRESS: 126 return "Dedicated contact point for matters relating to press enquiries."; 127 case NULL: 128 return null; 129 default: 130 return "?"; 131 } 132 } 133 134 public String getDisplay() { 135 switch (this) { 136 case BILL: 137 return "Billing"; 138 case ADMIN: 139 return "Administrative"; 140 case HR: 141 return "Human Resource"; 142 case PAYOR: 143 return "Payor"; 144 case PATINF: 145 return "Patient"; 146 case PRESS: 147 return "Press"; 148 case NULL: 149 return null; 150 default: 151 return "?"; 152 } 153 } 154 155}