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