001package org.hl7.fhir.dstu3.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 Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0 036 037 038import org.hl7.fhir.exceptions.FHIRException; 039 040public enum V3Confidentiality { 041 042 /** 043 * A specializable code and its leaf codes used in Confidentiality value sets to value the Act.Confidentiality and Role.Confidentiality attribute in accordance with the definition for concept domain "Confidentiality". 044 */ 045 _CONFIDENTIALITY, 046 /** 047 * Definition: Privacy metadata indicating that the information has been de-identified, and there are mitigating circumstances that prevent re-identification, which minimize risk of harm from unauthorized disclosure. The information requires protection to maintain low sensitivity. 048 049 050 Examples: Includes anonymized, pseudonymized, or non-personally identifiable information such as HIPAA limited data sets. 051 052 053 Map: No clear map to ISO 13606-4 Sensitivity Level (1) Care Management: RECORD_COMPONENTs that might need to be accessed by a wide range of administrative staff to manage the subject of care's access to health services. 054 055 056 Usage Note: This metadata indicates the receiver may have an obligation to comply with a data use agreement. 057 */ 058 L, 059 /** 060 * Definition: Privacy metadata indicating moderately sensitive information, which presents moderate risk of harm if disclosed without authorization. 061 062 063 Examples: Includes allergies of non-sensitive nature used inform food service; health information a patient authorizes to be used for marketing, released to a bank for a health credit card or savings account; or information in personal health record systems that are not governed under health privacy laws. 064 065 066 Map: Partial Map to ISO 13606-4 Sensitivity Level (2) Clinical Management: Less sensitive RECORD_COMPONENTs that might need to be accessed by a wider range of personnel not all of whom are actively caring for the patient (e.g. radiology staff). 067 068 069 Usage Note: This metadata indicates that the receiver may be obligated to comply with the receiver's terms of use or privacy policies. 070 */ 071 M, 072 /** 073 * Definition: Privacy metadata indicating that the information is typical, non-stigmatizing health information, which presents typical risk of harm if disclosed without authorization. 074 075 076 Examples: In the US, this includes what HIPAA identifies as the minimum necessary protected health information (PHI) given a covered purpose of use (treatment, payment, or operations). Includes typical, non-stigmatizing health information disclosed in an application for health, workers compensation, disability, or life insurance. 077 078 079 Map: Partial Map to ISO 13606-4 Sensitivity Level (3) Clinical Care: Default for normal clinical care access (i.e. most clinical staff directly caring for the patient should be able to access nearly all of the EHR). Maps to normal confidentiality for treatment information but not to ancillary care, payment and operations. 080 081 082 Usage Note: This metadata indicates that the receiver may be obligated to comply with applicable jurisdictional privacy law or disclosure authorization. 083 */ 084 N, 085 /** 086 * Privacy metadata indicating highly sensitive, potentially stigmatizing information, which presents a high risk to the information subject if disclosed without authorization. May be pre-empted by jurisdictional law, e.g., for public health reporting or emergency treatment. 087 088 089 Examples: Includes information that is additionally protected such as sensitive conditions mental health, HIV, substance abuse, domestic violence, child abuse, genetic disease, and reproductive health; or sensitive demographic information such as a patient's standing as an employee or a celebrity. May be used to indicate proprietary or classified information that is not related to an individual, e.g., secret ingredients in a therapeutic substance; or the name of a manufacturer. 090 091 092 Map: Partial Map to ISO 13606-4 Sensitivity Level (3) Clinical Care: Default for normal clinical care access (i.e. most clinical staff directly caring for the patient should be able to access nearly all of the EHR). Maps to normal confidentiality for treatment information but not to ancillary care, payment and operations.. 093 094 095 Usage Note: This metadata indicates that the receiver may be obligated to comply with applicable, prevailing (default) jurisdictional privacy law or disclosure authorization.. 096 */ 097 R, 098 /** 099 * Definition: Privacy metadata indicating that the information is not classified as sensitive. 100 101 102 Examples: Includes publicly available information, e.g., business name, phone, email or physical address. 103 104 105 Usage Note: This metadata indicates that the receiver has no obligation to consider additional policies when making access control decisions. Note that in some jurisdictions, personally identifiable information must be protected as confidential, so it would not be appropriate to assign a confidentiality code of "unrestricted" to that information even if it is publicly available. 106 */ 107 U, 108 /** 109 * . Privacy metadata indicating that the information is extremely sensitive and likely stigmatizing health information that presents a very high risk if disclosed without authorization. This information must be kept in the highest confidence. 110 111 112 Examples: Includes information about a victim of abuse, patient requested information sensitivity, and taboo subjects relating to health status that must be discussed with the patient by an attending provider before sharing with the patient. May also include information held under â??legal lockâ?? or attorney-client privilege 113 114 115 Map: This metadata indicates that the receiver may not disclose this information except as directed by the information custodian, who may be the information subject. 116 117 118 Usage Note: This metadata indicates that the receiver may not disclose this information except as directed by the information custodian, who may be the information subject. 119 */ 120 V, 121 /** 122 * Description: By accessing subject / role and relationship based rights (These concepts are mutually exclusive, one and only one is required for a valid confidentiality coding.) 123 124 125 Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode 126 */ 127 _CONFIDENTIALITYBYACCESSKIND, 128 /** 129 * Description: Since the service class can represent knowledge structures that may be considered a trade or business secret, there is sometimes (though rarely) the need to flag those items as of business level confidentiality. However, no patient related information may ever be of this confidentiality level. 130 131 132 Deprecation Comment: Replced by ActCode.B 133 */ 134 B, 135 /** 136 * Description: Only clinicians may see this item, billing and administration persons can not access this item without special permission. 137 138 139 Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode 140 */ 141 D, 142 /** 143 * Description: Access only to individual persons who are mentioned explicitly as actors of this service and whose actor type warrants that access (cf. to actor type code). 144 145 146 Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode 147 */ 148 I, 149 /** 150 * Description: By information type, only for service catalog entries (multiples allowed). Not to be used with actual patient data! 151 152 153 Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode 154 */ 155 _CONFIDENTIALITYBYINFOTYPE, 156 /** 157 * Description: Alcohol/drug-abuse related item 158 159 160 Deprecation Comment:Replced by ActCode.ETH 161 */ 162 ETH, 163 /** 164 * Description: HIV and AIDS related item 165 166 167 Deprecation Comment:Replced by ActCode.HIV 168 */ 169 HIV, 170 /** 171 * Description: Psychiatry related item 172 173 174 Deprecation Comment:Replced by ActCode.PSY 175 */ 176 PSY, 177 /** 178 * Description: Sexual assault / domestic violence related item 179 180 181 Deprecation Comment:Replced by ActCode.SDV 182 */ 183 SDV, 184 /** 185 * Description: Modifiers of role based access rights (multiple allowed) 186 187 188 Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode 189 */ 190 _CONFIDENTIALITYMODIFIERS, 191 /** 192 * Description: Celebrities are people of public interest (VIP) including employees, whose information require special protection. 193 194 195 Deprecation Comment:Replced by ActCode.CEL 196 */ 197 C, 198 /** 199 * Description: 200 201Information for which the patient seeks heightened confidentiality. Sensitive information is not to be shared with family members. Information reported by the patient about family members is sensitive by default. Flag can be set or cleared on patient's request. 202 Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode 203 */ 204 S, 205 /** 206 * Description: Information not to be disclosed or discussed with patient except through physician assigned to patient in this case. This is usually a temporary constraint only, example use is a new fatal diagnosis or finding, such as malignancy or HIV. 207 208 209 Deprecation Note:Replced by ActCode.TBOO 210 */ 211 T, 212 /** 213 * added to help the parsers 214 */ 215 NULL; 216 public static V3Confidentiality fromCode(String codeString) throws FHIRException { 217 if (codeString == null || "".equals(codeString)) 218 return null; 219 if ("_Confidentiality".equals(codeString)) 220 return _CONFIDENTIALITY; 221 if ("L".equals(codeString)) 222 return L; 223 if ("M".equals(codeString)) 224 return M; 225 if ("N".equals(codeString)) 226 return N; 227 if ("R".equals(codeString)) 228 return R; 229 if ("U".equals(codeString)) 230 return U; 231 if ("V".equals(codeString)) 232 return V; 233 if ("_ConfidentialityByAccessKind".equals(codeString)) 234 return _CONFIDENTIALITYBYACCESSKIND; 235 if ("B".equals(codeString)) 236 return B; 237 if ("D".equals(codeString)) 238 return D; 239 if ("I".equals(codeString)) 240 return I; 241 if ("_ConfidentialityByInfoType".equals(codeString)) 242 return _CONFIDENTIALITYBYINFOTYPE; 243 if ("ETH".equals(codeString)) 244 return ETH; 245 if ("HIV".equals(codeString)) 246 return HIV; 247 if ("PSY".equals(codeString)) 248 return PSY; 249 if ("SDV".equals(codeString)) 250 return SDV; 251 if ("_ConfidentialityModifiers".equals(codeString)) 252 return _CONFIDENTIALITYMODIFIERS; 253 if ("C".equals(codeString)) 254 return C; 255 if ("S".equals(codeString)) 256 return S; 257 if ("T".equals(codeString)) 258 return T; 259 throw new FHIRException("Unknown V3Confidentiality code '"+codeString+"'"); 260 } 261 public String toCode() { 262 switch (this) { 263 case _CONFIDENTIALITY: return "_Confidentiality"; 264 case L: return "L"; 265 case M: return "M"; 266 case N: return "N"; 267 case R: return "R"; 268 case U: return "U"; 269 case V: return "V"; 270 case _CONFIDENTIALITYBYACCESSKIND: return "_ConfidentialityByAccessKind"; 271 case B: return "B"; 272 case D: return "D"; 273 case I: return "I"; 274 case _CONFIDENTIALITYBYINFOTYPE: return "_ConfidentialityByInfoType"; 275 case ETH: return "ETH"; 276 case HIV: return "HIV"; 277 case PSY: return "PSY"; 278 case SDV: return "SDV"; 279 case _CONFIDENTIALITYMODIFIERS: return "_ConfidentialityModifiers"; 280 case C: return "C"; 281 case S: return "S"; 282 case T: return "T"; 283 case NULL: return null; 284 default: return "?"; 285 } 286 } 287 public String getSystem() { 288 return "http://hl7.org/fhir/v3/Confidentiality"; 289 } 290 public String getDefinition() { 291 switch (this) { 292 case _CONFIDENTIALITY: return "A specializable code and its leaf codes used in Confidentiality value sets to value the Act.Confidentiality and Role.Confidentiality attribute in accordance with the definition for concept domain \"Confidentiality\"."; 293 case L: return "Definition: Privacy metadata indicating that the information has been de-identified, and there are mitigating circumstances that prevent re-identification, which minimize risk of harm from unauthorized disclosure. The information requires protection to maintain low sensitivity.\r\n\n \n Examples: Includes anonymized, pseudonymized, or non-personally identifiable information such as HIPAA limited data sets.\r\n\n \n Map: No clear map to ISO 13606-4 Sensitivity Level (1) Care Management: RECORD_COMPONENTs that might need to be accessed by a wide range of administrative staff to manage the subject of care's access to health services.\r\n\n \n Usage Note: This metadata indicates the receiver may have an obligation to comply with a data use agreement."; 294 case M: return "Definition: Privacy metadata indicating moderately sensitive information, which presents moderate risk of harm if disclosed without authorization.\r\n\n \n Examples: Includes allergies of non-sensitive nature used inform food service; health information a patient authorizes to be used for marketing, released to a bank for a health credit card or savings account; or information in personal health record systems that are not governed under health privacy laws.\r\n\n \n Map: Partial Map to ISO 13606-4 Sensitivity Level (2) Clinical Management: Less sensitive RECORD_COMPONENTs that might need to be accessed by a wider range of personnel not all of whom are actively caring for the patient (e.g. radiology staff).\r\n\n \n Usage Note: This metadata indicates that the receiver may be obligated to comply with the receiver's terms of use or privacy policies."; 295 case N: return "Definition: Privacy metadata indicating that the information is typical, non-stigmatizing health information, which presents typical risk of harm if disclosed without authorization.\r\n\n \n Examples: In the US, this includes what HIPAA identifies as the minimum necessary protected health information (PHI) given a covered purpose of use (treatment, payment, or operations). Includes typical, non-stigmatizing health information disclosed in an application for health, workers compensation, disability, or life insurance.\r\n\n \n Map: Partial Map to ISO 13606-4 Sensitivity Level (3) Clinical Care: Default for normal clinical care access (i.e. most clinical staff directly caring for the patient should be able to access nearly all of the EHR). Maps to normal confidentiality for treatment information but not to ancillary care, payment and operations.\r\n\n \n Usage Note: This metadata indicates that the receiver may be obligated to comply with applicable jurisdictional privacy law or disclosure authorization."; 296 case R: return "Privacy metadata indicating highly sensitive, potentially stigmatizing information, which presents a high risk to the information subject if disclosed without authorization. May be pre-empted by jurisdictional law, e.g., for public health reporting or emergency treatment.\r\n\n \n Examples: Includes information that is additionally protected such as sensitive conditions mental health, HIV, substance abuse, domestic violence, child abuse, genetic disease, and reproductive health; or sensitive demographic information such as a patient's standing as an employee or a celebrity. May be used to indicate proprietary or classified information that is not related to an individual, e.g., secret ingredients in a therapeutic substance; or the name of a manufacturer.\r\n\n \n Map: Partial Map to ISO 13606-4 Sensitivity Level (3) Clinical Care: Default for normal clinical care access (i.e. most clinical staff directly caring for the patient should be able to access nearly all of the EHR). Maps to normal confidentiality for treatment information but not to ancillary care, payment and operations..\r\n\n \n Usage Note: This metadata indicates that the receiver may be obligated to comply with applicable, prevailing (default) jurisdictional privacy law or disclosure authorization.."; 297 case U: return "Definition: Privacy metadata indicating that the information is not classified as sensitive.\r\n\n \n Examples: Includes publicly available information, e.g., business name, phone, email or physical address.\r\n\n \n Usage Note: This metadata indicates that the receiver has no obligation to consider additional policies when making access control decisions. Note that in some jurisdictions, personally identifiable information must be protected as confidential, so it would not be appropriate to assign a confidentiality code of \"unrestricted\" to that information even if it is publicly available."; 298 case V: return ". Privacy metadata indicating that the information is extremely sensitive and likely stigmatizing health information that presents a very high risk if disclosed without authorization. This information must be kept in the highest confidence. \r\n\n \n Examples: Includes information about a victim of abuse, patient requested information sensitivity, and taboo subjects relating to health status that must be discussed with the patient by an attending provider before sharing with the patient. May also include information held under â??legal lockâ?? or attorney-client privilege\r\n\n \n Map: This metadata indicates that the receiver may not disclose this information except as directed by the information custodian, who may be the information subject.\r\n\n \n Usage Note: This metadata indicates that the receiver may not disclose this information except as directed by the information custodian, who may be the information subject."; 299 case _CONFIDENTIALITYBYACCESSKIND: return "Description: By accessing subject / role and relationship based rights (These concepts are mutually exclusive, one and only one is required for a valid confidentiality coding.)\r\n\n \n Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode"; 300 case B: return "Description: Since the service class can represent knowledge structures that may be considered a trade or business secret, there is sometimes (though rarely) the need to flag those items as of business level confidentiality. However, no patient related information may ever be of this confidentiality level.\r\n\n \n Deprecation Comment: Replced by ActCode.B"; 301 case D: return "Description: Only clinicians may see this item, billing and administration persons can not access this item without special permission.\r\n\n \n Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode"; 302 case I: return "Description: Access only to individual persons who are mentioned explicitly as actors of this service and whose actor type warrants that access (cf. to actor type code).\r\n\n \n Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode"; 303 case _CONFIDENTIALITYBYINFOTYPE: return "Description: By information type, only for service catalog entries (multiples allowed). Not to be used with actual patient data!\r\n\n \n Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode"; 304 case ETH: return "Description: Alcohol/drug-abuse related item\r\n\n \n Deprecation Comment:Replced by ActCode.ETH"; 305 case HIV: return "Description: HIV and AIDS related item\r\n\n \n Deprecation Comment:Replced by ActCode.HIV"; 306 case PSY: return "Description: Psychiatry related item\r\n\n \n Deprecation Comment:Replced by ActCode.PSY"; 307 case SDV: return "Description: Sexual assault / domestic violence related item\r\n\n \n Deprecation Comment:Replced by ActCode.SDV"; 308 case _CONFIDENTIALITYMODIFIERS: return "Description: Modifiers of role based access rights (multiple allowed)\r\n\n \n Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode"; 309 case C: return "Description: Celebrities are people of public interest (VIP) including employees, whose information require special protection.\r\n\n \n Deprecation Comment:Replced by ActCode.CEL"; 310 case S: return "Description: \n \r\nInformation for which the patient seeks heightened confidentiality. Sensitive information is not to be shared with family members. Information reported by the patient about family members is sensitive by default. Flag can be set or cleared on patient's request.\n Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode"; 311 case T: return "Description: Information not to be disclosed or discussed with patient except through physician assigned to patient in this case. This is usually a temporary constraint only, example use is a new fatal diagnosis or finding, such as malignancy or HIV.\r\n\n \n Deprecation Note:Replced by ActCode.TBOO"; 312 case NULL: return null; 313 default: return "?"; 314 } 315 } 316 public String getDisplay() { 317 switch (this) { 318 case _CONFIDENTIALITY: return "Confidentiality"; 319 case L: return "low"; 320 case M: return "moderate"; 321 case N: return "normal"; 322 case R: return "restricted"; 323 case U: return "unrestricted"; 324 case V: return "very restricted"; 325 case _CONFIDENTIALITYBYACCESSKIND: return "ConfidentialityByAccessKind"; 326 case B: return "business"; 327 case D: return "clinician"; 328 case I: return "individual"; 329 case _CONFIDENTIALITYBYINFOTYPE: return "ConfidentialityByInfoType"; 330 case ETH: return "substance abuse related"; 331 case HIV: return "HIV related"; 332 case PSY: return "psychiatry relate"; 333 case SDV: return "sexual and domestic violence related"; 334 case _CONFIDENTIALITYMODIFIERS: return "ConfidentialityModifiers"; 335 case C: return "celebrity"; 336 case S: return "sensitive"; 337 case T: return "taboo"; 338 case NULL: return null; 339 default: return "?"; 340 } 341 } 342 343 344}