001package org.hl7.fhir.r5.model.codesystems;
002
003/*
004 * #%L
005 * org.hl7.fhir.r5
006 * %%
007 * Copyright (C) 2014 - 2019 Health Level 7
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023/*
024  Copyright (c) 2011+, HL7, Inc.
025  All rights reserved.
026  
027  Redistribution and use in source and binary forms, with or without modification, 
028  are permitted provided that the following conditions are met:
029  
030   * Redistributions of source code must retain the above copyright notice, this 
031     list of conditions and the following disclaimer.
032   * Redistributions in binary form must reproduce the above copyright notice, 
033     this list of conditions and the following disclaimer in the documentation 
034     and/or other materials provided with the distribution.
035   * Neither the name of HL7 nor the names of its contributors may be used to 
036     endorse or promote products derived from this software without specific 
037     prior written permission.
038  
039  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
040  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
041  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
042  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
043  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
044  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
045  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
046  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
047  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
048  POSSIBILITY OF SUCH DAMAGE.
049  
050*/
051
052// Generated on Thu, Oct 17, 2019 09:42+1100 for FHIR v4.1.0
053
054
055import org.hl7.fhir.exceptions.FHIRException;
056
057public enum DicomAuditLifecycle {
058
059        /**
060         * null
061         */
062        _1, 
063        /**
064         * null
065         */
066        _2, 
067        /**
068         * null
069         */
070        _3, 
071        /**
072         * null
073         */
074        _4, 
075        /**
076         * null
077         */
078        _5, 
079        /**
080         * null
081         */
082        _6, 
083        /**
084         * null
085         */
086        _7, 
087        /**
088         * null
089         */
090        _8, 
091        /**
092         * null
093         */
094        _9, 
095        /**
096         * null
097         */
098        _10, 
099        /**
100         * null
101         */
102        _11, 
103        /**
104         * null
105         */
106        _12, 
107        /**
108         * null
109         */
110        _13, 
111        /**
112         * null
113         */
114        _14, 
115        /**
116         * null
117         */
118        _15, 
119        /**
120         * added to help the parsers
121         */
122        NULL;
123        public static DicomAuditLifecycle fromCode(String codeString) throws FHIRException {
124            if (codeString == null || "".equals(codeString))
125                return null;
126        if ("1".equals(codeString))
127          return _1;
128        if ("2".equals(codeString))
129          return _2;
130        if ("3".equals(codeString))
131          return _3;
132        if ("4".equals(codeString))
133          return _4;
134        if ("5".equals(codeString))
135          return _5;
136        if ("6".equals(codeString))
137          return _6;
138        if ("7".equals(codeString))
139          return _7;
140        if ("8".equals(codeString))
141          return _8;
142        if ("9".equals(codeString))
143          return _9;
144        if ("10".equals(codeString))
145          return _10;
146        if ("11".equals(codeString))
147          return _11;
148        if ("12".equals(codeString))
149          return _12;
150        if ("13".equals(codeString))
151          return _13;
152        if ("14".equals(codeString))
153          return _14;
154        if ("15".equals(codeString))
155          return _15;
156        throw new FHIRException("Unknown DicomAuditLifecycle code '"+codeString+"'");
157        }
158        public String toCode() {
159          switch (this) {
160            case _1: return "1";
161            case _2: return "2";
162            case _3: return "3";
163            case _4: return "4";
164            case _5: return "5";
165            case _6: return "6";
166            case _7: return "7";
167            case _8: return "8";
168            case _9: return "9";
169            case _10: return "10";
170            case _11: return "11";
171            case _12: return "12";
172            case _13: return "13";
173            case _14: return "14";
174            case _15: return "15";
175            default: return "?";
176          }
177        }
178        public String getSystem() {
179          return "http://terminology.hl7.org/CodeSystem/dicom-audit-lifecycle";
180        }
181        public String getDefinition() {
182          switch (this) {
183            case _1: return "";
184            case _2: return "";
185            case _3: return "";
186            case _4: return "";
187            case _5: return "";
188            case _6: return "";
189            case _7: return "";
190            case _8: return "";
191            case _9: return "";
192            case _10: return "";
193            case _11: return "";
194            case _12: return "";
195            case _13: return "";
196            case _14: return "";
197            case _15: return "";
198            default: return "?";
199          }
200        }
201        public String getDisplay() {
202          switch (this) {
203            case _1: return "Origination / Creation";
204            case _2: return "Import / Copy";
205            case _3: return "Amendment";
206            case _4: return "Verification";
207            case _5: return "Translation";
208            case _6: return "Access / Use";
209            case _7: return "De-identification";
210            case _8: return "Aggregation / summarization / derivation";
211            case _9: return "Report";
212            case _10: return "Export";
213            case _11: return "Disclosure";
214            case _12: return "Receipt of disclosure";
215            case _13: return "Archiving";
216            case _14: return "Logical deletion";
217            case _15: return "Permanent erasure / Physical destruction";
218            default: return "?";
219          }
220    }
221
222
223}
224