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