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 ContractSignerType {
037
038  /**
039   * A person who has corrected, edited, or amended pre-existing information.
040   */
041  AMENDER,
042  /**
043   * A person in the role of verifier who attests to the accuracy of an act, but
044   * who does not have privileges to legally authenticate information content. An
045   * example would be a resident physician who sees a patient and dictates a note,
046   * then later signs it. The resident's signature constitutes an authentication.
047   */
048  AUTHN,
049  /**
050   * An entity that authored specific content. There can be multiple authors of
051   * content, which may take such forms as a contract, a healthcare record entry
052   * or document, a policy, or a consent directive.
053   */
054  AUT,
055  /**
056   * An entity that has a business or professional relationship with another
057   * entity in accordance with an agreement.
058   */
059  AFFL,
060  /**
061   * An entity that acts or is authorized to act on behalf of another entity in
062   * accordance with an agreement.
063   */
064  AGNT,
065  /**
066   * An agent role in which the agent is an Entity acting in the employ of an
067   * organization. The focus is on functional role on behalf of the organization,
068   * unlike the Employee role where the focus is on the 'Human Resources'
069   * relationship between the employee and the organization.
070   */
071  ASSIGNED,
072  /**
073   * The member of a jurisdiction afforded certain rights and encumbered with
074   * certain obligation in accordance with jurisdictional policy.
075   */
076  CIT,
077  /**
078   * A party that makes a claim for coverage under a policy.
079   */
080  CLAIMANT,
081  /**
082   * The entity that co-authored content. There can be multiple co-authors of
083   * content, which may take such forms as a contract, a healthcare record entry
084   * or document, a policy, or a consent directive.
085   */
086  COAUTH,
087  /**
088   * A patient or patient representative who is the grantee in a healthcare
089   * related agreement such as a consent for healthcare services, advanced
090   * directive, or a privacy consent directive in accordance with jurisdictional,
091   * organizational, or patient policy.
092   */
093  CONSENTER,
094  /**
095   * A person who has witnessed and attests to observing a patient being counseled
096   * about a healthcare related agreement such as a consent for healthcare
097   * services, advanced directive, or a privacy consent directive.
098   */
099  CONSWIT,
100  /**
101   * A person or an organization that provides or receives information regarding
102   * another entity. Examples; patient NOK and emergency contacts; guarantor
103   * contact; employer contact.
104   */
105  CONT,
106  /**
107   * A person who participates in the generation of and attest to veracity of
108   * content but is not an author or co-author. For example, a surgeon who is
109   * required by institutional, regulatory, or legal rules to sign an operative
110   * report, but who was not involved in the authorship of that report.
111   */
112  COPART,
113  /**
114   * An entity, which is the insured, that receives benefits such as healthcare
115   * services, reimbursement for out-of-pocket expenses, or compensation for
116   * losses through coverage under the terms of an insurance policy. The
117   * underwriter of that policy is the scoping entity. The covered party receives
118   * coverage because of some contractual or other relationship with the holder of
119   * that policy. Note that a particular policy may cover several individuals one
120   * of whom may be, but need not be, the policy holder. Thus the notion of
121   * covered party is a role that is distinct from that of the policy holder.
122   */
123  COVPTY,
124  /**
125   * A party to whom some right or authority is delegated by a delegator.
126   */
127  DELEGATEE,
128  /**
129   * A party that delegates a right or authority to another party.
130   */
131  DELEGATOR,
132  /**
133   * A person covered under an insurance policy or program based on an association
134   * with a subscriber, which is recognized by the policy holder. The dependent
135   * has an association with the subscriber such as a financial dependency or
136   * personal relationship such as that of a spouse, or a natural or adopted
137   * child. The policy holder may be required by law to recognize certain
138   * associations or may have discretion about the associations. For example, a
139   * policy holder may dictate the criteria for the dependent status of adult
140   * children who are students, such as requiring full time enrollment, or may
141   * recognize domestic partners as dependents. Under certain circumstances, the
142   * dependent may be under the indirect authority of a responsible party acting
143   * as a surrogate for the subscriber, for example, if the subscriber is
144   * differently-abled or deceased, a guardian ad lidem or estate executor may be
145   * appointed to assume the subscriber's legal standing in the relationship with
146   * the dependent.
147   */
148  DEPEND,
149  /**
150   * A person who has been granted the authority to represent or act on another's
151   * behalf generally in a manner which is a legally binding upon the person
152   * giving such authority as if he or she personally were to do the acts. Unlike
153   * ordinary powers of attorney, durable powers can survive for long periods of
154   * time, and again, unlike standard powers of attorney, durable powers can
155   * continue after incompetency.
156   */
157  DPOWATT,
158  /**
159   * An entity to be contacted in the event of an emergency
160   */
161  EMGCON,
162  /**
163   * A person who attests to observing an occurrence. For example, the witness has
164   * observed a procedure and is attesting to this fact.
165   */
166  EVTWIT,
167  /**
168   * A person who has been granted the authority to act as an estate executor for
169   * a deceased person who was the responsible party.
170   */
171  EXCEST,
172  /**
173   * A person who grants to another person the authority to represent or act on
174   * that person's behalf. Examples include (1) exercising specific rights
175   * belonging to the grantee; (2) performing specific duties on behalf of a
176   * grantee; and (3) making specific decisions concerning a grantee.
177   */
178  GRANTEE,
179  /**
180   * A person who has been granted the authority to represent or act on another's
181   * behalf. Examples include (1) exercising specific rights belonging to the
182   * grantee; (2) performing specific duties on behalf of a grantee; and (3)
183   * making specific decisions concerning a grantee.
184   */
185  GRANTOR,
186  /**
187   * A person or organization contractually recognized by the issuer as an entity
188   * that has assumed fiscal responsibility (e.g., by making or giving a promise,
189   * assurance, or pledge) for another entity's financial obligations by
190   * guaranteeing to pay for amounts owed to a particular account. In a healthcare
191   * context, the account may be a patient's billing account for services rendered
192   * by a provider or a health plan premium account.
193   */
194  GUAR,
195  /**
196   * A person or organization legally empowered with responsibility for the care
197   * of a ward.
198   */
199  GUARD,
200  /**
201   * A person appointed by the court to look out for the best interests of a minor
202   * child during the course of legal proceedings.
203   */
204  GUADLTM,
205  /**
206   * An entity that is the source of reported information (e.g., a next of kin who
207   * answers questions about the patient's history). For history questions, the
208   * patient is logically an informant, yet the informant of history questions is
209   * implicitly the subject.
210   */
211  INF,
212  /**
213   * A person who converts spoken or written language into the language of key
214   * participants in an event such as when a provider is obtaining a patient's
215   * consent to treatment or permission to disclose information.
216   */
217  INTPRT,
218  /**
219   * An entity that is the subject of an investigation. This role is scoped by the
220   * party responsible for the investigation.
221   */
222  INSBJ,
223  /**
224   * A person who has been granted the authority to represent or act on another's
225   * behalf for healthcare related matters in a manner which is a legally binding
226   * upon the person giving such authority as if he or she personally were to do
227   * the acts. Examples include (1) exercising specific healthcare legal rights
228   * belonging to the grantee such as signing a consent directive; (2) performing
229   * specific healthcare related legal duties on behalf of a grantee such as
230   * claims payment; and (3) making specific healthcare legal decisions concerning
231   * a grantee such as consenting to healthcare services.
232   */
233  HPOWATT,
234  /**
235   * An entity that is authorized to provide health care services by an
236   * authorizing organization or jurisdiction.
237   */
238  HPROV,
239  /**
240   * A person in the role of verifier who attests to the accuracy of information
241   * content, and who has privileges to certify the legal authenticity of that
242   * content with a signature that constitutes a legal authentication. For
243   * example, a licensed physician who signs a consult authored by a resident
244   * physician who authenticated it.
245   */
246  LEGAUTHN,
247  /**
248   * A party to an insurance policy under which the insurer agrees to indemnify
249   * for losses, provides benefits for, or renders services. A named insured may
250   * be either a person, non-person living subject, or an organization, or a group
251   * of persons, non-person living subject that is the named insured under a
252   * comprehensive automobile, disability, or property and casualty policy. The
253   * named insured and might or might not be the policy holder.
254   */
255  NMDINS,
256  /**
257   * A person, who is a type of contact, designated to receive notifications on
258   * behalf of another person who is a relative.
259   */
260  NOK,
261  /**
262   * The party credentialed to legally attest to the contract binding by verifying
263   * the identity and capacity of the grantor and grantee, and witnessing their
264   * signing of the contract or agreement such as a real estate transaction,
265   * pre-nuptial agreement, or a will.
266   */
267  NOTARY,
268  /**
269   * A person, animal, or other living subject that is the actual or potential
270   * recipient of health care services.
271   */
272  PAT,
273  /**
274   * A person who has been granted the authority to represent or act on another's
275   * behalf generally in a manner which is a legally binding upon the person
276   * giving such authority as if he or she personally were to do the acts.
277   * Examples include (1) exercising specific legal rights belonging to the
278   * grantee such as signing a contract; (2) performing specific legal duties on
279   * behalf of a grantee such as making loan payments; and (3) making specific
280   * legal decisions concerning a grantee such as financial investment decisions.
281   */
282  POWATT,
283  /**
284   * An entity that is the primary or sole author of information content. In the
285   * healthcare context, there can be only one primary author of health
286   * information content in a record entry or document.
287   */
288  PRIMAUTH,
289  /**
290   * An entity that may, should receive, or has received information or an object
291   * to which it was primarily addressed.
292   */
293  PRIRECIP,
294  /**
295   * An entity that may, should receive, or has received information or an object,
296   * which might not have been primarily addressed to it. For example, the staff
297   * of a provider, a clearinghouse, or other intermediary.
298   */
299  RECIP,
300  /**
301   * An entity that has legal responsibility for another party.
302   */
303  RESPRSN,
304  /**
305   * A person, device, or algorithm that has used approved criteria for filtered
306   * data for inclusion into the patient record. Examples: (1) a medical records
307   * clerk who scans a document for inclusion in the medical record, enters header
308   * information, or catalogues and classifies the data, or a combination thereof;
309   * (2) a gateway that receives data from another computer system and interprets
310   * that data or changes its format, or both, before entering it into the patient
311   * record.
312   */
313  REVIEWER,
314  /**
315   * An entity entering the data into the originating system. This includes the
316   * transcriptionist for dictated text transcribed into electronic form.
317   */
318  TRANS,
319  /**
320   * An automated data source that generates a signature along with content.
321   * Examples: (1) the signature for an image that is generated by a device for
322   * inclusion in the patient record; (2) the signature for an ECG derived by an
323   * ECG system for inclusion in the patient record; (3) the data from a
324   * biomedical monitoring device or system that is for inclusion in the patient
325   * record.
326   */
327  SOURCE,
328  /**
329   * A person who has been granted the authority to represent or act on another's
330   * behalf for a limited set of specific matters in a manner which is a legally
331   * binding upon the person giving such authority as if he or she personally were
332   * to do the acts. Examples include (1) exercising specific legal rights
333   * belonging to the grantee such as drafting a will; (2) performing specific
334   * legal duties on behalf of a grantee such as making a reversible mortgage to
335   * pay for end of life expenses; and (3) making specific legal decisions
336   * concerning a grantee such as managing a trust.
337   */
338  SPOWATT,
339  /**
340   * A person who validates a health information document for inclusion in the
341   * patient record. For example, a medical student or resident is credentialed to
342   * perform history or physical examinations and to write progress notes. The
343   * attending physician signs the history and physical examination to validate
344   * the entry for inclusion in the patient's medical record.
345   */
346  VALID,
347  /**
348   * A person who asserts the correctness and appropriateness of an act or the
349   * recording of the act, and is accountable for the assertion that the act or
350   * the recording of the act complies with jurisdictional or organizational
351   * policy. For example, a physician is required to countersign a verbal order
352   * that has previously been recorded in the medical record by a registered nurse
353   * who has carried out the verbal order.
354   */
355  VERF,
356  /**
357   * A person witnessing the signature of another party. A witness is not
358   * knowledgeable about the content being signed, much less approves of anything
359   * stated in the content. For example, an advanced directive witness or a
360   * witness that a party to a contract signed that certain demographic or
361   * financial information is truthful.
362   */
363  WIT,
364  /**
365   * added to help the parsers
366   */
367  NULL;
368
369  public static ContractSignerType fromCode(String codeString) throws FHIRException {
370    if (codeString == null || "".equals(codeString))
371      return null;
372    if ("AMENDER".equals(codeString))
373      return AMENDER;
374    if ("AUTHN".equals(codeString))
375      return AUTHN;
376    if ("AUT".equals(codeString))
377      return AUT;
378    if ("AFFL".equals(codeString))
379      return AFFL;
380    if ("AGNT".equals(codeString))
381      return AGNT;
382    if ("ASSIGNED".equals(codeString))
383      return ASSIGNED;
384    if ("CIT".equals(codeString))
385      return CIT;
386    if ("CLAIMANT".equals(codeString))
387      return CLAIMANT;
388    if ("COAUTH".equals(codeString))
389      return COAUTH;
390    if ("CONSENTER".equals(codeString))
391      return CONSENTER;
392    if ("CONSWIT".equals(codeString))
393      return CONSWIT;
394    if ("CONT".equals(codeString))
395      return CONT;
396    if ("COPART".equals(codeString))
397      return COPART;
398    if ("COVPTY".equals(codeString))
399      return COVPTY;
400    if ("DELEGATEE".equals(codeString))
401      return DELEGATEE;
402    if ("delegator".equals(codeString))
403      return DELEGATOR;
404    if ("DEPEND".equals(codeString))
405      return DEPEND;
406    if ("DPOWATT".equals(codeString))
407      return DPOWATT;
408    if ("EMGCON".equals(codeString))
409      return EMGCON;
410    if ("EVTWIT".equals(codeString))
411      return EVTWIT;
412    if ("EXCEST".equals(codeString))
413      return EXCEST;
414    if ("GRANTEE".equals(codeString))
415      return GRANTEE;
416    if ("GRANTOR".equals(codeString))
417      return GRANTOR;
418    if ("GUAR".equals(codeString))
419      return GUAR;
420    if ("GUARD".equals(codeString))
421      return GUARD;
422    if ("GUADLTM".equals(codeString))
423      return GUADLTM;
424    if ("INF".equals(codeString))
425      return INF;
426    if ("INTPRT".equals(codeString))
427      return INTPRT;
428    if ("INSBJ".equals(codeString))
429      return INSBJ;
430    if ("HPOWATT".equals(codeString))
431      return HPOWATT;
432    if ("HPROV".equals(codeString))
433      return HPROV;
434    if ("LEGAUTHN".equals(codeString))
435      return LEGAUTHN;
436    if ("NMDINS".equals(codeString))
437      return NMDINS;
438    if ("NOK".equals(codeString))
439      return NOK;
440    if ("NOTARY".equals(codeString))
441      return NOTARY;
442    if ("PAT".equals(codeString))
443      return PAT;
444    if ("POWATT".equals(codeString))
445      return POWATT;
446    if ("PRIMAUTH".equals(codeString))
447      return PRIMAUTH;
448    if ("PRIRECIP".equals(codeString))
449      return PRIRECIP;
450    if ("RECIP".equals(codeString))
451      return RECIP;
452    if ("RESPRSN".equals(codeString))
453      return RESPRSN;
454    if ("REVIEWER".equals(codeString))
455      return REVIEWER;
456    if ("TRANS".equals(codeString))
457      return TRANS;
458    if ("SOURCE".equals(codeString))
459      return SOURCE;
460    if ("SPOWATT".equals(codeString))
461      return SPOWATT;
462    if ("VALID".equals(codeString))
463      return VALID;
464    if ("VERF".equals(codeString))
465      return VERF;
466    if ("WIT".equals(codeString))
467      return WIT;
468    throw new FHIRException("Unknown ContractSignerType code '" + codeString + "'");
469  }
470
471  public String toCode() {
472    switch (this) {
473    case AMENDER:
474      return "AMENDER";
475    case AUTHN:
476      return "AUTHN";
477    case AUT:
478      return "AUT";
479    case AFFL:
480      return "AFFL";
481    case AGNT:
482      return "AGNT";
483    case ASSIGNED:
484      return "ASSIGNED";
485    case CIT:
486      return "CIT";
487    case CLAIMANT:
488      return "CLAIMANT";
489    case COAUTH:
490      return "COAUTH";
491    case CONSENTER:
492      return "CONSENTER";
493    case CONSWIT:
494      return "CONSWIT";
495    case CONT:
496      return "CONT";
497    case COPART:
498      return "COPART";
499    case COVPTY:
500      return "COVPTY";
501    case DELEGATEE:
502      return "DELEGATEE";
503    case DELEGATOR:
504      return "delegator";
505    case DEPEND:
506      return "DEPEND";
507    case DPOWATT:
508      return "DPOWATT";
509    case EMGCON:
510      return "EMGCON";
511    case EVTWIT:
512      return "EVTWIT";
513    case EXCEST:
514      return "EXCEST";
515    case GRANTEE:
516      return "GRANTEE";
517    case GRANTOR:
518      return "GRANTOR";
519    case GUAR:
520      return "GUAR";
521    case GUARD:
522      return "GUARD";
523    case GUADLTM:
524      return "GUADLTM";
525    case INF:
526      return "INF";
527    case INTPRT:
528      return "INTPRT";
529    case INSBJ:
530      return "INSBJ";
531    case HPOWATT:
532      return "HPOWATT";
533    case HPROV:
534      return "HPROV";
535    case LEGAUTHN:
536      return "LEGAUTHN";
537    case NMDINS:
538      return "NMDINS";
539    case NOK:
540      return "NOK";
541    case NOTARY:
542      return "NOTARY";
543    case PAT:
544      return "PAT";
545    case POWATT:
546      return "POWATT";
547    case PRIMAUTH:
548      return "PRIMAUTH";
549    case PRIRECIP:
550      return "PRIRECIP";
551    case RECIP:
552      return "RECIP";
553    case RESPRSN:
554      return "RESPRSN";
555    case REVIEWER:
556      return "REVIEWER";
557    case TRANS:
558      return "TRANS";
559    case SOURCE:
560      return "SOURCE";
561    case SPOWATT:
562      return "SPOWATT";
563    case VALID:
564      return "VALID";
565    case VERF:
566      return "VERF";
567    case WIT:
568      return "WIT";
569    case NULL:
570      return null;
571    default:
572      return "?";
573    }
574  }
575
576  public String getSystem() {
577    return "http://terminology.hl7.org/CodeSystem/contractsignertypecodes";
578  }
579
580  public String getDefinition() {
581    switch (this) {
582    case AMENDER:
583      return "A person who has corrected, edited, or amended pre-existing information.";
584    case AUTHN:
585      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.";
586    case AUT:
587      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.";
588    case AFFL:
589      return "An entity that has a business or professional relationship with another entity in accordance with an agreement.";
590    case AGNT:
591      return "An entity that acts or is authorized to act on behalf of another entity in accordance with an agreement.";
592    case ASSIGNED:
593      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.";
594    case CIT:
595      return "The member of a jurisdiction afforded certain rights and encumbered with certain obligation in accordance with jurisdictional policy.";
596    case CLAIMANT:
597      return "A party that makes a claim for coverage under a policy.";
598    case COAUTH:
599      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.";
600    case CONSENTER:
601      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.";
602    case CONSWIT:
603      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.";
604    case CONT:
605      return "A person or an organization that provides or receives information regarding another entity. Examples; patient NOK and emergency contacts; guarantor contact; employer contact.";
606    case COPART:
607      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.";
608    case COVPTY:
609      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.";
610    case DELEGATEE:
611      return "A party to whom some right or authority is delegated by a delegator.";
612    case DELEGATOR:
613      return "A party that delegates a right or authority to another party.";
614    case DEPEND:
615      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.";
616    case DPOWATT:
617      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.";
618    case EMGCON:
619      return "An entity to be contacted in the event of an emergency";
620    case EVTWIT:
621      return "A person who attests to observing an occurrence.  For example, the witness has observed a procedure and is attesting to this fact.";
622    case EXCEST:
623      return "A person who has been granted the authority to act as an estate executor for a deceased person who was the responsible party.";
624    case GRANTEE:
625      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.";
626    case GRANTOR:
627      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.";
628    case GUAR:
629      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.";
630    case GUARD:
631      return "A person or organization legally empowered with responsibility for the care of a ward.";
632    case GUADLTM:
633      return "A person appointed by the court to look out for the best interests of a minor child during the course of legal proceedings.";
634    case INF:
635      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.";
636    case INTPRT:
637      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.";
638    case INSBJ:
639      return "An entity that is the subject of an investigation. This role is scoped by the party responsible for the investigation.";
640    case HPOWATT:
641      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.";
642    case HPROV:
643      return "An entity that is authorized to provide health care services by an authorizing organization or jurisdiction.";
644    case LEGAUTHN:
645      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.";
646    case NMDINS:
647      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.";
648    case NOK:
649      return "A person, who is a type of contact, designated to receive notifications on behalf of another person who is a relative.";
650    case NOTARY:
651      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.";
652    case PAT:
653      return "A person, animal, or other living subject that is the actual or potential recipient of health care services.";
654    case POWATT:
655      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.";
656    case PRIMAUTH:
657      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.";
658    case PRIRECIP:
659      return "An entity that may, should receive, or has received information or an object to which it was primarily addressed.";
660    case RECIP:
661      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.";
662    case RESPRSN:
663      return "An entity that has legal responsibility for another party.";
664    case REVIEWER:
665      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.";
666    case TRANS:
667      return "An entity entering the data into the originating system. This includes the transcriptionist for dictated text transcribed into electronic form.";
668    case SOURCE:
669      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.";
670    case SPOWATT:
671      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.";
672    case VALID:
673      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.";
674    case VERF:
675      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.";
676    case WIT:
677      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.";
678    case NULL:
679      return null;
680    default:
681      return "?";
682    }
683  }
684
685  public String getDisplay() {
686    switch (this) {
687    case AMENDER:
688      return "Amender";
689    case AUTHN:
690      return "Authenticator";
691    case AUT:
692      return "Author";
693    case AFFL:
694      return "Affiliate";
695    case AGNT:
696      return "Agent";
697    case ASSIGNED:
698      return "Assigned Entity";
699    case CIT:
700      return "Citizen";
701    case CLAIMANT:
702      return "Claimant";
703    case COAUTH:
704      return "Co-Author";
705    case CONSENTER:
706      return "Consenter";
707    case CONSWIT:
708      return "Consent Witness";
709    case CONT:
710      return "Contact";
711    case COPART:
712      return "Co-Participant";
713    case COVPTY:
714      return "Covered Party";
715    case DELEGATEE:
716      return "Delegatee";
717    case DELEGATOR:
718      return "Delegator";
719    case DEPEND:
720      return "Dependent";
721    case DPOWATT:
722      return "Durable Power of Attorney";
723    case EMGCON:
724      return "Emergency Contact";
725    case EVTWIT:
726      return "Event Witness";
727    case EXCEST:
728      return "Executor of Estate";
729    case GRANTEE:
730      return "Grantee";
731    case GRANTOR:
732      return "Grantor";
733    case GUAR:
734      return "Guarantor";
735    case GUARD:
736      return "Guardian";
737    case GUADLTM:
738      return "Guardian ad lidem";
739    case INF:
740      return "Informant";
741    case INTPRT:
742      return "Interpreter";
743    case INSBJ:
744      return "Investigation Subject";
745    case HPOWATT:
746      return "Healthcare Power of Attorney";
747    case HPROV:
748      return "Healthcare Provider";
749    case LEGAUTHN:
750      return "Legal Authenticator";
751    case NMDINS:
752      return "Named Insured";
753    case NOK:
754      return "Next of Kin";
755    case NOTARY:
756      return "Notary";
757    case PAT:
758      return "Patient";
759    case POWATT:
760      return "Power of Attorney";
761    case PRIMAUTH:
762      return "Primary Author";
763    case PRIRECIP:
764      return "Primary Responsible Party ";
765    case RECIP:
766      return "Recipient";
767    case RESPRSN:
768      return "Responsible Party";
769    case REVIEWER:
770      return "Reviewer";
771    case TRANS:
772      return "Transcriber";
773    case SOURCE:
774      return "Source";
775    case SPOWATT:
776      return "Special Power of Attorney";
777    case VALID:
778      return "Validator";
779    case VERF:
780      return "Verifier";
781    case WIT:
782      return "Witness";
783    case NULL:
784      return null;
785    default:
786      return "?";
787    }
788  }
789
790}