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 Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0
033
034import org.hl7.fhir.exceptions.FHIRException;
035
036public enum V3ActUSPrivacyLaw {
037
038  /**
039   * Definition: A jurisdictional mandate in the U.S. relating to privacy.
040   * 
041   * 
042   * Usage Note: ActPrivacyLaw codes may be associated with an Act or a Role to
043   * indicate the legal provision to which the assignment of an
044   * Act.confidentialityCode or Role.confidentialtyCode complies. May be used to
045   * further specify rationale for assignment of other ActPrivacyPolicy codes in
046   * the US realm, e.g., ETH and 42CFRPart2 can be differentiated from ETH and
047   * Title38Part1.
048   */
049  _ACTUSPRIVACYLAW,
050  /**
051   * 42 CFR Part 2 stipulates the right of an individual who has applied for or
052   * been given diagnosis or treatment for alcohol or drug abuse at a federally
053   * assisted program.
054   * 
055   * 
056   * Definition: Non-disclosure of health information relating to health care paid
057   * for by a federally assisted substance abuse program without patient consent.
058   * 
059   * 
060   * Usage Note: May be associated with an Act or a Role to indicate the legal
061   * provision to which the assignment of an Act.confidentialityCode or
062   * Role.confidentialityCode complies.
063   */
064  _42CFRPART2,
065  /**
066   * U.S. Federal regulations governing the protection of human subjects in
067   * research (codified at Subpart A of 45 CFR part 46) that has been adopted by
068   * 15 U.S. Federal departments and agencies in an effort to promote uniformity,
069   * understanding, and compliance with human subject protections. Existing
070   * regulations governing the protection of human subjects in Food and Drug
071   * Administration (FDA)-regulated research (21 CFR parts 50, 56, 312, and 812)
072   * are separate from the Common Rule but include similar requirements.
073   * 
074   * 
075   * Definition: U.S. federal laws governing research-related privacy policies.
076   * 
077   * 
078   * Usage Note: May be associated with an Act or a Role to indicate the legal
079   * provision to which the assignment of an Act.confidentialityCode or
080   * Role.confidentialtyCode complies.
081   */
082  COMMONRULE,
083  /**
084   * The U.S. Public Law 104-191 Health Insurance Portability and Accountability
085   * Act (HIPAA) Privacy Rule (45 CFR Part 164 Subpart E) permits access, use and
086   * disclosure of certain personal health information (PHI as defined under the
087   * law) for purposes of Treatment, Payment, and Operations, and requires that
088   * the provider ask that patients acknowledge the Provider's Notice of Privacy
089   * Practices as permitted conduct under the law.
090   * 
091   * 
092   * Definition: Notification of HIPAA Privacy Practices.
093   * 
094   * 
095   * Usage Note: May be associated with an Act or a Role to indicate the legal
096   * provision to which the assignment of an Act.confidentialityCode or
097   * Role.confidentialtyCode complies.
098   */
099  HIPAANOPP,
100  /**
101   * The U.S. Public Law 104-191 Health Insurance Portability and Accountability
102   * Act (HIPAA) Privacy Rule (45 CFR Part 164 Section 164.508) requires
103   * authorization for certain uses and disclosure of psychotherapy notes.
104   * 
105   * 
106   * Definition: Authorization that must be obtained for disclosure of
107   * psychotherapy notes.
108   * 
109   * 
110   * Usage Note: May be associated with an Act or a Role to indicate the legal
111   * provision to which the assignment of an Act.confidentialityCode or
112   * Role.confidentialityCode complies.
113   */
114  HIPAAPSYNOTES,
115  /**
116   * Section 13405(a) of the Health Information Technology for Economic and
117   * Clinical Health Act (HITECH) stipulates the right of an individual to have
118   * disclosures regarding certain health care items or services for which the
119   * individual pays out of pocket in full restricted from a health plan.
120   * 
121   * 
122   * Definition: Non-disclosure of health information to a health plan relating to
123   * health care items or services for which an individual pays out of pocket in
124   * full.
125   * 
126   * 
127   * Usage Note: May be associated with an Act or a Role to indicate the legal
128   * provision to which the assignment of an Act.confidentialityCode or
129   * Role.confidentialityCode complies.
130   */
131  HIPAASELFPAY,
132  /**
133   * Title 38 Part 1-protected information may only be disclosed to a third party
134   * with the special written consent of the patient except where expressly
135   * authorized by 38 USC 7332. VA may disclose this information for specific
136   * purposes to: VA employees on a need to know basis - more restrictive than
137   * Privacy Act need to know; contractors who need the information in order to
138   * perform or fulfill the duties of the contract; and researchers who provide
139   * assurances that the information will not be identified in any report. This
140   * information may also be disclosed without consent where patient lacks
141   * decision-making capacity; in a medical emergency for the purpose of treating
142   * a condition which poses an immediate threat to the health of any individual
143   * and which requires immediate medical intervention; for eye, tissue, or organ
144   * donation purposes; and disclosure of HIV information for public health
145   * purposes.
146   * 
147   * 
148   * Definition: Title 38 Part 1 - §1.462 Confidentiality restrictions.
149   * 
150   * 
151   * (a) General. The patient records to which §§1.460 through 1.499 of this
152   * part apply may be disclosed or used only as permitted by these regulations
153   * and may not otherwise be disclosed or used in any civil, criminal,
154   * administrative, or legislative proceedings conducted by any Federal, State,
155   * or local authority. Any disclosure made under these regulations must be
156   * limited to that information which is necessary to carry out the purpose of
157   * the disclosure. SUBCHAPTER III--PROTECTION OF PATIENT RIGHTS Sec. 7332.
158   * Confidentiality of certain medical records (a)(1) Records of the identity,
159   * diagnosis, prognosis, or treatment of any patient or subject which are
160   * maintained in connection with the performance of any program or activity
161   * (including education, training, treatment, rehabilitation, or research)
162   * relating to drug abuse, alcoholism or alcohol abuse, infection with the human
163   * immunodeficiency virus, or sickle cell anemia which is carried out by or for
164   * the Department under this title shall, except as provided in subsections (e)
165   * and (f), be confidential, and (section 5701 of this title to the contrary
166   * notwithstanding) such records may be disclosed only for the purposes and
167   * under the circumstances expressly authorized under subsection (b).
168   * 
169   * 
170   * Usage Note: May be associated with an Act or a Role to indicate the legal
171   * provision to which the assignment of an Act.confidentialityCode or
172   * Role.confidentialityCode complies.
173   */
174  TITLE38SECTION7332,
175  /**
176   * added to help the parsers
177   */
178  NULL;
179
180  public static V3ActUSPrivacyLaw fromCode(String codeString) throws FHIRException {
181    if (codeString == null || "".equals(codeString))
182      return null;
183    if ("_ActUSPrivacyLaw".equals(codeString))
184      return _ACTUSPRIVACYLAW;
185    if ("42CFRPart2".equals(codeString))
186      return _42CFRPART2;
187    if ("CommonRule".equals(codeString))
188      return COMMONRULE;
189    if ("HIPAANOPP".equals(codeString))
190      return HIPAANOPP;
191    if ("HIPAAPsyNotes".equals(codeString))
192      return HIPAAPSYNOTES;
193    if ("HIPAASelfPay".equals(codeString))
194      return HIPAASELFPAY;
195    if ("Title38Section7332".equals(codeString))
196      return TITLE38SECTION7332;
197    throw new FHIRException("Unknown V3ActUSPrivacyLaw code '" + codeString + "'");
198  }
199
200  public String toCode() {
201    switch (this) {
202    case _ACTUSPRIVACYLAW:
203      return "_ActUSPrivacyLaw";
204    case _42CFRPART2:
205      return "42CFRPart2";
206    case COMMONRULE:
207      return "CommonRule";
208    case HIPAANOPP:
209      return "HIPAANOPP";
210    case HIPAAPSYNOTES:
211      return "HIPAAPsyNotes";
212    case HIPAASELFPAY:
213      return "HIPAASelfPay";
214    case TITLE38SECTION7332:
215      return "Title38Section7332";
216    case NULL:
217      return null;
218    default:
219      return "?";
220    }
221  }
222
223  public String getSystem() {
224    return "http://terminology.hl7.org/CodeSystem/v3-ActUSPrivacyLaw";
225  }
226
227  public String getDefinition() {
228    switch (this) {
229    case _ACTUSPRIVACYLAW:
230      return "Definition: A jurisdictional mandate in the U.S. relating to privacy.\r\n\n                        \n                           Usage Note: ActPrivacyLaw codes may be associated with an Act or a Role to indicate the legal provision to which the assignment of an Act.confidentialityCode or Role.confidentialtyCode complies.  May be used to further specify rationale for assignment of other ActPrivacyPolicy codes in the US realm, e.g., ETH and 42CFRPart2 can be differentiated from ETH and Title38Part1.";
231    case _42CFRPART2:
232      return "42 CFR Part 2 stipulates the right of an individual who has applied for or been given diagnosis or treatment for alcohol or drug abuse at a federally assisted program.\r\n\n                        \n                           Definition: Non-disclosure of health information relating to health care paid for by a federally assisted substance abuse program without patient consent.\r\n\n                        \n                           Usage Note: May be associated with an Act or a Role to indicate the legal provision to which the assignment of an Act.confidentialityCode or Role.confidentialityCode complies.";
233    case COMMONRULE:
234      return "U.S. Federal regulations governing the protection of human subjects in research (codified at Subpart A of 45 CFR part 46) that has been adopted by 15 U.S. Federal departments and agencies in an effort to promote uniformity, understanding, and compliance with human subject protections. Existing regulations governing the protection of human subjects in Food and Drug Administration (FDA)-regulated research (21 CFR parts 50, 56, 312, and 812) are separate from the Common Rule but include similar requirements.\r\n\n                        \n                           Definition: U.S. federal laws governing research-related privacy policies.\r\n\n                        \n                           Usage Note: May be associated with an Act or a Role to indicate the legal provision to which the assignment of an Act.confidentialityCode or Role.confidentialtyCode complies.";
235    case HIPAANOPP:
236      return "The U.S. Public Law 104-191 Health Insurance Portability and Accountability Act (HIPAA) Privacy Rule (45 CFR Part 164 Subpart E) permits access, use and disclosure of certain personal health information (PHI as defined under the law) for purposes of Treatment, Payment, and Operations, and requires that the provider ask that patients acknowledge the Provider's Notice of Privacy Practices as permitted conduct under the law.\r\n\n                        \n                           Definition: Notification of HIPAA Privacy Practices.\r\n\n                        \n                           Usage Note: May be associated with an Act or a Role to indicate the legal provision to which the assignment of an Act.confidentialityCode or Role.confidentialtyCode complies.";
237    case HIPAAPSYNOTES:
238      return "The U.S. Public Law 104-191 Health Insurance Portability and Accountability Act (HIPAA) Privacy Rule (45 CFR Part 164 Section 164.508) requires authorization for certain uses and disclosure of psychotherapy notes.\r\n\n                        \n                           Definition: Authorization that must be obtained for disclosure of psychotherapy notes.\r\n\n                        \n                           Usage Note: May be associated with an Act or a Role to indicate the legal provision to which the assignment of an Act.confidentialityCode or Role.confidentialityCode complies.";
239    case HIPAASELFPAY:
240      return "Section 13405(a) of the Health Information Technology for Economic and Clinical Health Act (HITECH) stipulates the right of an individual to have disclosures regarding certain health care items or services for which the individual pays out of pocket in full restricted from a health plan.\r\n\n                        \n                           Definition: Non-disclosure of health information to a health plan relating to health care items or services for which an individual pays out of pocket in full.\r\n\n                        \n                           Usage Note: May be associated with an Act or a Role to indicate the legal provision to which the assignment of an Act.confidentialityCode or Role.confidentialityCode complies.";
241    case TITLE38SECTION7332:
242      return "Title 38 Part 1-protected information may only be disclosed to a third party with the special written consent of the patient except where expressly authorized by 38 USC 7332. VA may disclose this information for specific purposes to: VA employees on a need to know basis - more restrictive than Privacy Act need to know; contractors who need the information in order to perform or fulfill the duties of the contract; and researchers who provide assurances that the information will not be identified in any report.  This information may also be disclosed without consent where patient lacks decision-making capacity; in a medical emergency for the purpose of treating a condition which poses an immediate threat to the health of any individual and which requires immediate medical intervention; for eye, tissue, or organ donation purposes; and disclosure of HIV information for public health purposes.\r\n\n                        \n                           Definition: Title 38 Part 1 - §1.462 Confidentiality restrictions.\r\n\n                        \n(a) General. The patient records to which §§1.460 through 1.499 of this part apply may be disclosed or used only as permitted by these regulations and may not otherwise be disclosed or used in any civil, criminal, administrative, or legislative proceedings conducted by any Federal, State, or local authority. Any disclosure made under these regulations must be limited to that information which is necessary to carry out the purpose of the disclosure. SUBCHAPTER III--PROTECTION OF PATIENT RIGHTS Sec. 7332. Confidentiality of certain medical records (a)(1) Records of the identity, diagnosis, prognosis, or treatment of any patient or subject which are maintained in connection with the performance of any program or activity (including education, training, treatment, rehabilitation, or research) relating to drug abuse, alcoholism or alcohol abuse, infection with the human immunodeficiency virus, or sickle cell anemia which is carried out by or for the Department under this title shall, except as provided in subsections (e) and (f), be confidential, and (section 5701 of this title to the contrary notwithstanding) such records may be disclosed only for the purposes and under the circumstances expressly authorized under subsection (b).\r\n\n                        \n                           Usage Note: May be associated with an Act or a Role to indicate the legal provision to which the assignment of an Act.confidentialityCode or Role.confidentialityCode complies.";
243    case NULL:
244      return null;
245    default:
246      return "?";
247    }
248  }
249
250  public String getDisplay() {
251    switch (this) {
252    case _ACTUSPRIVACYLAW:
253      return "ActUSPrivacyLaw";
254    case _42CFRPART2:
255      return "42 CFR Part2";
256    case COMMONRULE:
257      return "Common Rule";
258    case HIPAANOPP:
259      return "HIPAA notice of privacy practices";
260    case HIPAAPSYNOTES:
261      return "HIPAA psychotherapy notes";
262    case HIPAASELFPAY:
263      return "HIPAA self-pay";
264    case TITLE38SECTION7332:
265      return "Title 38 Section 7332";
266    case NULL:
267      return null;
268    default:
269      return "?";
270    }
271  }
272
273}