001package org.hl7.fhir.r4.model.codesystems; 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 Sun, May 6, 2018 17:51-0400 for FHIR v3.4.0 033 034 035import org.hl7.fhir.exceptions.FHIRException; 036 037public enum V3Confidentiality { 038 039 /** 040 * 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". 041 */ 042 _CONFIDENTIALITY, 043 /** 044 * 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. 045 046 047 Examples: Includes anonymized, pseudonymized, or non-personally identifiable information such as HIPAA limited data sets. 048 049 050 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. 051 052 053 Usage Note: This metadata indicates the receiver may have an obligation to comply with a data use agreement. 054 */ 055 L, 056 /** 057 * Definition: Privacy metadata indicating moderately sensitive information, which presents moderate risk of harm if disclosed without authorization. 058 059 060 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. 061 062 063 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). 064 065 066 Usage Note: This metadata indicates that the receiver may be obligated to comply with the receiver's terms of use or privacy policies. 067 */ 068 M, 069 /** 070 * Definition: Privacy metadata indicating that the information is typical, non-stigmatizing health information, which presents typical risk of harm if disclosed without authorization. 071 072 073 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. 074 075 076 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. 077 078 079 Usage Note: This metadata indicates that the receiver may be obligated to comply with applicable jurisdictional privacy law or disclosure authorization. 080 */ 081 N, 082 /** 083 * 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. 084 085 086 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. 087 088 089 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.. 090 091 092 Usage Note: This metadata indicates that the receiver may be obligated to comply with applicable, prevailing (default) jurisdictional privacy law or disclosure authorization.. 093 */ 094 R, 095 /** 096 * Definition: Privacy metadata indicating that the information is not classified as sensitive. 097 098 099 Examples: Includes publicly available information, e.g., business name, phone, email or physical address. 100 101 102 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. 103 */ 104 U, 105 /** 106 * . 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. 107 108 109 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 110 111 112 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. 113 114 115 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. 116 */ 117 V, 118 /** 119 * 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.) 120 121 122 Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode 123 */ 124 _CONFIDENTIALITYBYACCESSKIND, 125 /** 126 * 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. 127 128 129 Deprecation Comment: Replced by ActCode.B 130 */ 131 B, 132 /** 133 * Description: Only clinicians may see this item, billing and administration persons can not access this item without special permission. 134 135 136 Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode 137 */ 138 D, 139 /** 140 * 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). 141 142 143 Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode 144 */ 145 I, 146 /** 147 * Description: By information type, only for service catalog entries (multiples allowed). Not to be used with actual patient data! 148 149 150 Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode 151 */ 152 _CONFIDENTIALITYBYINFOTYPE, 153 /** 154 * Description: Alcohol/drug-abuse related item 155 156 157 Deprecation Comment:Replced by ActCode.ETH 158 */ 159 ETH, 160 /** 161 * Description: HIV and AIDS related item 162 163 164 Deprecation Comment:Replced by ActCode.HIV 165 */ 166 HIV, 167 /** 168 * Description: Psychiatry related item 169 170 171 Deprecation Comment:Replced by ActCode.PSY 172 */ 173 PSY, 174 /** 175 * Description: Sexual assault / domestic violence related item 176 177 178 Deprecation Comment:Replced by ActCode.SDV 179 */ 180 SDV, 181 /** 182 * Description: Modifiers of role based access rights (multiple allowed) 183 184 185 Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode 186 */ 187 _CONFIDENTIALITYMODIFIERS, 188 /** 189 * Description: Celebrities are people of public interest (VIP) including employees, whose information require special protection. 190 191 192 Deprecation Comment:Replced by ActCode.CEL 193 */ 194 C, 195 /** 196 * Description: 197 198Information 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. 199 Deprecation Comment:Deprecated due to updated confidentiality codes under ActCode 200 */ 201 S, 202 /** 203 * 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. 204 205 206 Deprecation Note:Replced by ActCode.TBOO 207 */ 208 T, 209 /** 210 * added to help the parsers 211 */ 212 NULL; 213 public static V3Confidentiality fromCode(String codeString) throws FHIRException { 214 if (codeString == null || "".equals(codeString)) 215 return null; 216 if ("_Confidentiality".equals(codeString)) 217 return _CONFIDENTIALITY; 218 if ("L".equals(codeString)) 219 return L; 220 if ("M".equals(codeString)) 221 return M; 222 if ("N".equals(codeString)) 223 return N; 224 if ("R".equals(codeString)) 225 return R; 226 if ("U".equals(codeString)) 227 return U; 228 if ("V".equals(codeString)) 229 return V; 230 if ("_ConfidentialityByAccessKind".equals(codeString)) 231 return _CONFIDENTIALITYBYACCESSKIND; 232 if ("B".equals(codeString)) 233 return B; 234 if ("D".equals(codeString)) 235 return D; 236 if ("I".equals(codeString)) 237 return I; 238 if ("_ConfidentialityByInfoType".equals(codeString)) 239 return _CONFIDENTIALITYBYINFOTYPE; 240 if ("ETH".equals(codeString)) 241 return ETH; 242 if ("HIV".equals(codeString)) 243 return HIV; 244 if ("PSY".equals(codeString)) 245 return PSY; 246 if ("SDV".equals(codeString)) 247 return SDV; 248 if ("_ConfidentialityModifiers".equals(codeString)) 249 return _CONFIDENTIALITYMODIFIERS; 250 if ("C".equals(codeString)) 251 return C; 252 if ("S".equals(codeString)) 253 return S; 254 if ("T".equals(codeString)) 255 return T; 256 throw new FHIRException("Unknown V3Confidentiality code '"+codeString+"'"); 257 } 258 public String toCode() { 259 switch (this) { 260 case _CONFIDENTIALITY: return "_Confidentiality"; 261 case L: return "L"; 262 case M: return "M"; 263 case N: return "N"; 264 case R: return "R"; 265 case U: return "U"; 266 case V: return "V"; 267 case _CONFIDENTIALITYBYACCESSKIND: return "_ConfidentialityByAccessKind"; 268 case B: return "B"; 269 case D: return "D"; 270 case I: return "I"; 271 case _CONFIDENTIALITYBYINFOTYPE: return "_ConfidentialityByInfoType"; 272 case ETH: return "ETH"; 273 case HIV: return "HIV"; 274 case PSY: return "PSY"; 275 case SDV: return "SDV"; 276 case _CONFIDENTIALITYMODIFIERS: return "_ConfidentialityModifiers"; 277 case C: return "C"; 278 case S: return "S"; 279 case T: return "T"; 280 default: return "?"; 281 } 282 } 283 public String getSystem() { 284 return "http://hl7.org/fhir/v3/Confidentiality"; 285 } 286 public String getDefinition() { 287 switch (this) { 288 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\"."; 289 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."; 290 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."; 291 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."; 292 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.."; 293 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."; 294 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."; 295 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"; 296 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"; 297 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"; 298 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"; 299 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"; 300 case ETH: return "Description: Alcohol/drug-abuse related item\r\n\n \n Deprecation Comment:Replced by ActCode.ETH"; 301 case HIV: return "Description: HIV and AIDS related item\r\n\n \n Deprecation Comment:Replced by ActCode.HIV"; 302 case PSY: return "Description: Psychiatry related item\r\n\n \n Deprecation Comment:Replced by ActCode.PSY"; 303 case SDV: return "Description: Sexual assault / domestic violence related item\r\n\n \n Deprecation Comment:Replced by ActCode.SDV"; 304 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"; 305 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"; 306 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"; 307 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"; 308 default: return "?"; 309 } 310 } 311 public String getDisplay() { 312 switch (this) { 313 case _CONFIDENTIALITY: return "Confidentiality"; 314 case L: return "low"; 315 case M: return "moderate"; 316 case N: return "normal"; 317 case R: return "restricted"; 318 case U: return "unrestricted"; 319 case V: return "very restricted"; 320 case _CONFIDENTIALITYBYACCESSKIND: return "ConfidentialityByAccessKind"; 321 case B: return "business"; 322 case D: return "clinician"; 323 case I: return "individual"; 324 case _CONFIDENTIALITYBYINFOTYPE: return "ConfidentialityByInfoType"; 325 case ETH: return "substance abuse related"; 326 case HIV: return "HIV related"; 327 case PSY: return "psychiatry relate"; 328 case SDV: return "sexual and domestic violence related"; 329 case _CONFIDENTIALITYMODIFIERS: return "ConfidentialityModifiers"; 330 case C: return "celebrity"; 331 case S: return "sensitive"; 332 case T: return "taboo"; 333 default: return "?"; 334 } 335 } 336 337 338} 339