
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 FinancialTaskinputtype { 037 038 /** 039 * The name of a resource to include in a selection. 040 */ 041 INCLUDE, 042 /** 043 * The name of a resource to not include in a selection. 044 */ 045 EXCLUDE, 046 /** 047 * A reference to the response resource to the original processing of a 048 * resource. 049 */ 050 ORIGRESPONSE, 051 /** 052 * A reference value which must be quoted to authorize an action. 053 */ 054 REFERENCE, 055 /** 056 * The sequence number associated with an item for reprocessing. 057 */ 058 ITEM, 059 /** 060 * The reference period for the action being requested. 061 */ 062 PERIOD, 063 /** 064 * The processing status from a check on the processing status of a resource 065 * such as the adjudication of a claim. 066 */ 067 STATUS, 068 /** 069 * added to help the parsers 070 */ 071 NULL; 072 073 public static FinancialTaskinputtype fromCode(String codeString) throws FHIRException { 074 if (codeString == null || "".equals(codeString)) 075 return null; 076 if ("include".equals(codeString)) 077 return INCLUDE; 078 if ("exclude".equals(codeString)) 079 return EXCLUDE; 080 if ("origresponse".equals(codeString)) 081 return ORIGRESPONSE; 082 if ("reference".equals(codeString)) 083 return REFERENCE; 084 if ("item".equals(codeString)) 085 return ITEM; 086 if ("period".equals(codeString)) 087 return PERIOD; 088 if ("status".equals(codeString)) 089 return STATUS; 090 throw new FHIRException("Unknown FinancialTaskinputtype code '" + codeString + "'"); 091 } 092 093 public String toCode() { 094 switch (this) { 095 case INCLUDE: 096 return "include"; 097 case EXCLUDE: 098 return "exclude"; 099 case ORIGRESPONSE: 100 return "origresponse"; 101 case REFERENCE: 102 return "reference"; 103 case ITEM: 104 return "item"; 105 case PERIOD: 106 return "period"; 107 case STATUS: 108 return "status"; 109 case NULL: 110 return null; 111 default: 112 return "?"; 113 } 114 } 115 116 public String getSystem() { 117 return "http://terminology.hl7.org/CodeSystem/financialtaskinputtype"; 118 } 119 120 public String getDefinition() { 121 switch (this) { 122 case INCLUDE: 123 return "The name of a resource to include in a selection."; 124 case EXCLUDE: 125 return "The name of a resource to not include in a selection."; 126 case ORIGRESPONSE: 127 return "A reference to the response resource to the original processing of a resource."; 128 case REFERENCE: 129 return "A reference value which must be quoted to authorize an action."; 130 case ITEM: 131 return "The sequence number associated with an item for reprocessing."; 132 case PERIOD: 133 return "The reference period for the action being requested."; 134 case STATUS: 135 return "The processing status from a check on the processing status of a resource such as the adjudication of a claim."; 136 case NULL: 137 return null; 138 default: 139 return "?"; 140 } 141 } 142 143 public String getDisplay() { 144 switch (this) { 145 case INCLUDE: 146 return "Include"; 147 case EXCLUDE: 148 return "Exclude"; 149 case ORIGRESPONSE: 150 return "Original Response"; 151 case REFERENCE: 152 return "Reference Number"; 153 case ITEM: 154 return "Item Number"; 155 case PERIOD: 156 return "Period"; 157 case STATUS: 158 return "Status code"; 159 case NULL: 160 return null; 161 default: 162 return "?"; 163 } 164 } 165 166}