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 Sun, May 6, 2018 17:51-0400 for FHIR v3.4.0 033 034 035import org.hl7.fhir.exceptions.FHIRException; 036 037public enum DicomAuditLifecycle { 038 039 /** 040 * null 041 */ 042 _1, 043 /** 044 * null 045 */ 046 _2, 047 /** 048 * null 049 */ 050 _3, 051 /** 052 * null 053 */ 054 _4, 055 /** 056 * null 057 */ 058 _5, 059 /** 060 * null 061 */ 062 _6, 063 /** 064 * null 065 */ 066 _7, 067 /** 068 * null 069 */ 070 _8, 071 /** 072 * null 073 */ 074 _9, 075 /** 076 * null 077 */ 078 _10, 079 /** 080 * null 081 */ 082 _11, 083 /** 084 * null 085 */ 086 _12, 087 /** 088 * null 089 */ 090 _13, 091 /** 092 * null 093 */ 094 _14, 095 /** 096 * null 097 */ 098 _15, 099 /** 100 * added to help the parsers 101 */ 102 NULL; 103 public static DicomAuditLifecycle fromCode(String codeString) throws FHIRException { 104 if (codeString == null || "".equals(codeString)) 105 return null; 106 if ("1".equals(codeString)) 107 return _1; 108 if ("2".equals(codeString)) 109 return _2; 110 if ("3".equals(codeString)) 111 return _3; 112 if ("4".equals(codeString)) 113 return _4; 114 if ("5".equals(codeString)) 115 return _5; 116 if ("6".equals(codeString)) 117 return _6; 118 if ("7".equals(codeString)) 119 return _7; 120 if ("8".equals(codeString)) 121 return _8; 122 if ("9".equals(codeString)) 123 return _9; 124 if ("10".equals(codeString)) 125 return _10; 126 if ("11".equals(codeString)) 127 return _11; 128 if ("12".equals(codeString)) 129 return _12; 130 if ("13".equals(codeString)) 131 return _13; 132 if ("14".equals(codeString)) 133 return _14; 134 if ("15".equals(codeString)) 135 return _15; 136 throw new FHIRException("Unknown DicomAuditLifecycle code '"+codeString+"'"); 137 } 138 public String toCode() { 139 switch (this) { 140 case _1: return "1"; 141 case _2: return "2"; 142 case _3: return "3"; 143 case _4: return "4"; 144 case _5: return "5"; 145 case _6: return "6"; 146 case _7: return "7"; 147 case _8: return "8"; 148 case _9: return "9"; 149 case _10: return "10"; 150 case _11: return "11"; 151 case _12: return "12"; 152 case _13: return "13"; 153 case _14: return "14"; 154 case _15: return "15"; 155 default: return "?"; 156 } 157 } 158 public String getSystem() { 159 return "http://hl7.org/fhir/dicom-audit-lifecycle"; 160 } 161 public String getDefinition() { 162 switch (this) { 163 case _1: return ""; 164 case _2: return ""; 165 case _3: return ""; 166 case _4: return ""; 167 case _5: return ""; 168 case _6: return ""; 169 case _7: return ""; 170 case _8: return ""; 171 case _9: return ""; 172 case _10: return ""; 173 case _11: return ""; 174 case _12: return ""; 175 case _13: return ""; 176 case _14: return ""; 177 case _15: return ""; 178 default: return "?"; 179 } 180 } 181 public String getDisplay() { 182 switch (this) { 183 case _1: return "Origination / Creation"; 184 case _2: return "Import / Copy"; 185 case _3: return "Amendment"; 186 case _4: return "Verification"; 187 case _5: return "Translation"; 188 case _6: return "Access / Use"; 189 case _7: return "De-identification"; 190 case _8: return "Aggregation / summarization / derivation"; 191 case _9: return "Report"; 192 case _10: return "Export"; 193 case _11: return "Disclosure"; 194 case _12: return "Receipt of disclosure"; 195 case _13: return "Archiving"; 196 case _14: return "Logical deletion"; 197 case _15: return "Permanent erasure / Physical destruction"; 198 default: return "?"; 199 } 200 } 201 202 203} 204