001package org.hl7.fhir.r4.model.codesystems;
002
003/*-
004 * #%L
005 * org.hl7.fhir.r4
006 * %%
007 * Copyright (C) 2014 - 2019 Health Level 7
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023
024/*
025  Copyright (c) 2011+, HL7, Inc.
026  All rights reserved.
027  
028  Redistribution and use in source and binary forms, with or without modification, 
029  are permitted provided that the following conditions are met:
030  
031   * Redistributions of source code must retain the above copyright notice, this 
032     list of conditions and the following disclaimer.
033   * Redistributions in binary form must reproduce the above copyright notice, 
034     this list of conditions and the following disclaimer in the documentation 
035     and/or other materials provided with the distribution.
036   * Neither the name of HL7 nor the names of its contributors may be used to 
037     endorse or promote products derived from this software without specific 
038     prior written permission.
039  
040  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
041  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
042  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
043  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
044  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
045  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
046  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
047  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
048  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
049  POSSIBILITY OF SUCH DAMAGE.
050  
051*/
052
053// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0
054
055
056import org.hl7.fhir.exceptions.FHIRException;
057
058public enum ContractSignerType {
059
060        /**
061         * A person who has corrected, edited, or amended pre-existing information.
062         */
063        AMENDER, 
064        /**
065         * A person in the role of verifier who attests to the accuracy of an act, but who does not have privileges to legally authenticate information content. An example would be a resident physician who sees a patient and dictates a note, then later signs it. The resident's signature constitutes an authentication.
066         */
067        AUTHN, 
068        /**
069         * An entity that authored specific content. There can be multiple authors of content, which may take such forms as a contract, a healthcare record entry or document, a policy, or a consent directive.
070         */
071        AUT, 
072        /**
073         * An entity that has a business or professional relationship with another entity in accordance with an agreement.
074         */
075        AFFL, 
076        /**
077         * An entity that acts or is authorized to act on behalf of another entity in accordance with an agreement.
078         */
079        AGNT, 
080        /**
081         * An agent role in which the agent is an Entity acting in the employ of an organization. The focus is on functional role on behalf of the organization, unlike the Employee role where the focus is on the 'Human Resources' relationship between the employee and the organization.
082         */
083        ASSIGNED, 
084        /**
085         * The member of a jurisdiction afforded certain rights and encumbered with certain obligation in accordance with jurisdictional policy.
086         */
087        CIT, 
088        /**
089         * A party that makes a claim for coverage under a policy.
090         */
091        CLAIMANT, 
092        /**
093         * The entity that co-authored content. There can be multiple co-authors of content, which may take such forms as a contract, a healthcare record entry or document, a policy, or a consent directive.
094         */
095        COAUTH, 
096        /**
097         * A patient or patient representative who is the grantee in a healthcare related agreement such as a consent for healthcare services, advanced directive, or a privacy consent directive in accordance with jurisdictional, organizational, or patient policy.
098         */
099        CONSENTER, 
100        /**
101         * A person who has witnessed and attests to observing a patient being counseled about a healthcare related agreement such as a consent for healthcare services, advanced directive, or a privacy consent directive.
102         */
103        CONSWIT, 
104        /**
105         * A person or an organization that provides or receives information regarding another entity. Examples; patient NOK and emergency contacts; guarantor contact; employer contact.
106         */
107        CONT, 
108        /**
109         * A person who participates in the generation of and attest to veracity of content but is not an author or co-author. For example, a surgeon who is required by institutional, regulatory, or legal rules to sign an operative report, but who was not involved in the authorship of that report.
110         */
111        COPART, 
112        /**
113         * An entity, which is the insured, that receives benefits such as healthcare services, reimbursement for out-of-pocket expenses, or compensation for losses through coverage under the terms of an insurance policy. The underwriter of that policy is the scoping entity. The covered party receives coverage because of some contractual or other relationship with the holder of that policy. Note that a particular policy may cover several individuals one of whom may be, but need not be, the policy holder. Thus the notion of covered party is a role that is distinct from that of the policy holder.
114         */
115        COVPTY, 
116        /**
117         * A party to whom some right or authority is delegated by a delegator.
118         */
119        DELEGATEE, 
120        /**
121         * A party that delegates a right or authority to another party.
122         */
123        DELEGATOR, 
124        /**
125         * A person covered under an insurance policy or program based on an association with a subscriber, which is recognized by the policy holder. The dependent has an association with the subscriber such as a financial dependency or personal relationship such as that of a spouse, or a natural or adopted child. The policy holder may be required by law to recognize certain associations or may have discretion about the associations. For example, a policy holder may dictate the criteria for the dependent status of adult children who are students, such as requiring full time enrollment, or may recognize domestic partners as dependents. Under certain circumstances, the dependent may be under the indirect authority of a responsible party acting as a surrogate for the subscriber, for example, if the subscriber is differently-abled or deceased, a guardian ad lidem or estate executor may be appointed to assume the subscriber's legal standing in the relationship with the dependent.
126         */
127        DEPEND, 
128        /**
129         * A person who has been granted the authority to represent or act on another's behalf generally in a manner which is a legally binding upon the person giving such authority as if he or she personally were to do the acts. Unlike ordinary powers of attorney, durable powers can survive for long periods of time, and again, unlike standard powers of attorney, durable powers can continue after incompetency.
130         */
131        DPOWATT, 
132        /**
133         * An entity to be contacted in the event of an emergency
134         */
135        EMGCON, 
136        /**
137         * A person who attests to observing an occurrence.  For example, the witness has observed a procedure and is attesting to this fact.
138         */
139        EVTWIT, 
140        /**
141         * A person who has been granted the authority to act as an estate executor for a deceased person who was the responsible party.
142         */
143        EXCEST, 
144        /**
145         * A person who grants to another person the authority to represent or act on that person's behalf.  Examples include (1) exercising specific rights belonging to the grantee; (2) performing specific duties on behalf of a grantee; and (3) making specific decisions concerning a grantee.
146         */
147        GRANTEE, 
148        /**
149         * A person who has been granted the authority to represent or act on another's behalf. Examples include (1) exercising specific rights belonging to the grantee; (2) performing specific duties on behalf of a grantee; and (3) making specific decisions concerning a grantee.
150         */
151        GRANTOR, 
152        /**
153         * A person or organization contractually recognized by the issuer as an entity that has assumed fiscal responsibility (e.g., by making or giving a promise, assurance, or pledge) for another entity's financial obligations by guaranteeing to pay for amounts owed to a particular account.  In a healthcare context, the account may be a patient's billing account for services rendered by a provider or a health plan premium account.
154         */
155        GUAR, 
156        /**
157         * A person or organization legally empowered with responsibility for the care of a ward.
158         */
159        GUARD, 
160        /**
161         * A person appointed by the court to look out for the best interests of a minor child during the course of legal proceedings.
162         */
163        GUADLTM, 
164        /**
165         * An entity that is the source of reported information (e.g., a next of kin who answers questions about the patient's history). For history questions, the patient is logically an informant, yet the informant of history questions is implicitly the subject.
166         */
167        INF, 
168        /**
169         * A person who converts spoken or written language into the language of key participants in an event such as when a provider is obtaining a patient's consent to treatment or permission to disclose information.
170         */
171        INTPRT, 
172        /**
173         * An entity that is the subject of an investigation. This role is scoped by the party responsible for the investigation.
174         */
175        INSBJ, 
176        /**
177         * A person who has been granted the authority to represent or act on another's behalf for healthcare related matters in a manner which is a legally binding upon the person giving such authority as if he or she personally were to do the acts. Examples include (1) exercising specific healthcare legal rights belonging to the grantee such as signing a consent directive; (2) performing specific healthcare related legal duties on behalf of a grantee such as claims payment; and (3) making specific healthcare legal decisions concerning a grantee such as consenting to healthcare services.
178         */
179        HPOWATT, 
180        /**
181         * An entity that is authorized to provide health care services by an authorizing organization or jurisdiction.
182         */
183        HPROV, 
184        /**
185         * A person in the role of verifier who attests to the accuracy of information content, and who has privileges to certify the legal authenticity of that content with a signature that constitutes a legal authentication.  For example, a licensed physician who signs a consult authored by a resident physician who authenticated it.
186         */
187        LEGAUTHN, 
188        /**
189         * A party to an insurance policy under which the insurer agrees to indemnify for losses, provides benefits for, or renders services. A named insured may be either a person, non-person living subject, or an organization, or a group of persons, non-person living subject that is the named insured under a comprehensive automobile, disability, or property and casualty policy.  The named insured and might or might not be the policy holder.
190         */
191        NMDINS, 
192        /**
193         * A person, who is a type of contact, designated to receive notifications on behalf of another person who is a relative.
194         */
195        NOK, 
196        /**
197         * The party credentialed to legally attest to the contract binding by verifying the identity and capacity of the grantor and grantee, and witnessing their signing of the contract or agreement such as a real estate transaction, pre-nuptial agreement, or a will.
198         */
199        NOTARY, 
200        /**
201         * A person, animal, or other living subject that is the actual or potential recipient of health care services.
202         */
203        PAT, 
204        /**
205         * A person who has been granted the authority to represent or act on another's behalf generally in a manner which is a legally binding upon the person giving such authority as if he or she personally were to do the acts. Examples include (1) exercising specific legal rights belonging to the grantee such as signing a contract; (2) performing specific legal duties on behalf of a grantee such as making loan payments; and (3) making specific legal decisions concerning a grantee such as financial investment decisions.
206         */
207        POWATT, 
208        /**
209         * An entity that is the primary or sole author of information content.  In the healthcare context, there can be only one primary author of health information content in a record entry or document.
210         */
211        PRIMAUTH, 
212        /**
213         * An entity that may, should receive, or has received information or an object to which it was primarily addressed.
214         */
215        PRIRECIP, 
216        /**
217         * An entity that may, should receive, or has received information or an object, which might not have been primarily addressed to it. For example, the staff of a provider, a clearinghouse, or other intermediary.
218         */
219        RECIP, 
220        /**
221         * An entity that has legal responsibility for another party.
222         */
223        RESPRSN, 
224        /**
225         * A person, device, or algorithm that has used approved criteria for filtered data for inclusion into the patient record.  Examples: (1) a medical records clerk who scans a document for inclusion in the medical record, enters header information, or catalogues and classifies the data, or a combination thereof; (2) a gateway that receives data from another computer system and interprets that data or changes its format, or both, before entering it into the patient record.
226         */
227        REVIEWER, 
228        /**
229         * An entity entering the data into the originating system. This includes the transcriptionist for dictated text transcribed into electronic form.
230         */
231        TRANS, 
232        /**
233         * An automated data source that generates a signature along with content. Examples: (1) the signature for an image that is generated by a device for inclusion in the patient record; (2) the signature for an ECG derived by an ECG system for inclusion in the patient record; (3) the data from a biomedical monitoring device or system that is for inclusion in the patient record.
234         */
235        SOURCE, 
236        /**
237         * A person who has been granted the authority to represent or act on another's behalf for a limited set of specific matters in a manner which is a legally binding upon the person giving such authority as if he or she personally were to do the acts. Examples include (1) exercising specific legal rights belonging to the grantee such as drafting a will; (2) performing specific legal duties on behalf of a grantee such as making a reversible mortgage to pay for end of life expenses; and (3) making specific legal decisions concerning a grantee such as managing a trust.
238         */
239        SPOWATT, 
240        /**
241         * A person who validates a health information document for inclusion in the patient record. For example, a medical student or resident is credentialed to perform history or physical examinations and to write progress notes. The attending physician signs the history and physical examination to validate the entry for inclusion in the patient's medical record.
242         */
243        VALID, 
244        /**
245         * A person who asserts the correctness and appropriateness of an act or the recording of the act, and is accountable for the assertion that the act or the recording of the act complies with jurisdictional or organizational policy. For example, a physician is required to countersign a verbal order that has previously been recorded in the medical record by a registered nurse who has carried out the verbal order.
246         */
247        VERF, 
248        /**
249         * A person witnessing the signature of another party. A witness is not knowledgeable about the content being signed, much less approves of anything stated in the content. For example, an advanced directive witness or a witness that a party to a contract signed that certain demographic or financial information is truthful.
250         */
251        WIT, 
252        /**
253         * added to help the parsers
254         */
255        NULL;
256        public static ContractSignerType fromCode(String codeString) throws FHIRException {
257            if (codeString == null || "".equals(codeString))
258                return null;
259        if ("AMENDER".equals(codeString))
260          return AMENDER;
261        if ("AUTHN".equals(codeString))
262          return AUTHN;
263        if ("AUT".equals(codeString))
264          return AUT;
265        if ("AFFL".equals(codeString))
266          return AFFL;
267        if ("AGNT".equals(codeString))
268          return AGNT;
269        if ("ASSIGNED".equals(codeString))
270          return ASSIGNED;
271        if ("CIT".equals(codeString))
272          return CIT;
273        if ("CLAIMANT".equals(codeString))
274          return CLAIMANT;
275        if ("COAUTH".equals(codeString))
276          return COAUTH;
277        if ("CONSENTER".equals(codeString))
278          return CONSENTER;
279        if ("CONSWIT".equals(codeString))
280          return CONSWIT;
281        if ("CONT".equals(codeString))
282          return CONT;
283        if ("COPART".equals(codeString))
284          return COPART;
285        if ("COVPTY".equals(codeString))
286          return COVPTY;
287        if ("DELEGATEE".equals(codeString))
288          return DELEGATEE;
289        if ("delegator".equals(codeString))
290          return DELEGATOR;
291        if ("DEPEND".equals(codeString))
292          return DEPEND;
293        if ("DPOWATT".equals(codeString))
294          return DPOWATT;
295        if ("EMGCON".equals(codeString))
296          return EMGCON;
297        if ("EVTWIT".equals(codeString))
298          return EVTWIT;
299        if ("EXCEST".equals(codeString))
300          return EXCEST;
301        if ("GRANTEE".equals(codeString))
302          return GRANTEE;
303        if ("GRANTOR".equals(codeString))
304          return GRANTOR;
305        if ("GUAR".equals(codeString))
306          return GUAR;
307        if ("GUARD".equals(codeString))
308          return GUARD;
309        if ("GUADLTM".equals(codeString))
310          return GUADLTM;
311        if ("INF".equals(codeString))
312          return INF;
313        if ("INTPRT".equals(codeString))
314          return INTPRT;
315        if ("INSBJ".equals(codeString))
316          return INSBJ;
317        if ("HPOWATT".equals(codeString))
318          return HPOWATT;
319        if ("HPROV".equals(codeString))
320          return HPROV;
321        if ("LEGAUTHN".equals(codeString))
322          return LEGAUTHN;
323        if ("NMDINS".equals(codeString))
324          return NMDINS;
325        if ("NOK".equals(codeString))
326          return NOK;
327        if ("NOTARY".equals(codeString))
328          return NOTARY;
329        if ("PAT".equals(codeString))
330          return PAT;
331        if ("POWATT".equals(codeString))
332          return POWATT;
333        if ("PRIMAUTH".equals(codeString))
334          return PRIMAUTH;
335        if ("PRIRECIP".equals(codeString))
336          return PRIRECIP;
337        if ("RECIP".equals(codeString))
338          return RECIP;
339        if ("RESPRSN".equals(codeString))
340          return RESPRSN;
341        if ("REVIEWER".equals(codeString))
342          return REVIEWER;
343        if ("TRANS".equals(codeString))
344          return TRANS;
345        if ("SOURCE".equals(codeString))
346          return SOURCE;
347        if ("SPOWATT".equals(codeString))
348          return SPOWATT;
349        if ("VALID".equals(codeString))
350          return VALID;
351        if ("VERF".equals(codeString))
352          return VERF;
353        if ("WIT".equals(codeString))
354          return WIT;
355        throw new FHIRException("Unknown ContractSignerType code '"+codeString+"'");
356        }
357        public String toCode() {
358          switch (this) {
359            case AMENDER: return "AMENDER";
360            case AUTHN: return "AUTHN";
361            case AUT: return "AUT";
362            case AFFL: return "AFFL";
363            case AGNT: return "AGNT";
364            case ASSIGNED: return "ASSIGNED";
365            case CIT: return "CIT";
366            case CLAIMANT: return "CLAIMANT";
367            case COAUTH: return "COAUTH";
368            case CONSENTER: return "CONSENTER";
369            case CONSWIT: return "CONSWIT";
370            case CONT: return "CONT";
371            case COPART: return "COPART";
372            case COVPTY: return "COVPTY";
373            case DELEGATEE: return "DELEGATEE";
374            case DELEGATOR: return "delegator";
375            case DEPEND: return "DEPEND";
376            case DPOWATT: return "DPOWATT";
377            case EMGCON: return "EMGCON";
378            case EVTWIT: return "EVTWIT";
379            case EXCEST: return "EXCEST";
380            case GRANTEE: return "GRANTEE";
381            case GRANTOR: return "GRANTOR";
382            case GUAR: return "GUAR";
383            case GUARD: return "GUARD";
384            case GUADLTM: return "GUADLTM";
385            case INF: return "INF";
386            case INTPRT: return "INTPRT";
387            case INSBJ: return "INSBJ";
388            case HPOWATT: return "HPOWATT";
389            case HPROV: return "HPROV";
390            case LEGAUTHN: return "LEGAUTHN";
391            case NMDINS: return "NMDINS";
392            case NOK: return "NOK";
393            case NOTARY: return "NOTARY";
394            case PAT: return "PAT";
395            case POWATT: return "POWATT";
396            case PRIMAUTH: return "PRIMAUTH";
397            case PRIRECIP: return "PRIRECIP";
398            case RECIP: return "RECIP";
399            case RESPRSN: return "RESPRSN";
400            case REVIEWER: return "REVIEWER";
401            case TRANS: return "TRANS";
402            case SOURCE: return "SOURCE";
403            case SPOWATT: return "SPOWATT";
404            case VALID: return "VALID";
405            case VERF: return "VERF";
406            case WIT: return "WIT";
407            default: return "?";
408          }
409        }
410        public String getSystem() {
411          return "http://terminology.hl7.org/CodeSystem/contractsignertypecodes";
412        }
413        public String getDefinition() {
414          switch (this) {
415            case AMENDER: return "A person who has corrected, edited, or amended pre-existing information.";
416            case AUTHN: return "A person in the role of verifier who attests to the accuracy of an act, but who does not have privileges to legally authenticate information content. An example would be a resident physician who sees a patient and dictates a note, then later signs it. The resident's signature constitutes an authentication.";
417            case AUT: return "An entity that authored specific content. There can be multiple authors of content, which may take such forms as a contract, a healthcare record entry or document, a policy, or a consent directive.";
418            case AFFL: return "An entity that has a business or professional relationship with another entity in accordance with an agreement.";
419            case AGNT: return "An entity that acts or is authorized to act on behalf of another entity in accordance with an agreement.";
420            case ASSIGNED: return "An agent role in which the agent is an Entity acting in the employ of an organization. The focus is on functional role on behalf of the organization, unlike the Employee role where the focus is on the 'Human Resources' relationship between the employee and the organization.";
421            case CIT: return "The member of a jurisdiction afforded certain rights and encumbered with certain obligation in accordance with jurisdictional policy.";
422            case CLAIMANT: return "A party that makes a claim for coverage under a policy.";
423            case COAUTH: return "The entity that co-authored content. There can be multiple co-authors of content, which may take such forms as a contract, a healthcare record entry or document, a policy, or a consent directive.";
424            case CONSENTER: return "A patient or patient representative who is the grantee in a healthcare related agreement such as a consent for healthcare services, advanced directive, or a privacy consent directive in accordance with jurisdictional, organizational, or patient policy.";
425            case CONSWIT: return "A person who has witnessed and attests to observing a patient being counseled about a healthcare related agreement such as a consent for healthcare services, advanced directive, or a privacy consent directive.";
426            case CONT: return "A person or an organization that provides or receives information regarding another entity. Examples; patient NOK and emergency contacts; guarantor contact; employer contact.";
427            case COPART: return "A person who participates in the generation of and attest to veracity of content but is not an author or co-author. For example, a surgeon who is required by institutional, regulatory, or legal rules to sign an operative report, but who was not involved in the authorship of that report.";
428            case COVPTY: return "An entity, which is the insured, that receives benefits such as healthcare services, reimbursement for out-of-pocket expenses, or compensation for losses through coverage under the terms of an insurance policy. The underwriter of that policy is the scoping entity. The covered party receives coverage because of some contractual or other relationship with the holder of that policy. Note that a particular policy may cover several individuals one of whom may be, but need not be, the policy holder. Thus the notion of covered party is a role that is distinct from that of the policy holder.";
429            case DELEGATEE: return "A party to whom some right or authority is delegated by a delegator.";
430            case DELEGATOR: return "A party that delegates a right or authority to another party.";
431            case DEPEND: return "A person covered under an insurance policy or program based on an association with a subscriber, which is recognized by the policy holder. The dependent has an association with the subscriber such as a financial dependency or personal relationship such as that of a spouse, or a natural or adopted child. The policy holder may be required by law to recognize certain associations or may have discretion about the associations. For example, a policy holder may dictate the criteria for the dependent status of adult children who are students, such as requiring full time enrollment, or may recognize domestic partners as dependents. Under certain circumstances, the dependent may be under the indirect authority of a responsible party acting as a surrogate for the subscriber, for example, if the subscriber is differently-abled or deceased, a guardian ad lidem or estate executor may be appointed to assume the subscriber's legal standing in the relationship with the dependent.";
432            case DPOWATT: return "A person who has been granted the authority to represent or act on another's behalf generally in a manner which is a legally binding upon the person giving such authority as if he or she personally were to do the acts. Unlike ordinary powers of attorney, durable powers can survive for long periods of time, and again, unlike standard powers of attorney, durable powers can continue after incompetency.";
433            case EMGCON: return "An entity to be contacted in the event of an emergency";
434            case EVTWIT: return "A person who attests to observing an occurrence.  For example, the witness has observed a procedure and is attesting to this fact.";
435            case EXCEST: return "A person who has been granted the authority to act as an estate executor for a deceased person who was the responsible party.";
436            case GRANTEE: return "A person who grants to another person the authority to represent or act on that person's behalf.  Examples include (1) exercising specific rights belonging to the grantee; (2) performing specific duties on behalf of a grantee; and (3) making specific decisions concerning a grantee.";
437            case GRANTOR: return "A person who has been granted the authority to represent or act on another's behalf. Examples include (1) exercising specific rights belonging to the grantee; (2) performing specific duties on behalf of a grantee; and (3) making specific decisions concerning a grantee.";
438            case GUAR: return "A person or organization contractually recognized by the issuer as an entity that has assumed fiscal responsibility (e.g., by making or giving a promise, assurance, or pledge) for another entity's financial obligations by guaranteeing to pay for amounts owed to a particular account.  In a healthcare context, the account may be a patient's billing account for services rendered by a provider or a health plan premium account.";
439            case GUARD: return "A person or organization legally empowered with responsibility for the care of a ward.";
440            case GUADLTM: return "A person appointed by the court to look out for the best interests of a minor child during the course of legal proceedings.";
441            case INF: return "An entity that is the source of reported information (e.g., a next of kin who answers questions about the patient's history). For history questions, the patient is logically an informant, yet the informant of history questions is implicitly the subject.";
442            case INTPRT: return "A person who converts spoken or written language into the language of key participants in an event such as when a provider is obtaining a patient's consent to treatment or permission to disclose information.";
443            case INSBJ: return "An entity that is the subject of an investigation. This role is scoped by the party responsible for the investigation.";
444            case HPOWATT: return "A person who has been granted the authority to represent or act on another's behalf for healthcare related matters in a manner which is a legally binding upon the person giving such authority as if he or she personally were to do the acts. Examples include (1) exercising specific healthcare legal rights belonging to the grantee such as signing a consent directive; (2) performing specific healthcare related legal duties on behalf of a grantee such as claims payment; and (3) making specific healthcare legal decisions concerning a grantee such as consenting to healthcare services.";
445            case HPROV: return "An entity that is authorized to provide health care services by an authorizing organization or jurisdiction.";
446            case LEGAUTHN: return "A person in the role of verifier who attests to the accuracy of information content, and who has privileges to certify the legal authenticity of that content with a signature that constitutes a legal authentication.  For example, a licensed physician who signs a consult authored by a resident physician who authenticated it.";
447            case NMDINS: return "A party to an insurance policy under which the insurer agrees to indemnify for losses, provides benefits for, or renders services. A named insured may be either a person, non-person living subject, or an organization, or a group of persons, non-person living subject that is the named insured under a comprehensive automobile, disability, or property and casualty policy.  The named insured and might or might not be the policy holder.";
448            case NOK: return "A person, who is a type of contact, designated to receive notifications on behalf of another person who is a relative.";
449            case NOTARY: return "The party credentialed to legally attest to the contract binding by verifying the identity and capacity of the grantor and grantee, and witnessing their signing of the contract or agreement such as a real estate transaction, pre-nuptial agreement, or a will.";
450            case PAT: return "A person, animal, or other living subject that is the actual or potential recipient of health care services.";
451            case POWATT: return "A person who has been granted the authority to represent or act on another's behalf generally in a manner which is a legally binding upon the person giving such authority as if he or she personally were to do the acts. Examples include (1) exercising specific legal rights belonging to the grantee such as signing a contract; (2) performing specific legal duties on behalf of a grantee such as making loan payments; and (3) making specific legal decisions concerning a grantee such as financial investment decisions.";
452            case PRIMAUTH: return "An entity that is the primary or sole author of information content.  In the healthcare context, there can be only one primary author of health information content in a record entry or document.";
453            case PRIRECIP: return "An entity that may, should receive, or has received information or an object to which it was primarily addressed.";
454            case RECIP: return "An entity that may, should receive, or has received information or an object, which might not have been primarily addressed to it. For example, the staff of a provider, a clearinghouse, or other intermediary.";
455            case RESPRSN: return "An entity that has legal responsibility for another party.";
456            case REVIEWER: return "A person, device, or algorithm that has used approved criteria for filtered data for inclusion into the patient record.  Examples: (1) a medical records clerk who scans a document for inclusion in the medical record, enters header information, or catalogues and classifies the data, or a combination thereof; (2) a gateway that receives data from another computer system and interprets that data or changes its format, or both, before entering it into the patient record.";
457            case TRANS: return "An entity entering the data into the originating system. This includes the transcriptionist for dictated text transcribed into electronic form.";
458            case SOURCE: return "An automated data source that generates a signature along with content. Examples: (1) the signature for an image that is generated by a device for inclusion in the patient record; (2) the signature for an ECG derived by an ECG system for inclusion in the patient record; (3) the data from a biomedical monitoring device or system that is for inclusion in the patient record.";
459            case SPOWATT: return "A person who has been granted the authority to represent or act on another's behalf for a limited set of specific matters in a manner which is a legally binding upon the person giving such authority as if he or she personally were to do the acts. Examples include (1) exercising specific legal rights belonging to the grantee such as drafting a will; (2) performing specific legal duties on behalf of a grantee such as making a reversible mortgage to pay for end of life expenses; and (3) making specific legal decisions concerning a grantee such as managing a trust.";
460            case VALID: return "A person who validates a health information document for inclusion in the patient record. For example, a medical student or resident is credentialed to perform history or physical examinations and to write progress notes. The attending physician signs the history and physical examination to validate the entry for inclusion in the patient's medical record.";
461            case VERF: return "A person who asserts the correctness and appropriateness of an act or the recording of the act, and is accountable for the assertion that the act or the recording of the act complies with jurisdictional or organizational policy. For example, a physician is required to countersign a verbal order that has previously been recorded in the medical record by a registered nurse who has carried out the verbal order.";
462            case WIT: return "A person witnessing the signature of another party. A witness is not knowledgeable about the content being signed, much less approves of anything stated in the content. For example, an advanced directive witness or a witness that a party to a contract signed that certain demographic or financial information is truthful.";
463            default: return "?";
464          }
465        }
466        public String getDisplay() {
467          switch (this) {
468            case AMENDER: return "Amender";
469            case AUTHN: return "Authenticator";
470            case AUT: return "Author";
471            case AFFL: return "Affiliate";
472            case AGNT: return "Agent";
473            case ASSIGNED: return "Assigned Entity";
474            case CIT: return "Citizen";
475            case CLAIMANT: return "Claimant";
476            case COAUTH: return "Co-Author";
477            case CONSENTER: return "Consenter";
478            case CONSWIT: return "Consent Witness";
479            case CONT: return "Contact";
480            case COPART: return "Co-Participant";
481            case COVPTY: return "Covered Party";
482            case DELEGATEE: return "Delegatee";
483            case DELEGATOR: return "Delegator";
484            case DEPEND: return "Dependent";
485            case DPOWATT: return "Durable Power of Attorney";
486            case EMGCON: return "Emergency Contact";
487            case EVTWIT: return "Event Witness";
488            case EXCEST: return "Executor of Estate";
489            case GRANTEE: return "Grantee";
490            case GRANTOR: return "Grantor";
491            case GUAR: return "Guarantor";
492            case GUARD: return "Guardian";
493            case GUADLTM: return "Guardian ad lidem";
494            case INF: return "Informant";
495            case INTPRT: return "Interpreter";
496            case INSBJ: return "Investigation Subject";
497            case HPOWATT: return "Healthcare Power of Attorney";
498            case HPROV: return "Healthcare Provider";
499            case LEGAUTHN: return "Legal Authenticator";
500            case NMDINS: return "Named Insured";
501            case NOK: return "Next of Kin";
502            case NOTARY: return "Notary";
503            case PAT: return "Patient";
504            case POWATT: return "Power of Attorney";
505            case PRIMAUTH: return "Primary Author";
506            case PRIRECIP: return "Primary Responsible Party ";
507            case RECIP: return "Recipient";
508            case RESPRSN: return "Responsible Party";
509            case REVIEWER: return "Reviewer";
510            case TRANS: return "Transcriber";
511            case SOURCE: return "Source";
512            case SPOWATT: return "Special Power of Attorney";
513            case VALID: return "Validator";
514            case VERF: return "Verifier";
515            case WIT: return "Witness";
516            default: return "?";
517          }
518    }
519
520
521}
522