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