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 V3DataOperation {
058
059        /**
060         * Description:Act on an object or objects.
061         */
062        OPERATE, 
063        /**
064         * Description:Fundamental operation in an Information System (IS) that results only in the act of bringing an object into existence. Note: The preceding definition is taken from the HL7 RBAC specification.  There is no restriction on how the operation is invoked, e.g., via a user interface. For an HL7 Act, the state transitions per the HL7 Reference Information Model.
065         */
066        CREATE, 
067        /**
068         * Description:Fundamental operation in an Information System (IS) that results only in the removal of information about an object from memory or storage. Note: The preceding definition is taken from the HL7 RBAC specification.  There is no restriction on how the operation is invoked, e.g., via a user interface.
069         */
070        DELETE, 
071        /**
072         * Description:Fundamental operation in an IS that results only in initiating performance of a single or set of programs (i.e., software objects). Note: The preceding definition is taken from the HL7 RBAC specification.  There is no restriction on how the operation is invoked, e.g., via a user interface.
073         */
074        EXECUTE, 
075        /**
076         * Description:Fundamental operation in an Information System (IS) that results only in the flow of information about an object to a subject. Note: The preceding definition is taken from the HL7 RBAC specification.  There is no restriction on how the operation is invoked, e.g., via a user interface.
077         */
078        READ, 
079        /**
080         * Definition:Fundamental operation in an Information System (IS) that results only in the revision or alteration of an object. Note: The preceding definition is taken from the HL7 RBAC specification. There is no restriction on how the operation is invoked, e.g., via a user interface.
081         */
082        UPDATE, 
083        /**
084         * Description:Fundamental operation in an Information System (IS) that results only in the addition of information to an object already in existence. Note: The preceding definition is taken from the HL7 RBAC specification.  There is no restriction on how the operation is invoked, e.g., via a user interface.
085         */
086        APPEND, 
087        /**
088         * Description:Change the status of an object representing an Act.
089         */
090        MODIFYSTATUS, 
091        /**
092         * Description:Change the status of an object representing an Act to "aborted", i.e., terminated prior to the originally intended completion. For an HL7 Act, the state transitions per the HL7 Reference Information Model.
093         */
094        ABORT, 
095        /**
096         * Description:Change the status of an object representing an Act to "active", i.e., so it can be performed or is being performed, for the first time. (Contrast with REACTIVATE.) For an HL7 Act, the state transitions per the HL7 Reference Information Model.
097         */
098        ACTIVATE, 
099        /**
100         * Description:Change the status of an object representing an Act to "cancelled", i.e., abandoned before activation. For an HL7 Act, the state transitions per the HL7 Reference Information Model.
101         */
102        CANCEL, 
103        /**
104         * Description:Change the status of an object representing an Act to "completed", i.e., terminated normally after all of its constituents have been performed. For an HL7 Act, the state transitions per the HL7 Reference Information Model.
105         */
106        COMPLETE, 
107        /**
108         * Description:Change the status of an object representing an Act to "held", i.e., put aside an Act that is still in preparatory stages.  No action can occur until the Act is released. For an HL7 Act, the state transitions per the HL7 Reference Information Model.
109         */
110        HOLD, 
111        /**
112         * Description:Change the status of an object representing an Act to a normal state. For an HL7 Act, the state transitions per the HL7 Reference Information Model.
113         */
114        JUMP, 
115        /**
116         * Description:Change the status of an object representing an Act to "nullified", i.e., treat as though it never existed. For an HL7 Act, the state transitions per the HL7 Reference Information Model.
117         */
118        NULLIFY, 
119        /**
120         * Description:Change the status of an object representing an Act to "obsolete" when it has been replaced by a new instance. For an HL7 Act, the state transitions per the HL7 Reference Information Model.
121         */
122        OBSOLETE, 
123        /**
124         * Description:Change the status of a formerly active object representing an Act to "active", i.e., so it can again be performed or is being performed. (Contrast with ACTIVATE.) For an HL7 Act, the state transitions per the HL7 Reference Information Model.
125         */
126        REACTIVATE, 
127        /**
128         * Description:Change the status of an object representing an Act so it is no longer "held", i.e., allow action to occur. For an HL7 Act, the state transitions per the HL7 Reference Information Model.
129         */
130        RELEASE, 
131        /**
132         * Description:Change the status of a suspended object representing an Act to "active", i.e., so it can be performed or is being performed. For an HL7 Act, the state transitions per the HL7 Reference Information Model.
133         */
134        RESUME, 
135        /**
136         * Definition:Change the status of an object representing an Act to suspended, i.e., so it is temporarily not in service.
137         */
138        SUSPEND, 
139        /**
140         * added to help the parsers
141         */
142        NULL;
143        public static V3DataOperation fromCode(String codeString) throws FHIRException {
144            if (codeString == null || "".equals(codeString))
145                return null;
146        if ("OPERATE".equals(codeString))
147          return OPERATE;
148        if ("CREATE".equals(codeString))
149          return CREATE;
150        if ("DELETE".equals(codeString))
151          return DELETE;
152        if ("EXECUTE".equals(codeString))
153          return EXECUTE;
154        if ("READ".equals(codeString))
155          return READ;
156        if ("UPDATE".equals(codeString))
157          return UPDATE;
158        if ("APPEND".equals(codeString))
159          return APPEND;
160        if ("MODIFYSTATUS".equals(codeString))
161          return MODIFYSTATUS;
162        if ("ABORT".equals(codeString))
163          return ABORT;
164        if ("ACTIVATE".equals(codeString))
165          return ACTIVATE;
166        if ("CANCEL".equals(codeString))
167          return CANCEL;
168        if ("COMPLETE".equals(codeString))
169          return COMPLETE;
170        if ("HOLD".equals(codeString))
171          return HOLD;
172        if ("JUMP".equals(codeString))
173          return JUMP;
174        if ("NULLIFY".equals(codeString))
175          return NULLIFY;
176        if ("OBSOLETE".equals(codeString))
177          return OBSOLETE;
178        if ("REACTIVATE".equals(codeString))
179          return REACTIVATE;
180        if ("RELEASE".equals(codeString))
181          return RELEASE;
182        if ("RESUME".equals(codeString))
183          return RESUME;
184        if ("SUSPEND".equals(codeString))
185          return SUSPEND;
186        throw new FHIRException("Unknown V3DataOperation code '"+codeString+"'");
187        }
188        public String toCode() {
189          switch (this) {
190            case OPERATE: return "OPERATE";
191            case CREATE: return "CREATE";
192            case DELETE: return "DELETE";
193            case EXECUTE: return "EXECUTE";
194            case READ: return "READ";
195            case UPDATE: return "UPDATE";
196            case APPEND: return "APPEND";
197            case MODIFYSTATUS: return "MODIFYSTATUS";
198            case ABORT: return "ABORT";
199            case ACTIVATE: return "ACTIVATE";
200            case CANCEL: return "CANCEL";
201            case COMPLETE: return "COMPLETE";
202            case HOLD: return "HOLD";
203            case JUMP: return "JUMP";
204            case NULLIFY: return "NULLIFY";
205            case OBSOLETE: return "OBSOLETE";
206            case REACTIVATE: return "REACTIVATE";
207            case RELEASE: return "RELEASE";
208            case RESUME: return "RESUME";
209            case SUSPEND: return "SUSPEND";
210            default: return "?";
211          }
212        }
213        public String getSystem() {
214          return "http://terminology.hl7.org/CodeSystem/v3-DataOperation";
215        }
216        public String getDefinition() {
217          switch (this) {
218            case OPERATE: return "Description:Act on an object or objects.";
219            case CREATE: return "Description:Fundamental operation in an Information System (IS) that results only in the act of bringing an object into existence. Note: The preceding definition is taken from the HL7 RBAC specification.  There is no restriction on how the operation is invoked, e.g., via a user interface. For an HL7 Act, the state transitions per the HL7 Reference Information Model.";
220            case DELETE: return "Description:Fundamental operation in an Information System (IS) that results only in the removal of information about an object from memory or storage. Note: The preceding definition is taken from the HL7 RBAC specification.  There is no restriction on how the operation is invoked, e.g., via a user interface.";
221            case EXECUTE: return "Description:Fundamental operation in an IS that results only in initiating performance of a single or set of programs (i.e., software objects). Note: The preceding definition is taken from the HL7 RBAC specification.  There is no restriction on how the operation is invoked, e.g., via a user interface.";
222            case READ: return "Description:Fundamental operation in an Information System (IS) that results only in the flow of information about an object to a subject. Note: The preceding definition is taken from the HL7 RBAC specification.  There is no restriction on how the operation is invoked, e.g., via a user interface.";
223            case UPDATE: return "Definition:Fundamental operation in an Information System (IS) that results only in the revision or alteration of an object. Note: The preceding definition is taken from the HL7 RBAC specification. There is no restriction on how the operation is invoked, e.g., via a user interface.";
224            case APPEND: return "Description:Fundamental operation in an Information System (IS) that results only in the addition of information to an object already in existence. Note: The preceding definition is taken from the HL7 RBAC specification.  There is no restriction on how the operation is invoked, e.g., via a user interface.";
225            case MODIFYSTATUS: return "Description:Change the status of an object representing an Act.";
226            case ABORT: return "Description:Change the status of an object representing an Act to \"aborted\", i.e., terminated prior to the originally intended completion. For an HL7 Act, the state transitions per the HL7 Reference Information Model.";
227            case ACTIVATE: return "Description:Change the status of an object representing an Act to \"active\", i.e., so it can be performed or is being performed, for the first time. (Contrast with REACTIVATE.) For an HL7 Act, the state transitions per the HL7 Reference Information Model.";
228            case CANCEL: return "Description:Change the status of an object representing an Act to \"cancelled\", i.e., abandoned before activation. For an HL7 Act, the state transitions per the HL7 Reference Information Model.";
229            case COMPLETE: return "Description:Change the status of an object representing an Act to \"completed\", i.e., terminated normally after all of its constituents have been performed. For an HL7 Act, the state transitions per the HL7 Reference Information Model.";
230            case HOLD: return "Description:Change the status of an object representing an Act to \"held\", i.e., put aside an Act that is still in preparatory stages.  No action can occur until the Act is released. For an HL7 Act, the state transitions per the HL7 Reference Information Model.";
231            case JUMP: return "Description:Change the status of an object representing an Act to a normal state. For an HL7 Act, the state transitions per the HL7 Reference Information Model.";
232            case NULLIFY: return "Description:Change the status of an object representing an Act to \"nullified\", i.e., treat as though it never existed. For an HL7 Act, the state transitions per the HL7 Reference Information Model.";
233            case OBSOLETE: return "Description:Change the status of an object representing an Act to \"obsolete\" when it has been replaced by a new instance. For an HL7 Act, the state transitions per the HL7 Reference Information Model.";
234            case REACTIVATE: return "Description:Change the status of a formerly active object representing an Act to \"active\", i.e., so it can again be performed or is being performed. (Contrast with ACTIVATE.) For an HL7 Act, the state transitions per the HL7 Reference Information Model.";
235            case RELEASE: return "Description:Change the status of an object representing an Act so it is no longer \"held\", i.e., allow action to occur. For an HL7 Act, the state transitions per the HL7 Reference Information Model.";
236            case RESUME: return "Description:Change the status of a suspended object representing an Act to \"active\", i.e., so it can be performed or is being performed. For an HL7 Act, the state transitions per the HL7 Reference Information Model.";
237            case SUSPEND: return "Definition:Change the status of an object representing an Act to suspended, i.e., so it is temporarily not in service.";
238            default: return "?";
239          }
240        }
241        public String getDisplay() {
242          switch (this) {
243            case OPERATE: return "operate";
244            case CREATE: return "create";
245            case DELETE: return "delete";
246            case EXECUTE: return "execute";
247            case READ: return "read";
248            case UPDATE: return "revise";
249            case APPEND: return "append";
250            case MODIFYSTATUS: return "modify status";
251            case ABORT: return "abort";
252            case ACTIVATE: return "activate";
253            case CANCEL: return "cancel";
254            case COMPLETE: return "complete";
255            case HOLD: return "hold";
256            case JUMP: return "jump";
257            case NULLIFY: return "nullify";
258            case OBSOLETE: return "obsolete";
259            case REACTIVATE: return "reactivate";
260            case RELEASE: return "release";
261            case RESUME: return "resume";
262            case SUSPEND: return "suspend";
263            default: return "?";
264          }
265    }
266
267
268}
269