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 Iso21089Lifecycle {
058
059        /**
060         * Occurs when an agent causes the system to obtain and open a record entry for inspection or review.
061         */
062        ACCESS, 
063        /**
064         * Occurs when an agent causes the system to tag or otherwise indicate special access management and suspension of record entry deletion/destruction, if deemed relevant to a lawsuit or which are reasonably anticipated to be relevant or to fulfill organizational policy under the legal doctrine of “duty to preserve”.
065         */
066        HOLD, 
067        /**
068         * Occurs when an agent makes any change to record entry content currently residing in storage considered permanent (persistent).
069         */
070        AMEND, 
071        /**
072         * Occurs when an agent causes the system to create and move archive artifacts containing record entry content, typically to long-term offline storage.
073         */
074        ARCHIVE, 
075        /**
076         * Occurs when an agent causes the system to capture the agent’s digital signature (or equivalent indication) during formal validation of record entry content.
077         */
078        ATTEST, 
079        /**
080         * Occurs when an agent causes the system to decode record entry content from a cipher.
081         */
082        DECRYPT, 
083        /**
084         * Occurs when an agent causes the system to scrub record entry content to reduce the association between a set of identifying data and the data subject in a way that might or might not be reversible.
085         */
086        DEIDENTIFY, 
087        /**
088         * Occurs when an agent causes the system to tag record entry(ies) as obsolete, erroneous or untrustworthy, to warn against its future use.
089         */
090        DEPRECATE, 
091        /**
092         * Occurs when an agent causes the system to permanently erase record entry content from the system.
093         */
094        DESTROY, 
095        /**
096         * Occurs when an agent causes the system to release, transfer, provision access to, or otherwise divulge record entry content.
097         */
098        DISCLOSE, 
099        /**
100         * Occurs when an agent causes the system to encode record entry content in a cipher.
101         */
102        ENCRYPT, 
103        /**
104         * Occurs when an agent causes the system to selectively pull out a subset of record entry content, based on explicit criteria.
105         */
106        EXTRACT, 
107        /**
108         * Occurs when an agent causes the system to connect related record entries.
109         */
110        LINK, 
111        /**
112         * Occurs when an agent causes the system to combine or join content from two or more record entries, resulting in a single logical record entry.
113         */
114        MERGE, 
115        /**
116         * Occurs when an agent causes the system to: a) initiate capture of potential record content, and b) incorporate that content into the storage considered a permanent part of the health record.
117         */
118        ORIGINATE, 
119        /**
120         * Occurs when an agent causes the system to remove record entry content to reduce the association between a set of identifying data and the data subject in a way that may be reversible.
121         */
122        PSEUDONYMIZE, 
123        /**
124         * Occurs when an agent causes the system to recreate or restore full status to record entries previously deleted or deprecated.
125         */
126        REACTIVATE, 
127        /**
128         * Occurs when an agent causes the system to a) initiate capture of data content from elsewhere, and b) incorporate that content into the storage considered a permanent part of the health record.
129         */
130        RECEIVE, 
131        /**
132         * Occurs when an agent causes the system to restore information to data that allows identification of information source and/or information subject.
133         */
134        REIDENTIFY, 
135        /**
136         * Occurs when an agent causes the system to remove a tag or other cues for special access management had required to fulfill organizational policy under the legal doctrine of “duty to preserve”.
137         */
138        UNHOLD, 
139        /**
140         * Occurs when an agent causes the system to produce and deliver record entry content in a particular form and manner.
141         */
142        REPORT, 
143        /**
144         * Occurs when an agent causes the system to recreate record entries and their content from a previous created archive artefact.
145         */
146        RESTORE, 
147        /**
148         * Occurs when an agent causes the system to change the form, language or code system used to represent record entry content.
149         */
150        TRANSFORM, 
151        /**
152         * Occurs when an agent causes the system to send record entry content from one (EHR/PHR/other) system to another.
153         */
154        TRANSMIT, 
155        /**
156         * Occurs when an agent causes the system to disconnect two or more record entries previously connected, rendering them separate (disconnected) again.
157         */
158        UNLINK, 
159        /**
160         * Occurs when an agent causes the system to reverse a previous record entry merge operation, rendering them separate again.
161         */
162        UNMERGE, 
163        /**
164         * Occurs when an agent causes the system to confirm compliance of data or data objects with regulations, requirements, specifications, or other imposed conditions based on organizational policy.
165         */
166        VERIFY, 
167        /**
168         * added to help the parsers
169         */
170        NULL;
171        public static Iso21089Lifecycle fromCode(String codeString) throws FHIRException {
172            if (codeString == null || "".equals(codeString))
173                return null;
174        if ("access".equals(codeString))
175          return ACCESS;
176        if ("hold".equals(codeString))
177          return HOLD;
178        if ("amend".equals(codeString))
179          return AMEND;
180        if ("archive".equals(codeString))
181          return ARCHIVE;
182        if ("attest".equals(codeString))
183          return ATTEST;
184        if ("decrypt".equals(codeString))
185          return DECRYPT;
186        if ("deidentify".equals(codeString))
187          return DEIDENTIFY;
188        if ("deprecate".equals(codeString))
189          return DEPRECATE;
190        if ("destroy".equals(codeString))
191          return DESTROY;
192        if ("disclose".equals(codeString))
193          return DISCLOSE;
194        if ("encrypt".equals(codeString))
195          return ENCRYPT;
196        if ("extract".equals(codeString))
197          return EXTRACT;
198        if ("link".equals(codeString))
199          return LINK;
200        if ("merge".equals(codeString))
201          return MERGE;
202        if ("originate".equals(codeString))
203          return ORIGINATE;
204        if ("pseudonymize".equals(codeString))
205          return PSEUDONYMIZE;
206        if ("reactivate".equals(codeString))
207          return REACTIVATE;
208        if ("receive".equals(codeString))
209          return RECEIVE;
210        if ("reidentify".equals(codeString))
211          return REIDENTIFY;
212        if ("unhold".equals(codeString))
213          return UNHOLD;
214        if ("report".equals(codeString))
215          return REPORT;
216        if ("restore".equals(codeString))
217          return RESTORE;
218        if ("transform".equals(codeString))
219          return TRANSFORM;
220        if ("transmit".equals(codeString))
221          return TRANSMIT;
222        if ("unlink".equals(codeString))
223          return UNLINK;
224        if ("unmerge".equals(codeString))
225          return UNMERGE;
226        if ("verify".equals(codeString))
227          return VERIFY;
228        throw new FHIRException("Unknown Iso21089Lifecycle code '"+codeString+"'");
229        }
230        public String toCode() {
231          switch (this) {
232            case ACCESS: return "access";
233            case HOLD: return "hold";
234            case AMEND: return "amend";
235            case ARCHIVE: return "archive";
236            case ATTEST: return "attest";
237            case DECRYPT: return "decrypt";
238            case DEIDENTIFY: return "deidentify";
239            case DEPRECATE: return "deprecate";
240            case DESTROY: return "destroy";
241            case DISCLOSE: return "disclose";
242            case ENCRYPT: return "encrypt";
243            case EXTRACT: return "extract";
244            case LINK: return "link";
245            case MERGE: return "merge";
246            case ORIGINATE: return "originate";
247            case PSEUDONYMIZE: return "pseudonymize";
248            case REACTIVATE: return "reactivate";
249            case RECEIVE: return "receive";
250            case REIDENTIFY: return "reidentify";
251            case UNHOLD: return "unhold";
252            case REPORT: return "report";
253            case RESTORE: return "restore";
254            case TRANSFORM: return "transform";
255            case TRANSMIT: return "transmit";
256            case UNLINK: return "unlink";
257            case UNMERGE: return "unmerge";
258            case VERIFY: return "verify";
259            default: return "?";
260          }
261        }
262        public String getSystem() {
263          return "http://terminology.hl7.org/CodeSystem/iso-21089-lifecycle";
264        }
265        public String getDefinition() {
266          switch (this) {
267            case ACCESS: return "Occurs when an agent causes the system to obtain and open a record entry for inspection or review.";
268            case HOLD: return "Occurs when an agent causes the system to tag or otherwise indicate special access management and suspension of record entry deletion/destruction, if deemed relevant to a lawsuit or which are reasonably anticipated to be relevant or to fulfill organizational policy under the legal doctrine of “duty to preserve”.";
269            case AMEND: return "Occurs when an agent makes any change to record entry content currently residing in storage considered permanent (persistent).";
270            case ARCHIVE: return "Occurs when an agent causes the system to create and move archive artifacts containing record entry content, typically to long-term offline storage.";
271            case ATTEST: return "Occurs when an agent causes the system to capture the agent’s digital signature (or equivalent indication) during formal validation of record entry content.";
272            case DECRYPT: return "Occurs when an agent causes the system to decode record entry content from a cipher.";
273            case DEIDENTIFY: return "Occurs when an agent causes the system to scrub record entry content to reduce the association between a set of identifying data and the data subject in a way that might or might not be reversible.";
274            case DEPRECATE: return "Occurs when an agent causes the system to tag record entry(ies) as obsolete, erroneous or untrustworthy, to warn against its future use.";
275            case DESTROY: return "Occurs when an agent causes the system to permanently erase record entry content from the system.";
276            case DISCLOSE: return "Occurs when an agent causes the system to release, transfer, provision access to, or otherwise divulge record entry content.";
277            case ENCRYPT: return "Occurs when an agent causes the system to encode record entry content in a cipher.";
278            case EXTRACT: return "Occurs when an agent causes the system to selectively pull out a subset of record entry content, based on explicit criteria.";
279            case LINK: return "Occurs when an agent causes the system to connect related record entries.";
280            case MERGE: return "Occurs when an agent causes the system to combine or join content from two or more record entries, resulting in a single logical record entry.";
281            case ORIGINATE: return "Occurs when an agent causes the system to: a) initiate capture of potential record content, and b) incorporate that content into the storage considered a permanent part of the health record.";
282            case PSEUDONYMIZE: return "Occurs when an agent causes the system to remove record entry content to reduce the association between a set of identifying data and the data subject in a way that may be reversible.";
283            case REACTIVATE: return "Occurs when an agent causes the system to recreate or restore full status to record entries previously deleted or deprecated.";
284            case RECEIVE: return "Occurs when an agent causes the system to a) initiate capture of data content from elsewhere, and b) incorporate that content into the storage considered a permanent part of the health record.";
285            case REIDENTIFY: return "Occurs when an agent causes the system to restore information to data that allows identification of information source and/or information subject.";
286            case UNHOLD: return "Occurs when an agent causes the system to remove a tag or other cues for special access management had required to fulfill organizational policy under the legal doctrine of “duty to preserve”.";
287            case REPORT: return "Occurs when an agent causes the system to produce and deliver record entry content in a particular form and manner.";
288            case RESTORE: return "Occurs when an agent causes the system to recreate record entries and their content from a previous created archive artefact.";
289            case TRANSFORM: return "Occurs when an agent causes the system to change the form, language or code system used to represent record entry content.";
290            case TRANSMIT: return "Occurs when an agent causes the system to send record entry content from one (EHR/PHR/other) system to another.";
291            case UNLINK: return "Occurs when an agent causes the system to disconnect two or more record entries previously connected, rendering them separate (disconnected) again.";
292            case UNMERGE: return "Occurs when an agent causes the system to reverse a previous record entry merge operation, rendering them separate again.";
293            case VERIFY: return "Occurs when an agent causes the system to confirm compliance of data or data objects with regulations, requirements, specifications, or other imposed conditions based on organizational policy.";
294            default: return "?";
295          }
296        }
297        public String getDisplay() {
298          switch (this) {
299            case ACCESS: return "Access/View Record Lifecycle Event";
300            case HOLD: return "Add Legal Hold Record Lifecycle Event";
301            case AMEND: return "Amend (Update) Record Lifecycle Event";
302            case ARCHIVE: return "Archive Record Lifecycle Event";
303            case ATTEST: return "Attest Record Lifecycle Event";
304            case DECRYPT: return "Decrypt Record Lifecycle Event";
305            case DEIDENTIFY: return "De-Identify (Anononymize) Record Lifecycle Event";
306            case DEPRECATE: return "Deprecate Record Lifecycle Event";
307            case DESTROY: return "Destroy/Delete Record Lifecycle Event";
308            case DISCLOSE: return "Disclose Record Lifecycle Event";
309            case ENCRYPT: return "Encrypt Record Lifecycle Event";
310            case EXTRACT: return "Extract Record Lifecycle Event";
311            case LINK: return "Link Record Lifecycle Event";
312            case MERGE: return "Merge Record Lifecycle Event";
313            case ORIGINATE: return "Originate/Retain Record Lifecycle Event";
314            case PSEUDONYMIZE: return "Pseudonymize Record Lifecycle Event";
315            case REACTIVATE: return "Re-activate Record Lifecycle Event";
316            case RECEIVE: return "Receive/Retain Record Lifecycle Event";
317            case REIDENTIFY: return "Re-identify Record Lifecycle Event";
318            case UNHOLD: return "Remove Legal Hold Record Lifecycle Event";
319            case REPORT: return "Report (Output) Record Lifecycle Event";
320            case RESTORE: return "Restore Record Lifecycle Event";
321            case TRANSFORM: return "Transform/Translate Record Lifecycle Event";
322            case TRANSMIT: return "Transmit Record Lifecycle Event";
323            case UNLINK: return "Unlink Record Lifecycle Event";
324            case UNMERGE: return "Unmerge Record Lifecycle Event";
325            case VERIFY: return "Verify Record Lifecycle Event";
326            default: return "?";
327          }
328    }
329
330
331}
332