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 AstmSignatureType {
058
059        /**
060         * the signature of the primary or sole author of a health information document. There can be only one primary author of a health information document.
061         */
062        OID_1_2_840_10065_1_12_1_1, 
063        /**
064         * the signature of a health information document coauthor. There can be multiple coauthors of a health information document.
065         */
066        OID_1_2_840_10065_1_12_1_2, 
067        /**
068         * the signature of an individual who is a participant in the health information document but is not an author or coauthor. (Example a surgeon who is required by institutional, regulatory, or legal rules to sign an operative report, but who was not involved in the authorship of that report.)
069         */
070        OID_1_2_840_10065_1_12_1_3, 
071        /**
072         * the signature of an individual who has transcribed a dictated document or recorded written text into a digital machine readable format.
073         */
074        OID_1_2_840_10065_1_12_1_4, 
075        /**
076         * a signature verifying the information contained in a document. (Example a physician is required to countersign a verbal order that has previously been recorded in the medical record by a registered nurse who has carried out the verbal order.)
077         */
078        OID_1_2_840_10065_1_12_1_5, 
079        /**
080         * a signature validating a health information document for inclusion in the patient record. (Example a medical student or resident is credentialed to perform history or physical examinations and to write progress notes. The attending physician signs the history and physical examination to validate the entry for inclusion in the patient's medical record.)
081         */
082        OID_1_2_840_10065_1_12_1_6, 
083        /**
084         * the signature of an individual consenting to what is described in a health information document.
085         */
086        OID_1_2_840_10065_1_12_1_7, 
087        /**
088         * the signature of a witness to any other signature.
089         */
090        OID_1_2_840_10065_1_12_1_8, 
091        /**
092         * the signature of a witness to an event. (Example the witness has observed a procedure and is attesting to this fact.)
093         */
094        OID_1_2_840_10065_1_12_1_9, 
095        /**
096         * the signature of an individual who has witnessed another individual who is known to them signing a document. (Example the identity witness is a notary public.)
097         */
098        OID_1_2_840_10065_1_12_1_10, 
099        /**
100         * the signature of an individual who has witnessed the health care provider counselling a patient.
101         */
102        OID_1_2_840_10065_1_12_1_11, 
103        /**
104         * the signature of an individual who has translated health care information during an event or the obtaining of consent to a treatment.
105         */
106        OID_1_2_840_10065_1_12_1_12, 
107        /**
108         * the signature of a person, device, or algorithm that has reviewed or filtered data for inclusion into the patient record. ( Examples: (1) a medical records clerk who scans a document for inclusion in the medical record, enters header information, or catalogues and classifies the data, or a combination thereof; (2) a gateway that receives data from another computer system and interprets that data or changes its format, or both, before entering it into the patient record.)
109         */
110        OID_1_2_840_10065_1_12_1_13, 
111        /**
112         * the signature of an automated data source. (Examples: (1) the signature for an image that is generated by a device for inclusion in the patient record; (2) the signature for an ECG derived by an ECG system for inclusion in the patient record; (3) the data from a biomedical monitoring device or system that is for inclusion in the patient record.)
113         */
114        OID_1_2_840_10065_1_12_1_14, 
115        /**
116         * the signature on a new amended document of an individual who has corrected, edited, or amended an original health information document. An addendum signature can either be a signature type or a signature sub-type (see 8.1). Any document with an addendum signature shall have a companion document that is the original document with its original, unaltered content, and original signatures. The original document shall be referenced via an attribute in the new document, which contains, for example, the digest of the old document. Whether the original, unaltered, document is always displayed with the addended document is a local matter, but the original, unaltered, document must remain as part of the patient record and be retrievable on demand.
117         */
118        OID_1_2_840_10065_1_12_1_15, 
119        /**
120         * the signature on an original document of an individual who has generated a new amended document. This (original) document shall reference the new document via an additional signature purpose. This is the inverse of an addendum signature and provides a pointer from the original to the amended document.
121         */
122        OID_1_2_840_10065_1_12_1_16, 
123        /**
124         * the signature of an individual who is certifying that the document is invalidated by an error(s), or is placed in the wrong chart. An administrative (error/edit) signature must include an addendum to the document and therefore shall have an addendum signature sub-type (see 8.1). This signature is reserved for the highest health information system administrative classification, since it is a statement that the entire document is invalidated by the error and that the document should no longer be used for patient care, although for legal reasons the document must remain part of the permanent patient record.
125         */
126        OID_1_2_840_10065_1_12_1_17, 
127        /**
128         * the signature by an entity or device trusted to provide accurate timestamps. This timestamp might be provided, for example, in the signature time attribute.
129         */
130        OID_1_2_840_10065_1_12_1_18, 
131        /**
132         * added to help the parsers
133         */
134        NULL;
135        public static AstmSignatureType fromCode(String codeString) throws FHIRException {
136            if (codeString == null || "".equals(codeString))
137                return null;
138        if ("1.2.840.10065.1.12.1.1".equals(codeString))
139          return OID_1_2_840_10065_1_12_1_1;
140        if ("1.2.840.10065.1.12.1.2".equals(codeString))
141          return OID_1_2_840_10065_1_12_1_2;
142        if ("1.2.840.10065.1.12.1.3".equals(codeString))
143          return OID_1_2_840_10065_1_12_1_3;
144        if ("1.2.840.10065.1.12.1.4".equals(codeString))
145          return OID_1_2_840_10065_1_12_1_4;
146        if ("1.2.840.10065.1.12.1.5".equals(codeString))
147          return OID_1_2_840_10065_1_12_1_5;
148        if ("1.2.840.10065.1.12.1.6".equals(codeString))
149          return OID_1_2_840_10065_1_12_1_6;
150        if ("1.2.840.10065.1.12.1.7".equals(codeString))
151          return OID_1_2_840_10065_1_12_1_7;
152        if ("1.2.840.10065.1.12.1.8".equals(codeString))
153          return OID_1_2_840_10065_1_12_1_8;
154        if ("1.2.840.10065.1.12.1.9".equals(codeString))
155          return OID_1_2_840_10065_1_12_1_9;
156        if ("1.2.840.10065.1.12.1.10".equals(codeString))
157          return OID_1_2_840_10065_1_12_1_10;
158        if ("1.2.840.10065.1.12.1.11".equals(codeString))
159          return OID_1_2_840_10065_1_12_1_11;
160        if ("1.2.840.10065.1.12.1.12".equals(codeString))
161          return OID_1_2_840_10065_1_12_1_12;
162        if ("1.2.840.10065.1.12.1.13".equals(codeString))
163          return OID_1_2_840_10065_1_12_1_13;
164        if ("1.2.840.10065.1.12.1.14".equals(codeString))
165          return OID_1_2_840_10065_1_12_1_14;
166        if ("1.2.840.10065.1.12.1.15".equals(codeString))
167          return OID_1_2_840_10065_1_12_1_15;
168        if ("1.2.840.10065.1.12.1.16".equals(codeString))
169          return OID_1_2_840_10065_1_12_1_16;
170        if ("1.2.840.10065.1.12.1.17".equals(codeString))
171          return OID_1_2_840_10065_1_12_1_17;
172        if ("1.2.840.10065.1.12.1.18".equals(codeString))
173          return OID_1_2_840_10065_1_12_1_18;
174        throw new FHIRException("Unknown AstmSignatureType code '"+codeString+"'");
175        }
176        public String toCode() {
177          switch (this) {
178            case OID_1_2_840_10065_1_12_1_1: return "1.2.840.10065.1.12.1.1";
179            case OID_1_2_840_10065_1_12_1_2: return "1.2.840.10065.1.12.1.2";
180            case OID_1_2_840_10065_1_12_1_3: return "1.2.840.10065.1.12.1.3";
181            case OID_1_2_840_10065_1_12_1_4: return "1.2.840.10065.1.12.1.4";
182            case OID_1_2_840_10065_1_12_1_5: return "1.2.840.10065.1.12.1.5";
183            case OID_1_2_840_10065_1_12_1_6: return "1.2.840.10065.1.12.1.6";
184            case OID_1_2_840_10065_1_12_1_7: return "1.2.840.10065.1.12.1.7";
185            case OID_1_2_840_10065_1_12_1_8: return "1.2.840.10065.1.12.1.8";
186            case OID_1_2_840_10065_1_12_1_9: return "1.2.840.10065.1.12.1.9";
187            case OID_1_2_840_10065_1_12_1_10: return "1.2.840.10065.1.12.1.10";
188            case OID_1_2_840_10065_1_12_1_11: return "1.2.840.10065.1.12.1.11";
189            case OID_1_2_840_10065_1_12_1_12: return "1.2.840.10065.1.12.1.12";
190            case OID_1_2_840_10065_1_12_1_13: return "1.2.840.10065.1.12.1.13";
191            case OID_1_2_840_10065_1_12_1_14: return "1.2.840.10065.1.12.1.14";
192            case OID_1_2_840_10065_1_12_1_15: return "1.2.840.10065.1.12.1.15";
193            case OID_1_2_840_10065_1_12_1_16: return "1.2.840.10065.1.12.1.16";
194            case OID_1_2_840_10065_1_12_1_17: return "1.2.840.10065.1.12.1.17";
195            case OID_1_2_840_10065_1_12_1_18: return "1.2.840.10065.1.12.1.18";
196            default: return "?";
197          }
198        }
199        public String getSystem() {
200          return "urn:iso-astm:E1762-95:2013";
201        }
202        public String getDefinition() {
203          switch (this) {
204            case OID_1_2_840_10065_1_12_1_1: return "the signature of the primary or sole author of a health information document. There can be only one primary author of a health information document.";
205            case OID_1_2_840_10065_1_12_1_2: return "the signature of a health information document coauthor. There can be multiple coauthors of a health information document.";
206            case OID_1_2_840_10065_1_12_1_3: return "the signature of an individual who is a participant in the health information document but is not an author or coauthor. (Example a surgeon who is required by institutional, regulatory, or legal rules to sign an operative report, but who was not involved in the authorship of that report.)";
207            case OID_1_2_840_10065_1_12_1_4: return "the signature of an individual who has transcribed a dictated document or recorded written text into a digital machine readable format.";
208            case OID_1_2_840_10065_1_12_1_5: return "a signature verifying the information contained in a document. (Example a physician is required to countersign a verbal order that has previously been recorded in the medical record by a registered nurse who has carried out the verbal order.)";
209            case OID_1_2_840_10065_1_12_1_6: return "a signature validating a health information document for inclusion in the patient record. (Example a medical student or resident is credentialed to perform history or physical examinations and to write progress notes. The attending physician signs the history and physical examination to validate the entry for inclusion in the patient's medical record.)";
210            case OID_1_2_840_10065_1_12_1_7: return "the signature of an individual consenting to what is described in a health information document.";
211            case OID_1_2_840_10065_1_12_1_8: return "the signature of a witness to any other signature.";
212            case OID_1_2_840_10065_1_12_1_9: return "the signature of a witness to an event. (Example the witness has observed a procedure and is attesting to this fact.)";
213            case OID_1_2_840_10065_1_12_1_10: return "the signature of an individual who has witnessed another individual who is known to them signing a document. (Example the identity witness is a notary public.)";
214            case OID_1_2_840_10065_1_12_1_11: return "the signature of an individual who has witnessed the health care provider counselling a patient.";
215            case OID_1_2_840_10065_1_12_1_12: return "the signature of an individual who has translated health care information during an event or the obtaining of consent to a treatment.";
216            case OID_1_2_840_10065_1_12_1_13: return "the signature of a person, device, or algorithm that has reviewed or filtered data for inclusion into the patient record. ( Examples: (1) a medical records clerk who scans a document for inclusion in the medical record, enters header information, or catalogues and classifies the data, or a combination thereof; (2) a gateway that receives data from another computer system and interprets that data or changes its format, or both, before entering it into the patient record.)";
217            case OID_1_2_840_10065_1_12_1_14: return "the signature of an automated data source. (Examples: (1) the signature for an image that is generated by a device for inclusion in the patient record; (2) the signature for an ECG derived by an ECG system for inclusion in the patient record; (3) the data from a biomedical monitoring device or system that is for inclusion in the patient record.)";
218            case OID_1_2_840_10065_1_12_1_15: return "the signature on a new amended document of an individual who has corrected, edited, or amended an original health information document. An addendum signature can either be a signature type or a signature sub-type (see 8.1). Any document with an addendum signature shall have a companion document that is the original document with its original, unaltered content, and original signatures. The original document shall be referenced via an attribute in the new document, which contains, for example, the digest of the old document. Whether the original, unaltered, document is always displayed with the addended document is a local matter, but the original, unaltered, document must remain as part of the patient record and be retrievable on demand.";
219            case OID_1_2_840_10065_1_12_1_16: return "the signature on an original document of an individual who has generated a new amended document. This (original) document shall reference the new document via an additional signature purpose. This is the inverse of an addendum signature and provides a pointer from the original to the amended document.";
220            case OID_1_2_840_10065_1_12_1_17: return "the signature of an individual who is certifying that the document is invalidated by an error(s), or is placed in the wrong chart. An administrative (error/edit) signature must include an addendum to the document and therefore shall have an addendum signature sub-type (see 8.1). This signature is reserved for the highest health information system administrative classification, since it is a statement that the entire document is invalidated by the error and that the document should no longer be used for patient care, although for legal reasons the document must remain part of the permanent patient record.";
221            case OID_1_2_840_10065_1_12_1_18: return "the signature by an entity or device trusted to provide accurate timestamps. This timestamp might be provided, for example, in the signature time attribute.";
222            default: return "?";
223          }
224        }
225        public String getDisplay() {
226          switch (this) {
227            case OID_1_2_840_10065_1_12_1_1: return "Author's Signature";
228            case OID_1_2_840_10065_1_12_1_2: return "Coauthor's Signature";
229            case OID_1_2_840_10065_1_12_1_3: return "Co-participant's Signature";
230            case OID_1_2_840_10065_1_12_1_4: return "Transcriptionist/Recorder Signature";
231            case OID_1_2_840_10065_1_12_1_5: return "Verification Signature";
232            case OID_1_2_840_10065_1_12_1_6: return "Validation Signature";
233            case OID_1_2_840_10065_1_12_1_7: return "Consent Signature";
234            case OID_1_2_840_10065_1_12_1_8: return "Signature Witness Signature";
235            case OID_1_2_840_10065_1_12_1_9: return "Event Witness Signature";
236            case OID_1_2_840_10065_1_12_1_10: return "Identity Witness Signature";
237            case OID_1_2_840_10065_1_12_1_11: return "Consent Witness Signature";
238            case OID_1_2_840_10065_1_12_1_12: return "Interpreter Signature";
239            case OID_1_2_840_10065_1_12_1_13: return "Review Signature";
240            case OID_1_2_840_10065_1_12_1_14: return "Source Signature";
241            case OID_1_2_840_10065_1_12_1_15: return "Addendum Signature";
242            case OID_1_2_840_10065_1_12_1_16: return "Modification Signature";
243            case OID_1_2_840_10065_1_12_1_17: return "Administrative (Error/Edit) Signature";
244            case OID_1_2_840_10065_1_12_1_18: return "Timestamp Signature";
245            default: return "?";
246          }
247    }
248
249
250}
251