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 Thu, Sep 13, 2018 09:04-0400 for FHIR v3.5.0
033
034
035import org.hl7.fhir.exceptions.FHIRException;
036
037public enum V3ActRelationshipType {
038
039        /**
040         * Description: A directed association between a source Act and a target Act.
041
042                        
043                           Usage Note: This code should never be transmitted in an instance as the value of ActRelationship.typeCode (attribute)
044         */
045        ART, 
046        /**
047         * ActClassTemporallyPertains
048         */
049        _ACTCLASSTEMPORALLYPERTAINS, 
050        /**
051         * Codes that describe the relationship between an Act and a financial instrument such as a financial transaction, account or invoice element.
052         */
053        _ACTRELATIONSHIPACCOUNTING, 
054        /**
055         * Expresses values for describing the relationship relationship between an InvoiceElement or InvoiceElementGroup and a billable act.
056         */
057        _ACTRELATIONSHIPCOSTTRACKING, 
058        /**
059         * A relationship that provides an ability to associate a financial transaction (target) as a charge to a clinical act (source).  A clinical act may have a charge associated with the execution or delivery of the service.
060
061                        The financial transaction will define the charge (bill) for delivery or performance of the service.
062
063                        Charges and costs are distinct terms.  A charge defines what is charged or billed to another organization or entity within an organization.  The cost defines what it costs an organization to perform or deliver a service or product.
064         */
065        CHRG, 
066        /**
067         * A relationship that provides an ability to associate a financial transaction (target) as a cost to a clinical act (source).  A clinical act may have an inherit cost associated with the execution or delivery of the service.
068
069                        The financial transaction will define the cost of delivery or performance of the service.
070
071                        Charges and costs are distinct terms.  A charge defines what is charged or billed to another organization or entity within an organization.  The cost defines what it costs an organization to perform or deliver a service or product.
072         */
073        COST, 
074        /**
075         * Expresses values for describing the relationship between a FinancialTransaction and an Account.
076         */
077        _ACTRELATIONSHIPPOSTING, 
078        /**
079         * A credit relationship ties a financial transaction (target) to an account (source). A credit, once applied (posted), may have either a positive or negative effect on the account balance, depending on the type of account. An asset account credit will decrease the account balance. A non-asset account credit will decrease the account balance.
080         */
081        CREDIT, 
082        /**
083         * A debit relationship ties a financial transaction (target) to an account (source).  A debit, once applied (posted), may have either a positive or negative effect on the account balance, depending on the type of account.  An asset account debit will increase the account balance.  A non-asset account debit will decrease the account balance.
084         */
085        DEBIT, 
086        /**
087         * Specifies under what circumstances (target Act) the source-Act may, must, must not or has occurred
088         */
089        _ACTRELATIONSHIPCONDITIONAL, 
090        /**
091         * A contraindication is just a negation of a reason, i.e. it gives a condition under which the action is not to be done. Both, source and target can be any kind of service; target service is in criterion mood. How the strength of a contraindication is expressed (e.g., relative, absolute) is left as an open issue. The priorityNumber attribute could be used.
092         */
093        CIND, 
094        /**
095         * A requirement to be true before a service is performed. The target can be any service in criterion mood.  For multiple pre-conditions a conjunction attribute (AND, OR, XOR) is applicable.
096         */
097        PRCN, 
098        /**
099         * Description: The reason or rationale for a service. A reason link is weaker than a trigger, it only suggests that some service may be or might have been a reason for some action, but not that this reason requires/required the action to be taken. Also, as opposed to the trigger, there is no strong timely relation between the reason and the action.  As well as providing various types of information about the rationale for a service, the RSON act relationship is routinely used between a SBADM act and an OBS act to describe the indication for use of a medication.  Child concepts may be used to describe types of indication. 
100
101                        
102                           Discussion: In prior releases, the code "SUGG" (suggests) was expressed as "an inversion of the reason link." That code has been retired in favor of the inversion indicator that is an attribute of ActRelationship.
103         */
104        RSON, 
105        /**
106         * Definition: The source act is performed to block the effects of the target act.  This act relationship should be used when describing near miss type incidents where potential harm could have occurred, but the action described in the source act blocked the potential harmful effects of the incident actually occurring.
107         */
108        BLOCK, 
109        /**
110         * Description: The source act is intended to help establish the presence of a (an adverse) situation described by the target act. This is not limited to diseases but can apply to any adverse situation or condition of medical or technical nature.
111         */
112        DIAG, 
113        /**
114         * Description: The source act is intented to provide immunity against the effects of the target act (the target act describes an infectious disease)
115         */
116        IMM, 
117        /**
118         * Description: The source act is intended to provide active immunity against the effects of the target act (the target act describes an infectious disease)
119         */
120        ACTIMM, 
121        /**
122         * Description: The source act is intended to provide passive immunity against the effects of the target act (the target act describes an infectious disease).
123         */
124        PASSIMM, 
125        /**
126         * The source act removes or lessens the occurrence or effect of the target act.
127         */
128        MITGT, 
129        /**
130         * Definition: The source act is performed to recover from the effects of the target act.
131         */
132        RCVY, 
133        /**
134         * Description: The source act is intended to reduce the risk of of an adverse situation to emerge as described by the target act. This is not limited to diseases but can apply to any adverse situation or condition of medical or technical nature.
135         */
136        PRYLX, 
137        /**
138         * Description: The source act is intended to improve a pre-existing adverse situation described by the target act. This is not limited to diseases but can apply to any adverse situation or condition of medical or technical nature.
139         */
140        TREAT, 
141        /**
142         * Description: The source act is intended to offer an additional treatment for the management or cure of a pre-existing adverse situation described by the target act. This is not limited to diseases but can apply to any adverse situation or condition of medical or technical nature.  It is not a requirement that the non-adjunctive treatment is explicitly specified.
143         */
144        ADJUNCT, 
145        /**
146         * Description: The source act is intended to provide long term maintenance improvement or management of a pre-existing adverse situation described by the target act. This is not limited to diseases but can apply to any adverse situation or condition of medical or technical nature.
147         */
148        MTREAT, 
149        /**
150         * Description: The source act is intended to provide palliation for the effects of the target act.
151         */
152        PALLTREAT, 
153        /**
154         * Description: The source act is intented to provide symptomatic relief for the effects of the target act.
155         */
156        SYMP, 
157        /**
158         * A pre-condition that if true should result in the source Act being executed.  The target is in typically in criterion mood.  When reported after the fact (i.e. the criterion has been met) it may be in Event mood.  A delay between the trigger and the triggered action can be specified.
159
160                        
161                           Discussion: This includes the concept of a  required act for a service or financial instrument such as an insurance plan or policy. In such cases, the trigger is the occurrence of a specific condition such as coverage limits being exceeded.
162         */
163        TRIG, 
164        /**
165         * Abstract collector for ActRelationhsip types that relate two acts by their timing.
166         */
167        _ACTRELATIONSHIPTEMPORALLYPERTAINS, 
168        /**
169         * Abstract collector for ActRelationship types that relate two acts by their approximate timing.
170         */
171        _ACTRELATIONSHIPTEMPORALLYPERTAINSAPPROXIMATES, 
172        /**
173         * A relationship in which the source act's effective time ends near the end of the target act's effective time. Near is defined separately as a time interval.
174
175                        
176                           Usage Note: Inverse code is ENS
177         */
178        ENE, 
179        /**
180         * A relationship in which the source act's effective time ends with the end of the target act's effective time.
181
182                        
183                           UsageNote: This code is reflexive.  Therefore its inverse code is itself.
184         */
185        ECW, 
186        /**
187         * A relationship in which the source act's effective time is the same as the target act's effective time.
188
189                        
190                           UsageNote: This code is reflexive.  Therefore its inverse code is itself.
191         */
192        CONCURRENT, 
193        /**
194         * The source Act starts before the start of the target Act, and ends with the target Act.
195
196                        
197                           UsageNote: Inverse code is SASECWE
198         */
199        SBSECWE, 
200        /**
201         * A relationship in which the source act's effective time ends near the start of the target act's effective time. Near is defined separately as a time interval.
202
203                        
204                           Usage Note: Inverse code is ENE
205         */
206        ENS, 
207        /**
208         * The source Act ends when the target act starts (i.e. if we say "ActOne ECWS ActTwo", it means that ActOne ends when ActTwo starts, therefore ActOne is the source and ActTwo is the target).
209
210                        
211                           UsageNote: Inverse code is SCWE
212         */
213        ECWS, 
214        /**
215         * A relationship in which the source act's effective time starts near the end of the target act's effective time. Near is defined separately as a time interval.
216
217                        
218                           Usage Note: Inverse code is SNS
219         */
220        SNE, 
221        /**
222         * The source Act starts when the target act ends (i.e. if we say "ActOne SCWE ActTwo", it means that ActOne starts when ActTwo ends, therefore ActOne is the source and ActTwo is the target).
223
224                        
225                           UsageNote: Inverse code is SBSECWS
226         */
227        SCWE, 
228        /**
229         * A relationship in which the source act's effective time starts near the start of the target act's effective time. Near is defined separately as a time interval.
230
231                        
232                           Usage Note: Inverse code is SNE
233         */
234        SNS, 
235        /**
236         * A relationship in which the source act's effective time starts with the start of the target act's effective time.
237
238                        
239                           UsageNote: This code is reflexive.  Therefore its inverse code is itself.
240         */
241        SCW, 
242        /**
243         * The source Act starts with.the target Act and ends before the end of the target Act.
244
245                        
246                           UsageNote: Inverse code is SCWSEAE
247         */
248        SCWSEBE, 
249        /**
250         * The source Act starts with the target Act, and ends after the end of the target Act.
251         */
252        SCWSEAE, 
253        /**
254         * A relationship in which the source act ends after the target act starts.
255
256                        
257                           UsageNote: Inverse code is SBE
258         */
259        EAS, 
260        /**
261         * A relationship in which the source act ends after the target act ends.
262
263                        
264                           UsageNote: Inverse code is EBE
265         */
266        EAE, 
267        /**
268         * The source Act starts after start of the target Act and ends after end of the target Act.
269
270                        
271                           UsageNote: Inverse code is SBSEBE
272         */
273        SASEAE, 
274        /**
275         * The source Act contains the end of the target Act.
276
277                        
278                           UsageNote: Inverse code is EDU
279         */
280        SBEEAE, 
281        /**
282         * The source Act start after the start of the target Act, and contains the end of the target Act.
283
284                        
285                           UsageNote: Inverse code is SBSEASEBE
286         */
287        SASSBEEAS, 
288        /**
289         * The source Act contains the time of the target Act.
290
291                        
292                           UsageNote: Inverse code is DURING
293         */
294        SBSEAE, 
295        /**
296         * The source Act starts after the start of the target Act (i.e. if we say "ActOne SAS ActTwo", it means that ActOne starts after the start of ActTwo, therefore ActOne is the source and ActTwo is the target).
297
298                        
299                           UsageNote: Inverse code is SBS
300         */
301        SAS, 
302        /**
303         * A relationship in which the source act starts after the target act ends.
304
305                        
306                           UsageNote: Inverse code is EBS
307         */
308        SAE, 
309        /**
310         * A relationship in which the source act's effective time is wholly within the target act's effective time (including end points, as defined in the act's effective times)
311
312                        
313                           UsageNote: Inverse code is SBSEAE
314         */
315        DURING, 
316        /**
317         * The source Act starts after start of the target Act, and ends with the target Act.
318
319                        
320                           UsageNote: Inverse code is SBSECWE
321         */
322        SASECWE, 
323        /**
324         * A relationship in which the source act's effective time ends after or concurrent with the start of the target act's effective time.
325
326                        
327                           Usage Note: Inverse code is EBSORECWS
328         */
329        EASORECWS, 
330        /**
331         * A relationship in which the source act's effective time ends after or concurrent with the end of the target act's effective time.
332
333                        
334                           Usage Note: Inverse code is EBEORECW
335         */
336        EAEORECW, 
337        /**
338         * The source Act is independent of the time of the target Act.
339
340                        
341                           UsageNote: This code is reflexive.  Therefore its inverse code is itself.
342         */
343        INDEPENDENT, 
344        /**
345         * A relationship in which the source act's effective time starts after or concurrent with the end of the target act's effective time.
346
347                        
348                           Usage Note: Inverse code is SBEORSCWE
349         */
350        SAEORSCWE, 
351        /**
352         * A relationship in which the source act's effective time starts after or concurrent with the start of the target act's effective time.
353
354                        
355                           Usage Note: Inverse code is SBSORSCW
356         */
357        SASORSCW, 
358        /**
359         * A relationship in which the source act's effective time starts before or concurrent with the end of the target act's effective time.
360
361                        
362                           Usage Note: Inverse code is SAEORSCWE
363         */
364        SBEORSCWE, 
365        /**
366         * A relationship in which the source act's effective time overlaps the target act's effective time in any way.
367
368                        
369                           UsageNote: This code is reflexive.  Therefore its inverse code is itself.
370         */
371        OVERLAP, 
372        /**
373         * A relationship in which the source act ends within the target act's effective time (including end points, as defined in the act's effective times)
374
375                        
376                           UsageNote: Inverse code is SBEEAE
377         */
378        EDU, 
379        /**
380         * The source Act contains the start of the target Act,  and ends before the end of the target Act.
381
382                        
383                           UsageNote: Inverse code is SASSBEEAS
384         */
385        SBSEASEBE, 
386        /**
387         * The source Act contains the start of the target Act.
388
389                        
390                           UsageNote: Inverse code is SDU
391         */
392        SBSEAS, 
393        /**
394         * A relationship in which the source act starts within the target act's effective time (including end points, as defined in the act's effective times)
395
396                        
397                           UsageNote: Inverse code is SBSEAS
398         */
399        SDU, 
400        /**
401         * The source Act starts before the end of the target Act (i.e. if we say "ActOne SBE ActTwo", it means that ActOne starts before the end of ActTwo, therefore ActOne is the source and ActTwo is the target).
402
403                        
404                           UsageNote: Inverse code is EAS
405         */
406        SBE, 
407        /**
408         * The source Act ends before the end of the target Act (i.e. if we say "ActOne EBE ActTwo", it means that ActOne ends before the end of ActTwo, therefore ActOne is the source and ActTwo is the target).
409
410                        
411                           UsageNote: Inverse code is EAE
412         */
413        EBE, 
414        /**
415         * The source Act starts before the start of the target Act, and ends before the end of the target Act.
416
417                        
418                           UsageNote: Inverse code is SASEAE
419         */
420        SBSEBE, 
421        /**
422         * A relationship in which the source act's effective time ends before or concurrent with the start of the target act's effective time.
423
424                        
425                           Usage Note: Inverse code is EASORECWS
426         */
427        EBSORECWS, 
428        /**
429         * A relationship in which the source act ends before the target act starts.
430
431                        
432                           UsageNote: Inverse code is SAE
433         */
434        EBS, 
435        /**
436         * A relationship in which the source act's effective time ends before or concurrent with the end of the target act's effective time.
437
438                        
439                           Usage Note: Inverse code is EAEORECW
440         */
441        EBEORECW, 
442        /**
443         * A relationship in which the source act's effective time starts before or concurrent with the start of the target act's effective time.
444
445                        
446                           Usage Note: Inverse code is SASORSCW
447         */
448        SBSORSCW, 
449        /**
450         * A relationship in which the source act begins before the target act begins.
451
452                        
453                           UsageNote: Inverse code is SAS
454         */
455        SBS, 
456        /**
457         * A relationship in which the target act authorizes or certifies the source act.
458         */
459        AUTH, 
460        /**
461         * Description: An assertion that an act was the cause of another act.This is stronger and more specific than the support link. The source (cause) is typically an observation, but may be any act, while the target may be any act.
462
463                        
464                           Examples:
465                        
466
467                        
468                           a growth of Staphylococcus aureus may be considered the cause of an abscess
469                           contamination of the infusion bag was deemed to be the cause of the infection that the patient experienced
470                           lack of staff on the shift was deemed to be a supporting factor (proximal factor) causing the patient safety incident where the patient fell out of bed because the  bed-sides had not been put up which caused the night patient to fall out of bed
471         */
472        CAUS, 
473        /**
474         * The target act is a component of the source act, with no semantics regarding composition or aggregation implied.
475         */
476        COMP, 
477        /**
478         * A relationship from an Act to a Control Variable.  For example, if a Device makes an Observation, this relates the Observation to its Control Variables documenting  the device's settings that influenced the observation.
479         */
480        CTRLV, 
481        /**
482         * The target Acts are aggregated by the source Act.  Target Acts may have independent existence, participate in multiple ActRelationships, and do not contribute to the meaning of the source.
483
484                        
485                           UsageNotes: This explicitly represents the conventional notion of aggregation.  The target Act is part of a collection of Acts (no implication is made of cardinality, a source of Acts may contain zero, one, or more member target Acts).
486
487                        It is expected that this will be primarily used with _ActClassRecordOrganizer, BATTERY, and LIST
488         */
489        MBR, 
490        /**
491         * A collection of sub-services as steps or subtasks performed for the source service. Services may be performed sequentially or concurrently.
492
493                        
494                           UsageNotes: Sequence of steps may be indicated by use of _ActRelationshipTemporallyPertains, as well as via  ActRelationship.sequenceNumber, ActRelationship.pauseQuantity, Target.priorityCode.
495
496                        
497                           OpenIssue: Need Additional guidelines on when each approach should be used.
498         */
499        STEP, 
500        /**
501         * The relationship that links to a Transportation Act (target) from another Act (source) indicating that the subject of the source Act entered into the source Act by means of the target Transportation act.
502         */
503        ARR, 
504        /**
505         * The relationship that links to a Transportation Act (target) from another Act (source) indicating that the subject of the source Act departed from the source Act by means of the target Transportation act.
506         */
507        DEP, 
508        /**
509         * The source Act is a composite of the target Acts. The target Acts do not have an existence independent of the source Act.
510
511                        
512                           UsageNote: In UML 1.1, this is a "composition" defined as: 
513                           "A form of aggregation with strong ownership and coincident lifetime as part of the whole. Parts with non-fixed multiplicity may be created after the composite itself, but once created they live and die with it (i.e., they share lifetimes). Such parts can also be explicitly removed before the death of the composite. Composition may be recursive."
514         */
515        PART, 
516        /**
517         * A relationship in which the source act is covered by or is under the authority of a target act.  A financial instrument such as an Invoice Element is covered by one or more specific instances of an Insurance Policy.
518         */
519        COVBY, 
520        /**
521         * Associates a derived Act with its input parameters. E.G., an anion-gap observation can be associated as being derived from given sodium-, (potassium-,), chloride-, and bicarbonate-observations. The narrative content (Act.text) of a source act is wholly machine-derived from the collection of target acts.
522         */
523        DRIV, 
524        /**
525         * Expresses an association that links two instances of the same act over time, indicating that the instance are part of the same episode, e.g. linking two condition nodes for episode of illness; linking two encounters for episode of encounter.
526         */
527        ELNK, 
528        /**
529         * Indicates that the target Act provides evidence in support of the action represented by the source Act. The target is not a 'reason' for the source act, but rather gives supporting information on why the source act is an appropriate course of action. Possible targets might be clinical trial results, journal articles, similar successful therapies, etc.
530
531                        
532                           Rationale: Provides a mechanism for conveying clinical justification for non-approved or otherwise non-traditional therapies.
533         */
534        EVID, 
535        /**
536         * Description:The source act is aggravated by the target act. (Example "chest pain" EXACBY "exercise")
537         */
538        EXACBY, 
539        /**
540         * This is the inversion of support.  Used to indicate that a given observation is explained by another observation or condition.
541         */
542        EXPL, 
543        /**
544         * the target act documents a set of circumstances (events, risks) which prevent successful completion, or degradation of quality of, the source Act.
545
546                        
547                           UsageNote: This provides the semantics to document barriers to care
548         */
549        INTF, 
550        /**
551         * Items located
552         */
553        ITEMSLOC, 
554        /**
555         * A relationship that limits or restricts the source act by the elements of the target act.  For example, an authorization may be limited by a financial amount (up to $500). Target Act must be in EVN.CRIT mood.
556         */
557        LIMIT, 
558        /**
559         * Definition: Indicates that the attributes and associations of the target act provide metadata (for example, identifiers, authorship, etc.) for the source act.
560
561                        
562                           Constraint:  Source act must have either a mood code that is not "EVN" (event) or its "isCriterion" attribute must set to "true".  Target act must be an Act with a mood code of EVN and with isCriterionInd attribute set to "true".
563         */
564        META, 
565        /**
566         * An assertion that a new observation may be the manifestation of another existing observation or action.  This assumption is attributed to the same actor who asserts the manifestation.  This is stronger and more specific than an inverted support link.  For example, an agitated appearance can be asserted to be the manifestation (effect) of a known hyperthyroxia.  This expresses that one might not have realized a symptom if it would not be a common manifestation of a known condition.  The target (cause) may be any service, while the source (manifestation) must be an observation.
567         */
568        MFST, 
569        /**
570         * Used to assign a "name" to a condition thread. Source is a condition node, target can be any service.
571         */
572        NAME, 
573        /**
574         * An observation that should follow or does actually follow as a result or consequence of a condition or action (sometimes called "post-conditional".) Target must be an observation as a goal, risk or any criterion. For complex outcomes a conjunction attribute (AND, OR, XOR) can be used.  An outcome link is often inverted to describe an outcome assessment.
575         */
576        OUTC, 
577        /**
578         * The target act is a desired outcome of the source act. Source is any act (typically an intervention). Target must be an observation in criterion mood.
579         */
580        _ACTRELATIONSIPOBJECTIVE, 
581        /**
582         * A desired state that a service action aims to maintain.  E.g., keep systolic blood pressure between 90 and 110 mm Hg.  Source is an intervention service.  Target must be an observation in criterion mood.
583         */
584        OBJC, 
585        /**
586         * A desired outcome that a service action aims to meet finally.  Source is any service (typically an intervention).  Target must be an observation in criterion mood.
587         */
588        OBJF, 
589        /**
590         * A goal that one defines given a patient's health condition.  Subsequently planned actions aim to meet that goal.  Source is an observation or condition node, target must be an observation in goal mood.
591         */
592        GOAL, 
593        /**
594         * A noteworthy undesired outcome of a patient's condition that is either likely enough to become an issue or is less likely but dangerous enough to be addressed.
595         */
596        RISK, 
597        /**
598         * This is a very unspecific relationship from one item of clinical information to another.  It does not judge about the role the pertinent information plays.
599         */
600        PERT, 
601        /**
602         * A relationship in which the target act is a predecessor instance to the source act.  Generally each of these instances is similar, but no identical.  In healthcare coverage it is used to link a claim item to a previous claim item that might have claimed for the same set of services.
603         */
604        PREV, 
605        /**
606         * A relationship in which the target act is referred to by the source act.  This permits a simple reference relationship that distinguishes between the referent and the referee.
607         */
608        REFR, 
609        /**
610         * Indicates that the source act makes use of (or will make use of) the information content of the target act.
611
612                        
613                           UsageNotes: A usage relationship only makes sense if the target act is authored and occurs independently of the source act.  Otherwise a simpler relationship such as COMP would be appropriate.
614
615                        
616                           Rationale: There is a need when defining a clinical trial protocol to indicate that the protocol makes use of other protocol or treatment specifications.  This is stronger than the assertion of "references".  References may exist without usage, and in a clinical trial protocol is common to assert both: what other specifications does this trial use and what other specifications does it merely reference.
617         */
618        USE, 
619        /**
620         * Reference ranges are essentially descriptors of a class of result values assumed to be "normal", "abnormal", or "critical."  Those can vary by sex, age, or any other criterion. Source and target are observations, the target is in criterion mood.  This link type can act as a trigger in case of alarms being triggered by critical results.
621         */
622        REFV, 
623        /**
624         * Description:The source act is wholly or partially alleviated by the target act. (Example "chest pain" RELVBY "sublingual nitroglycerin administration")
625         */
626        RELVBY, 
627        /**
628         * An act relationship indicating that the source act follows the target act. The source act should in principle represent the same kind of act as the target. Source and target need not have the same mood code (mood will often differ). The target of a sequel is called antecedent. Examples for sequel relationships are: revision, transformation, derivation from a prototype (as a specialization is a derivation of a generalization), followup, realization, instantiation.
629         */
630        SEQL, 
631        /**
632         * An addendum (source) to an existing service object (target), containing supplemental information.  The addendum is itself an original service object linked to the supplemented service object.  The supplemented service object remains in place and its content and status are unaltered.
633         */
634        APND, 
635        /**
636         * Indicates that the target observation(s) provide an initial reference for the source observation or observation group.
637
638                        
639                           UsageConstraints: Both source and target must be Observations or specializations thereof.
640         */
641        BSLN, 
642        /**
643         * Description:The source act complies with, adheres to, conforms to, or is permissible under (in whole or in part) the policy, contract, agreement, law, conformance criteria, certification guidelines or requirement conveyed by the target act.
644
645                        Examples for compliance relationships are: audits of adherence with a security policy, certificate of conformance to system certification requirements, or consent directive in compliance with or permissible under a privacy policy.
646         */
647        COMPLY, 
648        /**
649         * The source act documents the target act.
650         */
651        DOC, 
652        /**
653         * The source act fulfills (in whole or in part) the target act. Source act must be in a mood equal or more actual than the target act.
654         */
655        FLFS, 
656        /**
657         * The source act is a single occurrence of a repeatable target act. The source and target act can be in any mood on the "completion track" but the source act must be as far as or further along the track than the target act (i.e., the occurrence of an intent can be an event but not vice versa).
658         */
659        OCCR, 
660        /**
661         * Relates either an appointment request or an appointment to the order for the service being scheduled.
662         */
663        OREF, 
664        /**
665         * Associates a specific time (and associated resources) with a scheduling request or other intent.
666         */
667        SCH, 
668        /**
669         * The generalization relationship can be used to express categorical knowledge about services (e.g., amilorid, triamterene, and spironolactone have the common generalization potassium sparing diuretic).
670         */
671        GEN, 
672        /**
673         * A goal-evaluation links an observation (intent or actual) to a goal to indicate that the observation evaluates the goal. Given the goal and the observation, a "goal distance" (e.g., goal to observation) can be "calculated" and need not be sent explicitly.
674         */
675        GEVL, 
676        /**
677         * Used to capture the link between a potential service ("master" or plan) and an actual service, where the actual service instantiates the potential service. The instantiation may override the master's defaults.
678         */
679        INST, 
680        /**
681         * Definition: Used to link a newer version or 'snapshot' of a business object (source) to an older version or 'snapshot' of the same business object (target).
682
683                        
684                           Usage:The identifier of the Act should be the same for both source and target. If the identifiers are distinct, RPLC should be used instead.
685
686                        Name from source to target = "modifiesPrior"
687
688                        Name from target to source = "modifiesByNew"
689         */
690        MOD, 
691        /**
692         * A trigger-match links an actual service (e.g., an observation or procedure that took place) with a service in criterion mood.  For example if the trigger is "observation of pain" and pain is actually observed, and if that pain-observation caused the trigger to fire, that pain-observation can be linked with the trigger.
693         */
694        MTCH, 
695        /**
696         * A relationship between a source Act that provides more detailed properties to the target Act.
697
698                        The source act thus is a specialization of the target act, but instead of mentioning all the inherited properties it only mentions new property bindings or refinements.
699
700                        The typical use case is to specify certain alternative variants of one kind of Act. The priorityNumber attribute is used to weigh refinements as preferred over other alternative refinements.
701
702                        Example: several routing options for a drug are specified as one SubstanceAdministration for the general treatment with attached refinements for the various routing options.
703         */
704        OPTN, 
705        /**
706         * Description:A relationship in which the target act is carried out to determine whether an effect attributed to the source act can be recreated.
707         */
708        RCHAL, 
709        /**
710         * A relationship between a source Act that seeks to reverse or undo the action of the prior target Act.
711
712                        Example: A posted financial transaction (e.g., a debit transaction) was applied in error and must be reversed (e.g., by a credit transaction) the credit transaction is identified as an undo (or reversal) of the prior target transaction.
713
714                        Constraints: the "completion track" mood of the target Act must be equally or more "actual" than the source act. I.e., when the target act is EVN the source act can be EVN, or any INT. If the target act is INT, the source act can be INT.
715         */
716        REV, 
717        /**
718         * A replacement source act replaces an existing target act. The state of the target act being replaced becomes obselete, but the act is typically still retained in the system for historical reference.  The source and target must be of the same type.
719         */
720        RPLC, 
721        /**
722         * Definition:  A new act that carries forward the intention of the original act, but does not completely replace it.  The status of the predecessor act must be 'completed'.  The original act is the target act and the successor is the source act.
723         */
724        SUCC, 
725        /**
726         * A condition thread relationship specifically links condition nodes together to form a condition thread. The source is the new condition node and the target links to the most recent node of the existing condition thread.
727         */
728        UPDT, 
729        /**
730         * The source is an excerpt from the target.
731         */
732        XCRPT, 
733        /**
734         * The source is a direct quote from the target.
735         */
736        VRXCRPT, 
737        /**
738         * Used when the target Act is a transformation of the source Act. (For instance, used to show that a CDA document is a transformation of a DICOM SR document.)
739         */
740        XFRM, 
741        /**
742         * Used to indicate that an existing service is suggesting evidence for a new observation. The assumption of support is attributed to the same actor who asserts the observation. Source must be an observation, target may be any service  (e.g., to indicate a status post).
743         */
744        SPRT, 
745        /**
746         * A specialization of "has support" (SPRT), used to relate a secondary observation to a Region of Interest on a multidimensional observation, if the ROI specifies the true boundaries of the secondary observation as opposed to only marking the approximate area.  For example, if the start and end of an ST elevation episode is visible in an EKG, this relation would indicate the ROI bounds the  "ST elevation" observation -- the ROI defines the true beginning and ending of the episode.  Conversely, if a ROI simply contains ST elevation, but it does not define the bounds (start and end) of the episode, the more general "has support" relation is used.  Likewise, if a ROI on an image defines the true bounds of a "1st degree burn", the relation "has bounded support" is used; but if the ROI only points to the approximate area of the burn, the general "has support" relation is used.
747         */
748        SPRTBND, 
749        /**
750         * Relates an Act to its subject Act that the first Act is primarily concerned with.
751
752                        Examples
753
754                        
755                           
756                              The first Act may be a ControlAct manipulating the subject Act 
757
758                           
759                           
760                              The first act is a region of interest (ROI) that defines a region within the subject Act.
761
762                           
763                           
764                              The first act is a reporting or notification Act, that echos the subject Act for a specific new purpose.
765
766                           
767                        
768                        Constraints
769
770                        An Act may have multiple subject acts.
771
772                        Rationale
773
774                        The ActRelationshipType "has subject" is similar to the ParticipationType "subject", Acts that primarily operate on physical subjects use the Participation, those Acts that primarily operate on other Acts (other information) use the ActRelationship.
775         */
776        SUBJ, 
777        /**
778         * The target observation qualifies (refines) the semantics of the source observation.
779
780                        
781                           UsageNote: This is not intended to replace concept refinement and qualification via vocabulary.  It is used when there are multiple components which together provide the complete understanding of the source Act.
782         */
783        QUALF, 
784        /**
785         * An act that contains summary values for a list or set of subordinate acts.  For example, a summary of transactions for a particular accounting period.
786         */
787        SUMM, 
788        /**
789         * Description:Indicates that the target Act represents the result of the source observation Act.
790
791                        
792                           FormalConstraint: Source Act must be an Observation or specialization there-of. Source Act must not have the value attribute specified
793
794                        
795                           UsageNote: This relationship allows the result of an observation to be fully expressed as RIM acts as opposed to being embedded in the value attribute.  For example, sending a Document act as the result of an imaging observation, sending a list of Procedures and/or other acts as the result of a medical history observation.
796
797                        The valueNegationInd attribute on the source Act has the same semantics of "negated finding" when it applies to the target of a VALUE ActRelationship as it does to the value attribute.  On the other hand, if the ActRelationship.negationInd is true for a VALUE ActRelationship, that means the specified observation does not have the indicated value but does not imply a negated finding.  Because the semantics are extremely close, it is recommended that Observation.valueNegationInd be used, not ActRelationship.negationInd.
798
799                        
800                           OpenIssue: The implications of negationInd on ActRelationship and the valueNegationind on Observation.
801         */
802        VALUE, 
803        /**
804         * curative indication
805         */
806        CURE, 
807        /**
808         * adjunct curative indication
809         */
810        CURE_ADJ, 
811        /**
812         * adjunct mitigation
813         */
814        MTGT_ADJ, 
815        /**
816         * null
817         */
818        RACT, 
819        /**
820         * null
821         */
822        SUGG, 
823        /**
824         * added to help the parsers
825         */
826        NULL;
827        public static V3ActRelationshipType fromCode(String codeString) throws FHIRException {
828            if (codeString == null || "".equals(codeString))
829                return null;
830        if ("ART".equals(codeString))
831          return ART;
832        if ("_ActClassTemporallyPertains".equals(codeString))
833          return _ACTCLASSTEMPORALLYPERTAINS;
834        if ("_ActRelationshipAccounting".equals(codeString))
835          return _ACTRELATIONSHIPACCOUNTING;
836        if ("_ActRelationshipCostTracking".equals(codeString))
837          return _ACTRELATIONSHIPCOSTTRACKING;
838        if ("CHRG".equals(codeString))
839          return CHRG;
840        if ("COST".equals(codeString))
841          return COST;
842        if ("_ActRelationshipPosting".equals(codeString))
843          return _ACTRELATIONSHIPPOSTING;
844        if ("CREDIT".equals(codeString))
845          return CREDIT;
846        if ("DEBIT".equals(codeString))
847          return DEBIT;
848        if ("_ActRelationshipConditional".equals(codeString))
849          return _ACTRELATIONSHIPCONDITIONAL;
850        if ("CIND".equals(codeString))
851          return CIND;
852        if ("PRCN".equals(codeString))
853          return PRCN;
854        if ("RSON".equals(codeString))
855          return RSON;
856        if ("BLOCK".equals(codeString))
857          return BLOCK;
858        if ("DIAG".equals(codeString))
859          return DIAG;
860        if ("IMM".equals(codeString))
861          return IMM;
862        if ("ACTIMM".equals(codeString))
863          return ACTIMM;
864        if ("PASSIMM".equals(codeString))
865          return PASSIMM;
866        if ("MITGT".equals(codeString))
867          return MITGT;
868        if ("RCVY".equals(codeString))
869          return RCVY;
870        if ("PRYLX".equals(codeString))
871          return PRYLX;
872        if ("TREAT".equals(codeString))
873          return TREAT;
874        if ("ADJUNCT".equals(codeString))
875          return ADJUNCT;
876        if ("MTREAT".equals(codeString))
877          return MTREAT;
878        if ("PALLTREAT".equals(codeString))
879          return PALLTREAT;
880        if ("SYMP".equals(codeString))
881          return SYMP;
882        if ("TRIG".equals(codeString))
883          return TRIG;
884        if ("_ActRelationshipTemporallyPertains".equals(codeString))
885          return _ACTRELATIONSHIPTEMPORALLYPERTAINS;
886        if ("_ActRelationshipTemporallyPertainsApproximates".equals(codeString))
887          return _ACTRELATIONSHIPTEMPORALLYPERTAINSAPPROXIMATES;
888        if ("ENE".equals(codeString))
889          return ENE;
890        if ("ECW".equals(codeString))
891          return ECW;
892        if ("CONCURRENT".equals(codeString))
893          return CONCURRENT;
894        if ("SBSECWE".equals(codeString))
895          return SBSECWE;
896        if ("ENS".equals(codeString))
897          return ENS;
898        if ("ECWS".equals(codeString))
899          return ECWS;
900        if ("SNE".equals(codeString))
901          return SNE;
902        if ("SCWE".equals(codeString))
903          return SCWE;
904        if ("SNS".equals(codeString))
905          return SNS;
906        if ("SCW".equals(codeString))
907          return SCW;
908        if ("SCWSEBE".equals(codeString))
909          return SCWSEBE;
910        if ("SCWSEAE".equals(codeString))
911          return SCWSEAE;
912        if ("EAS".equals(codeString))
913          return EAS;
914        if ("EAE".equals(codeString))
915          return EAE;
916        if ("SASEAE".equals(codeString))
917          return SASEAE;
918        if ("SBEEAE".equals(codeString))
919          return SBEEAE;
920        if ("SASSBEEAS".equals(codeString))
921          return SASSBEEAS;
922        if ("SBSEAE".equals(codeString))
923          return SBSEAE;
924        if ("SAS".equals(codeString))
925          return SAS;
926        if ("SAE".equals(codeString))
927          return SAE;
928        if ("DURING".equals(codeString))
929          return DURING;
930        if ("SASECWE".equals(codeString))
931          return SASECWE;
932        if ("EASORECWS".equals(codeString))
933          return EASORECWS;
934        if ("EAEORECW".equals(codeString))
935          return EAEORECW;
936        if ("INDEPENDENT".equals(codeString))
937          return INDEPENDENT;
938        if ("SAEORSCWE".equals(codeString))
939          return SAEORSCWE;
940        if ("SASORSCW".equals(codeString))
941          return SASORSCW;
942        if ("SBEORSCWE".equals(codeString))
943          return SBEORSCWE;
944        if ("OVERLAP".equals(codeString))
945          return OVERLAP;
946        if ("EDU".equals(codeString))
947          return EDU;
948        if ("SBSEASEBE".equals(codeString))
949          return SBSEASEBE;
950        if ("SBSEAS".equals(codeString))
951          return SBSEAS;
952        if ("SDU".equals(codeString))
953          return SDU;
954        if ("SBE".equals(codeString))
955          return SBE;
956        if ("EBE".equals(codeString))
957          return EBE;
958        if ("SBSEBE".equals(codeString))
959          return SBSEBE;
960        if ("EBSORECWS".equals(codeString))
961          return EBSORECWS;
962        if ("EBS".equals(codeString))
963          return EBS;
964        if ("EBEORECW".equals(codeString))
965          return EBEORECW;
966        if ("SBSORSCW".equals(codeString))
967          return SBSORSCW;
968        if ("SBS".equals(codeString))
969          return SBS;
970        if ("AUTH".equals(codeString))
971          return AUTH;
972        if ("CAUS".equals(codeString))
973          return CAUS;
974        if ("COMP".equals(codeString))
975          return COMP;
976        if ("CTRLV".equals(codeString))
977          return CTRLV;
978        if ("MBR".equals(codeString))
979          return MBR;
980        if ("STEP".equals(codeString))
981          return STEP;
982        if ("ARR".equals(codeString))
983          return ARR;
984        if ("DEP".equals(codeString))
985          return DEP;
986        if ("PART".equals(codeString))
987          return PART;
988        if ("COVBY".equals(codeString))
989          return COVBY;
990        if ("DRIV".equals(codeString))
991          return DRIV;
992        if ("ELNK".equals(codeString))
993          return ELNK;
994        if ("EVID".equals(codeString))
995          return EVID;
996        if ("EXACBY".equals(codeString))
997          return EXACBY;
998        if ("EXPL".equals(codeString))
999          return EXPL;
1000        if ("INTF".equals(codeString))
1001          return INTF;
1002        if ("ITEMSLOC".equals(codeString))
1003          return ITEMSLOC;
1004        if ("LIMIT".equals(codeString))
1005          return LIMIT;
1006        if ("META".equals(codeString))
1007          return META;
1008        if ("MFST".equals(codeString))
1009          return MFST;
1010        if ("NAME".equals(codeString))
1011          return NAME;
1012        if ("OUTC".equals(codeString))
1013          return OUTC;
1014        if ("_ActRelationsipObjective".equals(codeString))
1015          return _ACTRELATIONSIPOBJECTIVE;
1016        if ("OBJC".equals(codeString))
1017          return OBJC;
1018        if ("OBJF".equals(codeString))
1019          return OBJF;
1020        if ("GOAL".equals(codeString))
1021          return GOAL;
1022        if ("RISK".equals(codeString))
1023          return RISK;
1024        if ("PERT".equals(codeString))
1025          return PERT;
1026        if ("PREV".equals(codeString))
1027          return PREV;
1028        if ("REFR".equals(codeString))
1029          return REFR;
1030        if ("USE".equals(codeString))
1031          return USE;
1032        if ("REFV".equals(codeString))
1033          return REFV;
1034        if ("RELVBY".equals(codeString))
1035          return RELVBY;
1036        if ("SEQL".equals(codeString))
1037          return SEQL;
1038        if ("APND".equals(codeString))
1039          return APND;
1040        if ("BSLN".equals(codeString))
1041          return BSLN;
1042        if ("COMPLY".equals(codeString))
1043          return COMPLY;
1044        if ("DOC".equals(codeString))
1045          return DOC;
1046        if ("FLFS".equals(codeString))
1047          return FLFS;
1048        if ("OCCR".equals(codeString))
1049          return OCCR;
1050        if ("OREF".equals(codeString))
1051          return OREF;
1052        if ("SCH".equals(codeString))
1053          return SCH;
1054        if ("GEN".equals(codeString))
1055          return GEN;
1056        if ("GEVL".equals(codeString))
1057          return GEVL;
1058        if ("INST".equals(codeString))
1059          return INST;
1060        if ("MOD".equals(codeString))
1061          return MOD;
1062        if ("MTCH".equals(codeString))
1063          return MTCH;
1064        if ("OPTN".equals(codeString))
1065          return OPTN;
1066        if ("RCHAL".equals(codeString))
1067          return RCHAL;
1068        if ("REV".equals(codeString))
1069          return REV;
1070        if ("RPLC".equals(codeString))
1071          return RPLC;
1072        if ("SUCC".equals(codeString))
1073          return SUCC;
1074        if ("UPDT".equals(codeString))
1075          return UPDT;
1076        if ("XCRPT".equals(codeString))
1077          return XCRPT;
1078        if ("VRXCRPT".equals(codeString))
1079          return VRXCRPT;
1080        if ("XFRM".equals(codeString))
1081          return XFRM;
1082        if ("SPRT".equals(codeString))
1083          return SPRT;
1084        if ("SPRTBND".equals(codeString))
1085          return SPRTBND;
1086        if ("SUBJ".equals(codeString))
1087          return SUBJ;
1088        if ("QUALF".equals(codeString))
1089          return QUALF;
1090        if ("SUMM".equals(codeString))
1091          return SUMM;
1092        if ("VALUE".equals(codeString))
1093          return VALUE;
1094        if ("CURE".equals(codeString))
1095          return CURE;
1096        if ("CURE.ADJ".equals(codeString))
1097          return CURE_ADJ;
1098        if ("MTGT.ADJ".equals(codeString))
1099          return MTGT_ADJ;
1100        if ("RACT".equals(codeString))
1101          return RACT;
1102        if ("SUGG".equals(codeString))
1103          return SUGG;
1104        throw new FHIRException("Unknown V3ActRelationshipType code '"+codeString+"'");
1105        }
1106        public String toCode() {
1107          switch (this) {
1108            case ART: return "ART";
1109            case _ACTCLASSTEMPORALLYPERTAINS: return "_ActClassTemporallyPertains";
1110            case _ACTRELATIONSHIPACCOUNTING: return "_ActRelationshipAccounting";
1111            case _ACTRELATIONSHIPCOSTTRACKING: return "_ActRelationshipCostTracking";
1112            case CHRG: return "CHRG";
1113            case COST: return "COST";
1114            case _ACTRELATIONSHIPPOSTING: return "_ActRelationshipPosting";
1115            case CREDIT: return "CREDIT";
1116            case DEBIT: return "DEBIT";
1117            case _ACTRELATIONSHIPCONDITIONAL: return "_ActRelationshipConditional";
1118            case CIND: return "CIND";
1119            case PRCN: return "PRCN";
1120            case RSON: return "RSON";
1121            case BLOCK: return "BLOCK";
1122            case DIAG: return "DIAG";
1123            case IMM: return "IMM";
1124            case ACTIMM: return "ACTIMM";
1125            case PASSIMM: return "PASSIMM";
1126            case MITGT: return "MITGT";
1127            case RCVY: return "RCVY";
1128            case PRYLX: return "PRYLX";
1129            case TREAT: return "TREAT";
1130            case ADJUNCT: return "ADJUNCT";
1131            case MTREAT: return "MTREAT";
1132            case PALLTREAT: return "PALLTREAT";
1133            case SYMP: return "SYMP";
1134            case TRIG: return "TRIG";
1135            case _ACTRELATIONSHIPTEMPORALLYPERTAINS: return "_ActRelationshipTemporallyPertains";
1136            case _ACTRELATIONSHIPTEMPORALLYPERTAINSAPPROXIMATES: return "_ActRelationshipTemporallyPertainsApproximates";
1137            case ENE: return "ENE";
1138            case ECW: return "ECW";
1139            case CONCURRENT: return "CONCURRENT";
1140            case SBSECWE: return "SBSECWE";
1141            case ENS: return "ENS";
1142            case ECWS: return "ECWS";
1143            case SNE: return "SNE";
1144            case SCWE: return "SCWE";
1145            case SNS: return "SNS";
1146            case SCW: return "SCW";
1147            case SCWSEBE: return "SCWSEBE";
1148            case SCWSEAE: return "SCWSEAE";
1149            case EAS: return "EAS";
1150            case EAE: return "EAE";
1151            case SASEAE: return "SASEAE";
1152            case SBEEAE: return "SBEEAE";
1153            case SASSBEEAS: return "SASSBEEAS";
1154            case SBSEAE: return "SBSEAE";
1155            case SAS: return "SAS";
1156            case SAE: return "SAE";
1157            case DURING: return "DURING";
1158            case SASECWE: return "SASECWE";
1159            case EASORECWS: return "EASORECWS";
1160            case EAEORECW: return "EAEORECW";
1161            case INDEPENDENT: return "INDEPENDENT";
1162            case SAEORSCWE: return "SAEORSCWE";
1163            case SASORSCW: return "SASORSCW";
1164            case SBEORSCWE: return "SBEORSCWE";
1165            case OVERLAP: return "OVERLAP";
1166            case EDU: return "EDU";
1167            case SBSEASEBE: return "SBSEASEBE";
1168            case SBSEAS: return "SBSEAS";
1169            case SDU: return "SDU";
1170            case SBE: return "SBE";
1171            case EBE: return "EBE";
1172            case SBSEBE: return "SBSEBE";
1173            case EBSORECWS: return "EBSORECWS";
1174            case EBS: return "EBS";
1175            case EBEORECW: return "EBEORECW";
1176            case SBSORSCW: return "SBSORSCW";
1177            case SBS: return "SBS";
1178            case AUTH: return "AUTH";
1179            case CAUS: return "CAUS";
1180            case COMP: return "COMP";
1181            case CTRLV: return "CTRLV";
1182            case MBR: return "MBR";
1183            case STEP: return "STEP";
1184            case ARR: return "ARR";
1185            case DEP: return "DEP";
1186            case PART: return "PART";
1187            case COVBY: return "COVBY";
1188            case DRIV: return "DRIV";
1189            case ELNK: return "ELNK";
1190            case EVID: return "EVID";
1191            case EXACBY: return "EXACBY";
1192            case EXPL: return "EXPL";
1193            case INTF: return "INTF";
1194            case ITEMSLOC: return "ITEMSLOC";
1195            case LIMIT: return "LIMIT";
1196            case META: return "META";
1197            case MFST: return "MFST";
1198            case NAME: return "NAME";
1199            case OUTC: return "OUTC";
1200            case _ACTRELATIONSIPOBJECTIVE: return "_ActRelationsipObjective";
1201            case OBJC: return "OBJC";
1202            case OBJF: return "OBJF";
1203            case GOAL: return "GOAL";
1204            case RISK: return "RISK";
1205            case PERT: return "PERT";
1206            case PREV: return "PREV";
1207            case REFR: return "REFR";
1208            case USE: return "USE";
1209            case REFV: return "REFV";
1210            case RELVBY: return "RELVBY";
1211            case SEQL: return "SEQL";
1212            case APND: return "APND";
1213            case BSLN: return "BSLN";
1214            case COMPLY: return "COMPLY";
1215            case DOC: return "DOC";
1216            case FLFS: return "FLFS";
1217            case OCCR: return "OCCR";
1218            case OREF: return "OREF";
1219            case SCH: return "SCH";
1220            case GEN: return "GEN";
1221            case GEVL: return "GEVL";
1222            case INST: return "INST";
1223            case MOD: return "MOD";
1224            case MTCH: return "MTCH";
1225            case OPTN: return "OPTN";
1226            case RCHAL: return "RCHAL";
1227            case REV: return "REV";
1228            case RPLC: return "RPLC";
1229            case SUCC: return "SUCC";
1230            case UPDT: return "UPDT";
1231            case XCRPT: return "XCRPT";
1232            case VRXCRPT: return "VRXCRPT";
1233            case XFRM: return "XFRM";
1234            case SPRT: return "SPRT";
1235            case SPRTBND: return "SPRTBND";
1236            case SUBJ: return "SUBJ";
1237            case QUALF: return "QUALF";
1238            case SUMM: return "SUMM";
1239            case VALUE: return "VALUE";
1240            case CURE: return "CURE";
1241            case CURE_ADJ: return "CURE.ADJ";
1242            case MTGT_ADJ: return "MTGT.ADJ";
1243            case RACT: return "RACT";
1244            case SUGG: return "SUGG";
1245            default: return "?";
1246          }
1247        }
1248        public String getSystem() {
1249          return "http://terminology.hl7.org/CodeSystem/v3-ActRelationshipType";
1250        }
1251        public String getDefinition() {
1252          switch (this) {
1253            case ART: return "Description: A directed association between a source Act and a target Act.\r\n\n                        \n                           Usage Note: This code should never be transmitted in an instance as the value of ActRelationship.typeCode (attribute)";
1254            case _ACTCLASSTEMPORALLYPERTAINS: return "ActClassTemporallyPertains";
1255            case _ACTRELATIONSHIPACCOUNTING: return "Codes that describe the relationship between an Act and a financial instrument such as a financial transaction, account or invoice element.";
1256            case _ACTRELATIONSHIPCOSTTRACKING: return "Expresses values for describing the relationship relationship between an InvoiceElement or InvoiceElementGroup and a billable act.";
1257            case CHRG: return "A relationship that provides an ability to associate a financial transaction (target) as a charge to a clinical act (source).  A clinical act may have a charge associated with the execution or delivery of the service.\r\n\n                        The financial transaction will define the charge (bill) for delivery or performance of the service.\r\n\n                        Charges and costs are distinct terms.  A charge defines what is charged or billed to another organization or entity within an organization.  The cost defines what it costs an organization to perform or deliver a service or product.";
1258            case COST: return "A relationship that provides an ability to associate a financial transaction (target) as a cost to a clinical act (source).  A clinical act may have an inherit cost associated with the execution or delivery of the service.\r\n\n                        The financial transaction will define the cost of delivery or performance of the service.\r\n\n                        Charges and costs are distinct terms.  A charge defines what is charged or billed to another organization or entity within an organization.  The cost defines what it costs an organization to perform or deliver a service or product.";
1259            case _ACTRELATIONSHIPPOSTING: return "Expresses values for describing the relationship between a FinancialTransaction and an Account.";
1260            case CREDIT: return "A credit relationship ties a financial transaction (target) to an account (source). A credit, once applied (posted), may have either a positive or negative effect on the account balance, depending on the type of account. An asset account credit will decrease the account balance. A non-asset account credit will decrease the account balance.";
1261            case DEBIT: return "A debit relationship ties a financial transaction (target) to an account (source).  A debit, once applied (posted), may have either a positive or negative effect on the account balance, depending on the type of account.  An asset account debit will increase the account balance.  A non-asset account debit will decrease the account balance.";
1262            case _ACTRELATIONSHIPCONDITIONAL: return "Specifies under what circumstances (target Act) the source-Act may, must, must not or has occurred";
1263            case CIND: return "A contraindication is just a negation of a reason, i.e. it gives a condition under which the action is not to be done. Both, source and target can be any kind of service; target service is in criterion mood. How the strength of a contraindication is expressed (e.g., relative, absolute) is left as an open issue. The priorityNumber attribute could be used.";
1264            case PRCN: return "A requirement to be true before a service is performed. The target can be any service in criterion mood.  For multiple pre-conditions a conjunction attribute (AND, OR, XOR) is applicable.";
1265            case RSON: return "Description: The reason or rationale for a service. A reason link is weaker than a trigger, it only suggests that some service may be or might have been a reason for some action, but not that this reason requires/required the action to be taken. Also, as opposed to the trigger, there is no strong timely relation between the reason and the action.  As well as providing various types of information about the rationale for a service, the RSON act relationship is routinely used between a SBADM act and an OBS act to describe the indication for use of a medication.  Child concepts may be used to describe types of indication. \r\n\n                        \n                           Discussion: In prior releases, the code \"SUGG\" (suggests) was expressed as \"an inversion of the reason link.\" That code has been retired in favor of the inversion indicator that is an attribute of ActRelationship.";
1266            case BLOCK: return "Definition: The source act is performed to block the effects of the target act.  This act relationship should be used when describing near miss type incidents where potential harm could have occurred, but the action described in the source act blocked the potential harmful effects of the incident actually occurring.";
1267            case DIAG: return "Description: The source act is intended to help establish the presence of a (an adverse) situation described by the target act. This is not limited to diseases but can apply to any adverse situation or condition of medical or technical nature.";
1268            case IMM: return "Description: The source act is intented to provide immunity against the effects of the target act (the target act describes an infectious disease)";
1269            case ACTIMM: return "Description: The source act is intended to provide active immunity against the effects of the target act (the target act describes an infectious disease)";
1270            case PASSIMM: return "Description: The source act is intended to provide passive immunity against the effects of the target act (the target act describes an infectious disease).";
1271            case MITGT: return "The source act removes or lessens the occurrence or effect of the target act.";
1272            case RCVY: return "Definition: The source act is performed to recover from the effects of the target act.";
1273            case PRYLX: return "Description: The source act is intended to reduce the risk of of an adverse situation to emerge as described by the target act. This is not limited to diseases but can apply to any adverse situation or condition of medical or technical nature.";
1274            case TREAT: return "Description: The source act is intended to improve a pre-existing adverse situation described by the target act. This is not limited to diseases but can apply to any adverse situation or condition of medical or technical nature.";
1275            case ADJUNCT: return "Description: The source act is intended to offer an additional treatment for the management or cure of a pre-existing adverse situation described by the target act. This is not limited to diseases but can apply to any adverse situation or condition of medical or technical nature.  It is not a requirement that the non-adjunctive treatment is explicitly specified.";
1276            case MTREAT: return "Description: The source act is intended to provide long term maintenance improvement or management of a pre-existing adverse situation described by the target act. This is not limited to diseases but can apply to any adverse situation or condition of medical or technical nature.";
1277            case PALLTREAT: return "Description: The source act is intended to provide palliation for the effects of the target act.";
1278            case SYMP: return "Description: The source act is intented to provide symptomatic relief for the effects of the target act.";
1279            case TRIG: return "A pre-condition that if true should result in the source Act being executed.  The target is in typically in criterion mood.  When reported after the fact (i.e. the criterion has been met) it may be in Event mood.  A delay between the trigger and the triggered action can be specified.\r\n\n                        \n                           Discussion: This includes the concept of a  required act for a service or financial instrument such as an insurance plan or policy. In such cases, the trigger is the occurrence of a specific condition such as coverage limits being exceeded.";
1280            case _ACTRELATIONSHIPTEMPORALLYPERTAINS: return "Abstract collector for ActRelationhsip types that relate two acts by their timing.";
1281            case _ACTRELATIONSHIPTEMPORALLYPERTAINSAPPROXIMATES: return "Abstract collector for ActRelationship types that relate two acts by their approximate timing.";
1282            case ENE: return "A relationship in which the source act's effective time ends near the end of the target act's effective time. Near is defined separately as a time interval.\r\n\n                        \n                           Usage Note: Inverse code is ENS";
1283            case ECW: return "A relationship in which the source act's effective time ends with the end of the target act's effective time.\r\n\n                        \n                           UsageNote: This code is reflexive.  Therefore its inverse code is itself.";
1284            case CONCURRENT: return "A relationship in which the source act's effective time is the same as the target act's effective time.\r\n\n                        \n                           UsageNote: This code is reflexive.  Therefore its inverse code is itself.";
1285            case SBSECWE: return "The source Act starts before the start of the target Act, and ends with the target Act.\r\n\n                        \n                           UsageNote: Inverse code is SASECWE";
1286            case ENS: return "A relationship in which the source act's effective time ends near the start of the target act's effective time. Near is defined separately as a time interval.\r\n\n                        \n                           Usage Note: Inverse code is ENE";
1287            case ECWS: return "The source Act ends when the target act starts (i.e. if we say \"ActOne ECWS ActTwo\", it means that ActOne ends when ActTwo starts, therefore ActOne is the source and ActTwo is the target).\r\n\n                        \n                           UsageNote: Inverse code is SCWE";
1288            case SNE: return "A relationship in which the source act's effective time starts near the end of the target act's effective time. Near is defined separately as a time interval.\r\n\n                        \n                           Usage Note: Inverse code is SNS";
1289            case SCWE: return "The source Act starts when the target act ends (i.e. if we say \"ActOne SCWE ActTwo\", it means that ActOne starts when ActTwo ends, therefore ActOne is the source and ActTwo is the target).\r\n\n                        \n                           UsageNote: Inverse code is SBSECWS";
1290            case SNS: return "A relationship in which the source act's effective time starts near the start of the target act's effective time. Near is defined separately as a time interval.\r\n\n                        \n                           Usage Note: Inverse code is SNE";
1291            case SCW: return "A relationship in which the source act's effective time starts with the start of the target act's effective time.\r\n\n                        \n                           UsageNote: This code is reflexive.  Therefore its inverse code is itself.";
1292            case SCWSEBE: return "The source Act starts with.the target Act and ends before the end of the target Act.\r\n\n                        \n                           UsageNote: Inverse code is SCWSEAE";
1293            case SCWSEAE: return "The source Act starts with the target Act, and ends after the end of the target Act.";
1294            case EAS: return "A relationship in which the source act ends after the target act starts.\r\n\n                        \n                           UsageNote: Inverse code is SBE";
1295            case EAE: return "A relationship in which the source act ends after the target act ends.\r\n\n                        \n                           UsageNote: Inverse code is EBE";
1296            case SASEAE: return "The source Act starts after start of the target Act and ends after end of the target Act.\r\n\n                        \n                           UsageNote: Inverse code is SBSEBE";
1297            case SBEEAE: return "The source Act contains the end of the target Act.\r\n\n                        \n                           UsageNote: Inverse code is EDU";
1298            case SASSBEEAS: return "The source Act start after the start of the target Act, and contains the end of the target Act.\r\n\n                        \n                           UsageNote: Inverse code is SBSEASEBE";
1299            case SBSEAE: return "The source Act contains the time of the target Act.\r\n\n                        \n                           UsageNote: Inverse code is DURING";
1300            case SAS: return "The source Act starts after the start of the target Act (i.e. if we say \"ActOne SAS ActTwo\", it means that ActOne starts after the start of ActTwo, therefore ActOne is the source and ActTwo is the target).\r\n\n                        \n                           UsageNote: Inverse code is SBS";
1301            case SAE: return "A relationship in which the source act starts after the target act ends.\r\n\n                        \n                           UsageNote: Inverse code is EBS";
1302            case DURING: return "A relationship in which the source act's effective time is wholly within the target act's effective time (including end points, as defined in the act's effective times)\r\n\n                        \n                           UsageNote: Inverse code is SBSEAE";
1303            case SASECWE: return "The source Act starts after start of the target Act, and ends with the target Act.\r\n\n                        \n                           UsageNote: Inverse code is SBSECWE";
1304            case EASORECWS: return "A relationship in which the source act's effective time ends after or concurrent with the start of the target act's effective time.\r\n\n                        \n                           Usage Note: Inverse code is EBSORECWS";
1305            case EAEORECW: return "A relationship in which the source act's effective time ends after or concurrent with the end of the target act's effective time.\r\n\n                        \n                           Usage Note: Inverse code is EBEORECW";
1306            case INDEPENDENT: return "The source Act is independent of the time of the target Act.\r\n\n                        \n                           UsageNote: This code is reflexive.  Therefore its inverse code is itself.";
1307            case SAEORSCWE: return "A relationship in which the source act's effective time starts after or concurrent with the end of the target act's effective time.\r\n\n                        \n                           Usage Note: Inverse code is SBEORSCWE";
1308            case SASORSCW: return "A relationship in which the source act's effective time starts after or concurrent with the start of the target act's effective time.\r\n\n                        \n                           Usage Note: Inverse code is SBSORSCW";
1309            case SBEORSCWE: return "A relationship in which the source act's effective time starts before or concurrent with the end of the target act's effective time.\r\n\n                        \n                           Usage Note: Inverse code is SAEORSCWE";
1310            case OVERLAP: return "A relationship in which the source act's effective time overlaps the target act's effective time in any way.\r\n\n                        \n                           UsageNote: This code is reflexive.  Therefore its inverse code is itself.";
1311            case EDU: return "A relationship in which the source act ends within the target act's effective time (including end points, as defined in the act's effective times)\r\n\n                        \n                           UsageNote: Inverse code is SBEEAE";
1312            case SBSEASEBE: return "The source Act contains the start of the target Act,  and ends before the end of the target Act.\r\n\n                        \n                           UsageNote: Inverse code is SASSBEEAS";
1313            case SBSEAS: return "The source Act contains the start of the target Act.\r\n\n                        \n                           UsageNote: Inverse code is SDU";
1314            case SDU: return "A relationship in which the source act starts within the target act's effective time (including end points, as defined in the act's effective times)\r\n\n                        \n                           UsageNote: Inverse code is SBSEAS";
1315            case SBE: return "The source Act starts before the end of the target Act (i.e. if we say \"ActOne SBE ActTwo\", it means that ActOne starts before the end of ActTwo, therefore ActOne is the source and ActTwo is the target).\r\n\n                        \n                           UsageNote: Inverse code is EAS";
1316            case EBE: return "The source Act ends before the end of the target Act (i.e. if we say \"ActOne EBE ActTwo\", it means that ActOne ends before the end of ActTwo, therefore ActOne is the source and ActTwo is the target).\r\n\n                        \n                           UsageNote: Inverse code is EAE";
1317            case SBSEBE: return "The source Act starts before the start of the target Act, and ends before the end of the target Act.\r\n\n                        \n                           UsageNote: Inverse code is SASEAE";
1318            case EBSORECWS: return "A relationship in which the source act's effective time ends before or concurrent with the start of the target act's effective time.\r\n\n                        \n                           Usage Note: Inverse code is EASORECWS";
1319            case EBS: return "A relationship in which the source act ends before the target act starts.\r\n\n                        \n                           UsageNote: Inverse code is SAE";
1320            case EBEORECW: return "A relationship in which the source act's effective time ends before or concurrent with the end of the target act's effective time.\r\n\n                        \n                           Usage Note: Inverse code is EAEORECW";
1321            case SBSORSCW: return "A relationship in which the source act's effective time starts before or concurrent with the start of the target act's effective time.\r\n\n                        \n                           Usage Note: Inverse code is SASORSCW";
1322            case SBS: return "A relationship in which the source act begins before the target act begins.\r\n\n                        \n                           UsageNote: Inverse code is SAS";
1323            case AUTH: return "A relationship in which the target act authorizes or certifies the source act.";
1324            case CAUS: return "Description: An assertion that an act was the cause of another act.This is stronger and more specific than the support link. The source (cause) is typically an observation, but may be any act, while the target may be any act.\r\n\n                        \n                           Examples:\n                        \r\n\n                        \n                           a growth of Staphylococcus aureus may be considered the cause of an abscess\n                           contamination of the infusion bag was deemed to be the cause of the infection that the patient experienced\n                           lack of staff on the shift was deemed to be a supporting factor (proximal factor) causing the patient safety incident where the patient fell out of bed because the  bed-sides had not been put up which caused the night patient to fall out of bed";
1325            case COMP: return "The target act is a component of the source act, with no semantics regarding composition or aggregation implied.";
1326            case CTRLV: return "A relationship from an Act to a Control Variable.  For example, if a Device makes an Observation, this relates the Observation to its Control Variables documenting  the device's settings that influenced the observation.";
1327            case MBR: return "The target Acts are aggregated by the source Act.  Target Acts may have independent existence, participate in multiple ActRelationships, and do not contribute to the meaning of the source.\r\n\n                        \n                           UsageNotes: This explicitly represents the conventional notion of aggregation.  The target Act is part of a collection of Acts (no implication is made of cardinality, a source of Acts may contain zero, one, or more member target Acts).\r\n\n                        It is expected that this will be primarily used with _ActClassRecordOrganizer, BATTERY, and LIST";
1328            case STEP: return "A collection of sub-services as steps or subtasks performed for the source service. Services may be performed sequentially or concurrently.\r\n\n                        \n                           UsageNotes: Sequence of steps may be indicated by use of _ActRelationshipTemporallyPertains, as well as via  ActRelationship.sequenceNumber, ActRelationship.pauseQuantity, Target.priorityCode.\r\n\n                        \n                           OpenIssue: Need Additional guidelines on when each approach should be used.";
1329            case ARR: return "The relationship that links to a Transportation Act (target) from another Act (source) indicating that the subject of the source Act entered into the source Act by means of the target Transportation act.";
1330            case DEP: return "The relationship that links to a Transportation Act (target) from another Act (source) indicating that the subject of the source Act departed from the source Act by means of the target Transportation act.";
1331            case PART: return "The source Act is a composite of the target Acts. The target Acts do not have an existence independent of the source Act.\r\n\n                        \n                           UsageNote: In UML 1.1, this is a \"composition\" defined as: \n                           \"A form of aggregation with strong ownership and coincident lifetime as part of the whole. Parts with non-fixed multiplicity may be created after the composite itself, but once created they live and die with it (i.e., they share lifetimes). Such parts can also be explicitly removed before the death of the composite. Composition may be recursive.\"";
1332            case COVBY: return "A relationship in which the source act is covered by or is under the authority of a target act.  A financial instrument such as an Invoice Element is covered by one or more specific instances of an Insurance Policy.";
1333            case DRIV: return "Associates a derived Act with its input parameters. E.G., an anion-gap observation can be associated as being derived from given sodium-, (potassium-,), chloride-, and bicarbonate-observations. The narrative content (Act.text) of a source act is wholly machine-derived from the collection of target acts.";
1334            case ELNK: return "Expresses an association that links two instances of the same act over time, indicating that the instance are part of the same episode, e.g. linking two condition nodes for episode of illness; linking two encounters for episode of encounter.";
1335            case EVID: return "Indicates that the target Act provides evidence in support of the action represented by the source Act. The target is not a 'reason' for the source act, but rather gives supporting information on why the source act is an appropriate course of action. Possible targets might be clinical trial results, journal articles, similar successful therapies, etc.\r\n\n                        \n                           Rationale: Provides a mechanism for conveying clinical justification for non-approved or otherwise non-traditional therapies.";
1336            case EXACBY: return "Description:The source act is aggravated by the target act. (Example \"chest pain\" EXACBY \"exercise\")";
1337            case EXPL: return "This is the inversion of support.  Used to indicate that a given observation is explained by another observation or condition.";
1338            case INTF: return "the target act documents a set of circumstances (events, risks) which prevent successful completion, or degradation of quality of, the source Act.\r\n\n                        \n                           UsageNote: This provides the semantics to document barriers to care";
1339            case ITEMSLOC: return "Items located";
1340            case LIMIT: return "A relationship that limits or restricts the source act by the elements of the target act.  For example, an authorization may be limited by a financial amount (up to $500). Target Act must be in EVN.CRIT mood.";
1341            case META: return "Definition: Indicates that the attributes and associations of the target act provide metadata (for example, identifiers, authorship, etc.) for the source act.\r\n\n                        \n                           Constraint:  Source act must have either a mood code that is not \"EVN\" (event) or its \"isCriterion\" attribute must set to \"true\".  Target act must be an Act with a mood code of EVN and with isCriterionInd attribute set to \"true\".";
1342            case MFST: return "An assertion that a new observation may be the manifestation of another existing observation or action.  This assumption is attributed to the same actor who asserts the manifestation.  This is stronger and more specific than an inverted support link.  For example, an agitated appearance can be asserted to be the manifestation (effect) of a known hyperthyroxia.  This expresses that one might not have realized a symptom if it would not be a common manifestation of a known condition.  The target (cause) may be any service, while the source (manifestation) must be an observation.";
1343            case NAME: return "Used to assign a \"name\" to a condition thread. Source is a condition node, target can be any service.";
1344            case OUTC: return "An observation that should follow or does actually follow as a result or consequence of a condition or action (sometimes called \"post-conditional\".) Target must be an observation as a goal, risk or any criterion. For complex outcomes a conjunction attribute (AND, OR, XOR) can be used.  An outcome link is often inverted to describe an outcome assessment.";
1345            case _ACTRELATIONSIPOBJECTIVE: return "The target act is a desired outcome of the source act. Source is any act (typically an intervention). Target must be an observation in criterion mood.";
1346            case OBJC: return "A desired state that a service action aims to maintain.  E.g., keep systolic blood pressure between 90 and 110 mm Hg.  Source is an intervention service.  Target must be an observation in criterion mood.";
1347            case OBJF: return "A desired outcome that a service action aims to meet finally.  Source is any service (typically an intervention).  Target must be an observation in criterion mood.";
1348            case GOAL: return "A goal that one defines given a patient's health condition.  Subsequently planned actions aim to meet that goal.  Source is an observation or condition node, target must be an observation in goal mood.";
1349            case RISK: return "A noteworthy undesired outcome of a patient's condition that is either likely enough to become an issue or is less likely but dangerous enough to be addressed.";
1350            case PERT: return "This is a very unspecific relationship from one item of clinical information to another.  It does not judge about the role the pertinent information plays.";
1351            case PREV: return "A relationship in which the target act is a predecessor instance to the source act.  Generally each of these instances is similar, but no identical.  In healthcare coverage it is used to link a claim item to a previous claim item that might have claimed for the same set of services.";
1352            case REFR: return "A relationship in which the target act is referred to by the source act.  This permits a simple reference relationship that distinguishes between the referent and the referee.";
1353            case USE: return "Indicates that the source act makes use of (or will make use of) the information content of the target act.\r\n\n                        \n                           UsageNotes: A usage relationship only makes sense if the target act is authored and occurs independently of the source act.  Otherwise a simpler relationship such as COMP would be appropriate.\r\n\n                        \n                           Rationale: There is a need when defining a clinical trial protocol to indicate that the protocol makes use of other protocol or treatment specifications.  This is stronger than the assertion of \"references\".  References may exist without usage, and in a clinical trial protocol is common to assert both: what other specifications does this trial use and what other specifications does it merely reference.";
1354            case REFV: return "Reference ranges are essentially descriptors of a class of result values assumed to be \"normal\", \"abnormal\", or \"critical.\"  Those can vary by sex, age, or any other criterion. Source and target are observations, the target is in criterion mood.  This link type can act as a trigger in case of alarms being triggered by critical results.";
1355            case RELVBY: return "Description:The source act is wholly or partially alleviated by the target act. (Example \"chest pain\" RELVBY \"sublingual nitroglycerin administration\")";
1356            case SEQL: return "An act relationship indicating that the source act follows the target act. The source act should in principle represent the same kind of act as the target. Source and target need not have the same mood code (mood will often differ). The target of a sequel is called antecedent. Examples for sequel relationships are: revision, transformation, derivation from a prototype (as a specialization is a derivation of a generalization), followup, realization, instantiation.";
1357            case APND: return "An addendum (source) to an existing service object (target), containing supplemental information.  The addendum is itself an original service object linked to the supplemented service object.  The supplemented service object remains in place and its content and status are unaltered.";
1358            case BSLN: return "Indicates that the target observation(s) provide an initial reference for the source observation or observation group.\r\n\n                        \n                           UsageConstraints: Both source and target must be Observations or specializations thereof.";
1359            case COMPLY: return "Description:The source act complies with, adheres to, conforms to, or is permissible under (in whole or in part) the policy, contract, agreement, law, conformance criteria, certification guidelines or requirement conveyed by the target act.\r\n\n                        Examples for compliance relationships are: audits of adherence with a security policy, certificate of conformance to system certification requirements, or consent directive in compliance with or permissible under a privacy policy.";
1360            case DOC: return "The source act documents the target act.";
1361            case FLFS: return "The source act fulfills (in whole or in part) the target act. Source act must be in a mood equal or more actual than the target act.";
1362            case OCCR: return "The source act is a single occurrence of a repeatable target act. The source and target act can be in any mood on the \"completion track\" but the source act must be as far as or further along the track than the target act (i.e., the occurrence of an intent can be an event but not vice versa).";
1363            case OREF: return "Relates either an appointment request or an appointment to the order for the service being scheduled.";
1364            case SCH: return "Associates a specific time (and associated resources) with a scheduling request or other intent.";
1365            case GEN: return "The generalization relationship can be used to express categorical knowledge about services (e.g., amilorid, triamterene, and spironolactone have the common generalization potassium sparing diuretic).";
1366            case GEVL: return "A goal-evaluation links an observation (intent or actual) to a goal to indicate that the observation evaluates the goal. Given the goal and the observation, a \"goal distance\" (e.g., goal to observation) can be \"calculated\" and need not be sent explicitly.";
1367            case INST: return "Used to capture the link between a potential service (\"master\" or plan) and an actual service, where the actual service instantiates the potential service. The instantiation may override the master's defaults.";
1368            case MOD: return "Definition: Used to link a newer version or 'snapshot' of a business object (source) to an older version or 'snapshot' of the same business object (target).\r\n\n                        \n                           Usage:The identifier of the Act should be the same for both source and target. If the identifiers are distinct, RPLC should be used instead.\r\n\n                        Name from source to target = \"modifiesPrior\"\r\n\n                        Name from target to source = \"modifiesByNew\"";
1369            case MTCH: return "A trigger-match links an actual service (e.g., an observation or procedure that took place) with a service in criterion mood.  For example if the trigger is \"observation of pain\" and pain is actually observed, and if that pain-observation caused the trigger to fire, that pain-observation can be linked with the trigger.";
1370            case OPTN: return "A relationship between a source Act that provides more detailed properties to the target Act.\r\n\n                        The source act thus is a specialization of the target act, but instead of mentioning all the inherited properties it only mentions new property bindings or refinements.\r\n\n                        The typical use case is to specify certain alternative variants of one kind of Act. The priorityNumber attribute is used to weigh refinements as preferred over other alternative refinements.\r\n\n                        Example: several routing options for a drug are specified as one SubstanceAdministration for the general treatment with attached refinements for the various routing options.";
1371            case RCHAL: return "Description:A relationship in which the target act is carried out to determine whether an effect attributed to the source act can be recreated.";
1372            case REV: return "A relationship between a source Act that seeks to reverse or undo the action of the prior target Act.\r\n\n                        Example: A posted financial transaction (e.g., a debit transaction) was applied in error and must be reversed (e.g., by a credit transaction) the credit transaction is identified as an undo (or reversal) of the prior target transaction.\r\n\n                        Constraints: the \"completion track\" mood of the target Act must be equally or more \"actual\" than the source act. I.e., when the target act is EVN the source act can be EVN, or any INT. If the target act is INT, the source act can be INT.";
1373            case RPLC: return "A replacement source act replaces an existing target act. The state of the target act being replaced becomes obselete, but the act is typically still retained in the system for historical reference.  The source and target must be of the same type.";
1374            case SUCC: return "Definition:  A new act that carries forward the intention of the original act, but does not completely replace it.  The status of the predecessor act must be 'completed'.  The original act is the target act and the successor is the source act.";
1375            case UPDT: return "A condition thread relationship specifically links condition nodes together to form a condition thread. The source is the new condition node and the target links to the most recent node of the existing condition thread.";
1376            case XCRPT: return "The source is an excerpt from the target.";
1377            case VRXCRPT: return "The source is a direct quote from the target.";
1378            case XFRM: return "Used when the target Act is a transformation of the source Act. (For instance, used to show that a CDA document is a transformation of a DICOM SR document.)";
1379            case SPRT: return "Used to indicate that an existing service is suggesting evidence for a new observation. The assumption of support is attributed to the same actor who asserts the observation. Source must be an observation, target may be any service  (e.g., to indicate a status post).";
1380            case SPRTBND: return "A specialization of \"has support\" (SPRT), used to relate a secondary observation to a Region of Interest on a multidimensional observation, if the ROI specifies the true boundaries of the secondary observation as opposed to only marking the approximate area.  For example, if the start and end of an ST elevation episode is visible in an EKG, this relation would indicate the ROI bounds the  \"ST elevation\" observation -- the ROI defines the true beginning and ending of the episode.  Conversely, if a ROI simply contains ST elevation, but it does not define the bounds (start and end) of the episode, the more general \"has support\" relation is used.  Likewise, if a ROI on an image defines the true bounds of a \"1st degree burn\", the relation \"has bounded support\" is used; but if the ROI only points to the approximate area of the burn, the general \"has support\" relation is used.";
1381            case SUBJ: return "Relates an Act to its subject Act that the first Act is primarily concerned with.\r\n\n                        Examples\r\n\n                        \n                           \n                              The first Act may be a ControlAct manipulating the subject Act \r\n\n                           \n                           \n                              The first act is a region of interest (ROI) that defines a region within the subject Act.\r\n\n                           \n                           \n                              The first act is a reporting or notification Act, that echos the subject Act for a specific new purpose.\r\n\n                           \n                        \n                        Constraints\r\n\n                        An Act may have multiple subject acts.\r\n\n                        Rationale\r\n\n                        The ActRelationshipType \"has subject\" is similar to the ParticipationType \"subject\", Acts that primarily operate on physical subjects use the Participation, those Acts that primarily operate on other Acts (other information) use the ActRelationship.";
1382            case QUALF: return "The target observation qualifies (refines) the semantics of the source observation.\r\n\n                        \n                           UsageNote: This is not intended to replace concept refinement and qualification via vocabulary.  It is used when there are multiple components which together provide the complete understanding of the source Act.";
1383            case SUMM: return "An act that contains summary values for a list or set of subordinate acts.  For example, a summary of transactions for a particular accounting period.";
1384            case VALUE: return "Description:Indicates that the target Act represents the result of the source observation Act.\r\n\n                        \n                           FormalConstraint: Source Act must be an Observation or specialization there-of. Source Act must not have the value attribute specified\r\n\n                        \n                           UsageNote: This relationship allows the result of an observation to be fully expressed as RIM acts as opposed to being embedded in the value attribute.  For example, sending a Document act as the result of an imaging observation, sending a list of Procedures and/or other acts as the result of a medical history observation.\r\n\n                        The valueNegationInd attribute on the source Act has the same semantics of \"negated finding\" when it applies to the target of a VALUE ActRelationship as it does to the value attribute.  On the other hand, if the ActRelationship.negationInd is true for a VALUE ActRelationship, that means the specified observation does not have the indicated value but does not imply a negated finding.  Because the semantics are extremely close, it is recommended that Observation.valueNegationInd be used, not ActRelationship.negationInd.\r\n\n                        \n                           OpenIssue: The implications of negationInd on ActRelationship and the valueNegationind on Observation.";
1385            case CURE: return "curative indication";
1386            case CURE_ADJ: return "adjunct curative indication";
1387            case MTGT_ADJ: return "adjunct mitigation";
1388            case RACT: return "";
1389            case SUGG: return "";
1390            default: return "?";
1391          }
1392        }
1393        public String getDisplay() {
1394          switch (this) {
1395            case ART: return "act relationship type";
1396            case _ACTCLASSTEMPORALLYPERTAINS: return "ActClassTemporallyPertains";
1397            case _ACTRELATIONSHIPACCOUNTING: return "ActRelationshipAccounting";
1398            case _ACTRELATIONSHIPCOSTTRACKING: return "ActRelationshipCostTracking";
1399            case CHRG: return "has charge";
1400            case COST: return "has cost";
1401            case _ACTRELATIONSHIPPOSTING: return "ActRelationshipPosting";
1402            case CREDIT: return "has credit";
1403            case DEBIT: return "has debit";
1404            case _ACTRELATIONSHIPCONDITIONAL: return "ActRelationshipConditional";
1405            case CIND: return "has contra-indication";
1406            case PRCN: return "has pre-condition";
1407            case RSON: return "has reason";
1408            case BLOCK: return "blocks";
1409            case DIAG: return "diagnoses";
1410            case IMM: return "immunization against";
1411            case ACTIMM: return "active immunization against";
1412            case PASSIMM: return "passive immunization against";
1413            case MITGT: return "mitigates";
1414            case RCVY: return "recovers";
1415            case PRYLX: return "prophylaxis of";
1416            case TREAT: return "treats";
1417            case ADJUNCT: return "adjunctive treatment";
1418            case MTREAT: return "maintenance treatment";
1419            case PALLTREAT: return "palliates";
1420            case SYMP: return "symptomatic relief";
1421            case TRIG: return "has trigger";
1422            case _ACTRELATIONSHIPTEMPORALLYPERTAINS: return "ActRelationshipTemporallyPertains";
1423            case _ACTRELATIONSHIPTEMPORALLYPERTAINSAPPROXIMATES: return "ActRelationshipTemporallyPertainsApproximates";
1424            case ENE: return "ends near end";
1425            case ECW: return "ends concurrent with";
1426            case CONCURRENT: return "concurrent with";
1427            case SBSECWE: return "starts before start of, ends with";
1428            case ENS: return "ends near start";
1429            case ECWS: return "ends concurrent with start of";
1430            case SNE: return "starts near end";
1431            case SCWE: return "starts concurrent with end of";
1432            case SNS: return "starts near start";
1433            case SCW: return "starts concurrent with";
1434            case SCWSEBE: return "starts with. ends before end of";
1435            case SCWSEAE: return "starts with, ends after end of";
1436            case EAS: return "ends after start of";
1437            case EAE: return "ends after end of";
1438            case SASEAE: return "starts after start of, ends after end of";
1439            case SBEEAE: return "contains end of";
1440            case SASSBEEAS: return "start after start of, contains end of";
1441            case SBSEAE: return "contains time of";
1442            case SAS: return "starts after start of";
1443            case SAE: return "starts after end of";
1444            case DURING: return "occurs during";
1445            case SASECWE: return "starts after start of, ends with";
1446            case EASORECWS: return "ends after or concurrent with start of";
1447            case EAEORECW: return "ends after or concurrent with end of";
1448            case INDEPENDENT: return "independent of time of";
1449            case SAEORSCWE: return "starts after or concurrent with end of";
1450            case SASORSCW: return "starts after or concurrent with start of";
1451            case SBEORSCWE: return "starts before or concurrent with end of";
1452            case OVERLAP: return "overlaps with";
1453            case EDU: return "ends during";
1454            case SBSEASEBE: return "contains start of, ends before end of";
1455            case SBSEAS: return "contains start of";
1456            case SDU: return "starts during";
1457            case SBE: return "starts before end of";
1458            case EBE: return "ends before end of";
1459            case SBSEBE: return "starts before start of, ends before end of";
1460            case EBSORECWS: return "ends before or concurrent with start of";
1461            case EBS: return "ends before start of";
1462            case EBEORECW: return "ends before or concurrent with end of";
1463            case SBSORSCW: return "starts before or concurrent with start of";
1464            case SBS: return "starts before start of";
1465            case AUTH: return "authorized by";
1466            case CAUS: return "is etiology for";
1467            case COMP: return "has component";
1468            case CTRLV: return "has control variable";
1469            case MBR: return "has member";
1470            case STEP: return "has step";
1471            case ARR: return "arrival";
1472            case DEP: return "departure";
1473            case PART: return "has part";
1474            case COVBY: return "covered by";
1475            case DRIV: return "is derived from";
1476            case ELNK: return "episodeLink";
1477            case EVID: return "provides evidence for";
1478            case EXACBY: return "exacerbated by";
1479            case EXPL: return "has explanation";
1480            case INTF: return "interfered by";
1481            case ITEMSLOC: return "items located";
1482            case LIMIT: return "limited by";
1483            case META: return "has metadata";
1484            case MFST: return "is manifestation of";
1485            case NAME: return "assigns name";
1486            case OUTC: return "has outcome";
1487            case _ACTRELATIONSIPOBJECTIVE: return "Act Relationsip Objective";
1488            case OBJC: return "has continuing objective";
1489            case OBJF: return "has final objective";
1490            case GOAL: return "has goal";
1491            case RISK: return "has risk";
1492            case PERT: return "has pertinent information";
1493            case PREV: return "has previous instance";
1494            case REFR: return "refers to";
1495            case USE: return "uses";
1496            case REFV: return "has reference values";
1497            case RELVBY: return "relieved by";
1498            case SEQL: return "is sequel";
1499            case APND: return "is appendage";
1500            case BSLN: return "has baseline";
1501            case COMPLY: return "complies with";
1502            case DOC: return "documents";
1503            case FLFS: return "fulfills";
1504            case OCCR: return "occurrence";
1505            case OREF: return "references order";
1506            case SCH: return "schedules request";
1507            case GEN: return "has generalization";
1508            case GEVL: return "evaluates (goal)";
1509            case INST: return "instantiates (master)";
1510            case MOD: return "modifies";
1511            case MTCH: return "matches (trigger)";
1512            case OPTN: return "has option";
1513            case RCHAL: return "re-challenge";
1514            case REV: return "reverses";
1515            case RPLC: return "replaces";
1516            case SUCC: return "succeeds";
1517            case UPDT: return "updates (condition)";
1518            case XCRPT: return "Excerpts";
1519            case VRXCRPT: return "Excerpt verbatim";
1520            case XFRM: return "transformation";
1521            case SPRT: return "has support";
1522            case SPRTBND: return "has bounded support";
1523            case SUBJ: return "has subject";
1524            case QUALF: return "has qualifier";
1525            case SUMM: return "summarized by";
1526            case VALUE: return "has value";
1527            case CURE: return "curative indication";
1528            case CURE_ADJ: return "adjunct curative indication";
1529            case MTGT_ADJ: return "adjunct mitigation";
1530            case RACT: return "RACT";
1531            case SUGG: return "SUGG";
1532            default: return "?";
1533          }
1534    }
1535
1536
1537}
1538