001package org.hl7.fhir.r4.model.codesystems; 002 003 004 005 006/* 007 Copyright (c) 2011+, HL7, Inc. 008 All rights reserved. 009 010 Redistribution and use in source and binary forms, with or without modification, 011 are permitted provided that the following conditions are met: 012 013 * Redistributions of source code must retain the above copyright notice, this 014 list of conditions and the following disclaimer. 015 * Redistributions in binary form must reproduce the above copyright notice, 016 this list of conditions and the following disclaimer in the documentation 017 and/or other materials provided with the distribution. 018 * Neither the name of HL7 nor the names of its contributors may be used to 019 endorse or promote products derived from this software without specific 020 prior written permission. 021 022 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 023 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 024 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 025 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 026 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 027 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 028 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 029 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 030 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 031 POSSIBILITY OF SUCH DAMAGE. 032 033*/ 034 035// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0 036 037 038import org.hl7.fhir.exceptions.FHIRException; 039 040public enum SignatureType { 041 042 /** 043 * 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. 044 */ 045 OID_1_2_840_10065_1_12_1_1, 046 /** 047 * the signature of a health information document coauthor. There can be multiple coauthors of a health information document. 048 */ 049 OID_1_2_840_10065_1_12_1_2, 050 /** 051 * 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.) 052 */ 053 OID_1_2_840_10065_1_12_1_3, 054 /** 055 * the signature of an individual who has transcribed a dictated document or recorded written text into a digital machine readable format. 056 */ 057 OID_1_2_840_10065_1_12_1_4, 058 /** 059 * 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.) 060 */ 061 OID_1_2_840_10065_1_12_1_5, 062 /** 063 * 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.) 064 */ 065 OID_1_2_840_10065_1_12_1_6, 066 /** 067 * the signature of an individual consenting to what is described in a health information document. 068 */ 069 OID_1_2_840_10065_1_12_1_7, 070 /** 071 * the signature of a witness to any other signature. 072 */ 073 OID_1_2_840_10065_1_12_1_8, 074 /** 075 * the signature of a witness to an event. (Example the witness has observed a procedure and is attesting to this fact.) 076 */ 077 OID_1_2_840_10065_1_12_1_9, 078 /** 079 * 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.) 080 */ 081 OID_1_2_840_10065_1_12_1_10, 082 /** 083 * the signature of an individual who has witnessed the health care provider counselling a patient. 084 */ 085 OID_1_2_840_10065_1_12_1_11, 086 /** 087 * the signature of an individual who has translated health care information during an event or the obtaining of consent to a treatment. 088 */ 089 OID_1_2_840_10065_1_12_1_12, 090 /** 091 * 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.) 092 */ 093 OID_1_2_840_10065_1_12_1_13, 094 /** 095 * 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.) 096 */ 097 OID_1_2_840_10065_1_12_1_14, 098 /** 099 * 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. 100 */ 101 OID_1_2_840_10065_1_12_1_15, 102 /** 103 * 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. 104 */ 105 OID_1_2_840_10065_1_12_1_16, 106 /** 107 * 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. 108 */ 109 OID_1_2_840_10065_1_12_1_17, 110 /** 111 * the signature by an entity or device trusted to provide accurate timestamps. This timestamp might be provided, for example, in the signature time attribute. 112 */ 113 OID_1_2_840_10065_1_12_1_18, 114 /** 115 * added to help the parsers 116 */ 117 NULL; 118 public static SignatureType fromCode(String codeString) throws FHIRException { 119 if (codeString == null || "".equals(codeString)) 120 return null; 121 if ("1.2.840.10065.1.12.1.1".equals(codeString)) 122 return OID_1_2_840_10065_1_12_1_1; 123 if ("1.2.840.10065.1.12.1.2".equals(codeString)) 124 return OID_1_2_840_10065_1_12_1_2; 125 if ("1.2.840.10065.1.12.1.3".equals(codeString)) 126 return OID_1_2_840_10065_1_12_1_3; 127 if ("1.2.840.10065.1.12.1.4".equals(codeString)) 128 return OID_1_2_840_10065_1_12_1_4; 129 if ("1.2.840.10065.1.12.1.5".equals(codeString)) 130 return OID_1_2_840_10065_1_12_1_5; 131 if ("1.2.840.10065.1.12.1.6".equals(codeString)) 132 return OID_1_2_840_10065_1_12_1_6; 133 if ("1.2.840.10065.1.12.1.7".equals(codeString)) 134 return OID_1_2_840_10065_1_12_1_7; 135 if ("1.2.840.10065.1.12.1.8".equals(codeString)) 136 return OID_1_2_840_10065_1_12_1_8; 137 if ("1.2.840.10065.1.12.1.9".equals(codeString)) 138 return OID_1_2_840_10065_1_12_1_9; 139 if ("1.2.840.10065.1.12.1.10".equals(codeString)) 140 return OID_1_2_840_10065_1_12_1_10; 141 if ("1.2.840.10065.1.12.1.11".equals(codeString)) 142 return OID_1_2_840_10065_1_12_1_11; 143 if ("1.2.840.10065.1.12.1.12".equals(codeString)) 144 return OID_1_2_840_10065_1_12_1_12; 145 if ("1.2.840.10065.1.12.1.13".equals(codeString)) 146 return OID_1_2_840_10065_1_12_1_13; 147 if ("1.2.840.10065.1.12.1.14".equals(codeString)) 148 return OID_1_2_840_10065_1_12_1_14; 149 if ("1.2.840.10065.1.12.1.15".equals(codeString)) 150 return OID_1_2_840_10065_1_12_1_15; 151 if ("1.2.840.10065.1.12.1.16".equals(codeString)) 152 return OID_1_2_840_10065_1_12_1_16; 153 if ("1.2.840.10065.1.12.1.17".equals(codeString)) 154 return OID_1_2_840_10065_1_12_1_17; 155 if ("1.2.840.10065.1.12.1.18".equals(codeString)) 156 return OID_1_2_840_10065_1_12_1_18; 157 throw new FHIRException("Unknown SignatureType code '"+codeString+"'"); 158 } 159 public String toCode() { 160 switch (this) { 161 case OID_1_2_840_10065_1_12_1_1: return "1.2.840.10065.1.12.1.1"; 162 case OID_1_2_840_10065_1_12_1_2: return "1.2.840.10065.1.12.1.2"; 163 case OID_1_2_840_10065_1_12_1_3: return "1.2.840.10065.1.12.1.3"; 164 case OID_1_2_840_10065_1_12_1_4: return "1.2.840.10065.1.12.1.4"; 165 case OID_1_2_840_10065_1_12_1_5: return "1.2.840.10065.1.12.1.5"; 166 case OID_1_2_840_10065_1_12_1_6: return "1.2.840.10065.1.12.1.6"; 167 case OID_1_2_840_10065_1_12_1_7: return "1.2.840.10065.1.12.1.7"; 168 case OID_1_2_840_10065_1_12_1_8: return "1.2.840.10065.1.12.1.8"; 169 case OID_1_2_840_10065_1_12_1_9: return "1.2.840.10065.1.12.1.9"; 170 case OID_1_2_840_10065_1_12_1_10: return "1.2.840.10065.1.12.1.10"; 171 case OID_1_2_840_10065_1_12_1_11: return "1.2.840.10065.1.12.1.11"; 172 case OID_1_2_840_10065_1_12_1_12: return "1.2.840.10065.1.12.1.12"; 173 case OID_1_2_840_10065_1_12_1_13: return "1.2.840.10065.1.12.1.13"; 174 case OID_1_2_840_10065_1_12_1_14: return "1.2.840.10065.1.12.1.14"; 175 case OID_1_2_840_10065_1_12_1_15: return "1.2.840.10065.1.12.1.15"; 176 case OID_1_2_840_10065_1_12_1_16: return "1.2.840.10065.1.12.1.16"; 177 case OID_1_2_840_10065_1_12_1_17: return "1.2.840.10065.1.12.1.17"; 178 case OID_1_2_840_10065_1_12_1_18: return "1.2.840.10065.1.12.1.18"; 179 default: return "?"; 180 } 181 } 182 public String getSystem() { 183 return "urn:iso-astm:E1762-95:2013"; 184 } 185 public String getDefinition() { 186 switch (this) { 187 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."; 188 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."; 189 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.)"; 190 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."; 191 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.)"; 192 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.)"; 193 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."; 194 case OID_1_2_840_10065_1_12_1_8: return "the signature of a witness to any other signature."; 195 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.)"; 196 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.)"; 197 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."; 198 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."; 199 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.)"; 200 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.)"; 201 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."; 202 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."; 203 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."; 204 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."; 205 default: return "?"; 206 } 207 } 208 public String getDisplay() { 209 switch (this) { 210 case OID_1_2_840_10065_1_12_1_1: return "Author's Signature"; 211 case OID_1_2_840_10065_1_12_1_2: return "Coauthor's Signature"; 212 case OID_1_2_840_10065_1_12_1_3: return "Co-participant's Signature"; 213 case OID_1_2_840_10065_1_12_1_4: return "Transcriptionist/Recorder Signature"; 214 case OID_1_2_840_10065_1_12_1_5: return "Verification Signature"; 215 case OID_1_2_840_10065_1_12_1_6: return "Validation Signature"; 216 case OID_1_2_840_10065_1_12_1_7: return "Consent Signature"; 217 case OID_1_2_840_10065_1_12_1_8: return "Signature Witness Signature"; 218 case OID_1_2_840_10065_1_12_1_9: return "Event Witness Signature"; 219 case OID_1_2_840_10065_1_12_1_10: return "Identity Witness Signature"; 220 case OID_1_2_840_10065_1_12_1_11: return "Consent Witness Signature"; 221 case OID_1_2_840_10065_1_12_1_12: return "Interpreter Signature"; 222 case OID_1_2_840_10065_1_12_1_13: return "Review Signature"; 223 case OID_1_2_840_10065_1_12_1_14: return "Source Signature"; 224 case OID_1_2_840_10065_1_12_1_15: return "Addendum Signature"; 225 case OID_1_2_840_10065_1_12_1_16: return "Modification Signature"; 226 case OID_1_2_840_10065_1_12_1_17: return "Administrative (Error/Edit) Signature"; 227 case OID_1_2_840_10065_1_12_1_18: return "Timestamp Signature"; 228 default: return "?"; 229 } 230 } 231 232 233}