001package org.hl7.fhir.r5.model.codesystems;
002
003/*
004 * #%L
005 * org.hl7.fhir.r5
006 * %%
007 * Copyright (C) 2014 - 2019 Health Level 7
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023/*
024  Copyright (c) 2011+, HL7, Inc.
025  All rights reserved.
026  
027  Redistribution and use in source and binary forms, with or without modification, 
028  are permitted provided that the following conditions are met:
029  
030   * Redistributions of source code must retain the above copyright notice, this 
031     list of conditions and the following disclaimer.
032   * Redistributions in binary form must reproduce the above copyright notice, 
033     this list of conditions and the following disclaimer in the documentation 
034     and/or other materials provided with the distribution.
035   * Neither the name of HL7 nor the names of its contributors may be used to 
036     endorse or promote products derived from this software without specific 
037     prior written permission.
038  
039  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
040  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
041  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
042  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
043  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
044  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
045  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
046  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
047  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
048  POSSIBILITY OF SUCH DAMAGE.
049  
050*/
051
052// Generated on Thu, Oct 17, 2019 09:42+1100 for FHIR v4.1.0
053
054
055import org.hl7.fhir.exceptions.FHIRException;
056
057public enum V3ActRelationshipType {
058
059        /**
060         * Description: A directed association between a source Act and a target Act.
061
062                        
063                           Usage Note: This code should never be transmitted in an instance as the value of ActRelationship.typeCode (attribute)
064         */
065        ART, 
066        /**
067         * ActClassTemporallyPertains
068         */
069        _ACTCLASSTEMPORALLYPERTAINS, 
070        /**
071         * Codes that describe the relationship between an Act and a financial instrument such as a financial transaction, account or invoice element.
072         */
073        _ACTRELATIONSHIPACCOUNTING, 
074        /**
075         * Expresses values for describing the relationship relationship between an InvoiceElement or InvoiceElementGroup and a billable act.
076         */
077        _ACTRELATIONSHIPCOSTTRACKING, 
078        /**
079         * 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.
080
081                        The financial transaction will define the charge (bill) for delivery or performance of the service.
082
083                        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.
084         */
085        CHRG, 
086        /**
087         * 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.
088
089                        The financial transaction will define the cost of delivery or performance of the service.
090
091                        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.
092         */
093        COST, 
094        /**
095         * Expresses values for describing the relationship between a FinancialTransaction and an Account.
096         */
097        _ACTRELATIONSHIPPOSTING, 
098        /**
099         * 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.
100         */
101        CREDIT, 
102        /**
103         * 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.
104         */
105        DEBIT, 
106        /**
107         * Specifies under what circumstances (target Act) the source-Act may, must, must not or has occurred
108         */
109        _ACTRELATIONSHIPCONDITIONAL, 
110        /**
111         * 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.
112         */
113        CIND, 
114        /**
115         * 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.
116         */
117        PRCN, 
118        /**
119         * 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. 
120
121                        
122                           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.
123         */
124        RSON, 
125        /**
126         * 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.
127         */
128        BLOCK, 
129        /**
130         * 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.
131         */
132        DIAG, 
133        /**
134         * Description: The source act is intented to provide immunity against the effects of the target act (the target act describes an infectious disease)
135         */
136        IMM, 
137        /**
138         * Description: The source act is intended to provide active immunity against the effects of the target act (the target act describes an infectious disease)
139         */
140        ACTIMM, 
141        /**
142         * Description: The source act is intended to provide passive immunity against the effects of the target act (the target act describes an infectious disease).
143         */
144        PASSIMM, 
145        /**
146         * The source act removes or lessens the occurrence or effect of the target act.
147         */
148        MITGT, 
149        /**
150         * Definition: The source act is performed to recover from the effects of the target act.
151         */
152        RCVY, 
153        /**
154         * 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.
155         */
156        PRYLX, 
157        /**
158         * 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.
159         */
160        TREAT, 
161        /**
162         * 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.
163         */
164        ADJUNCT, 
165        /**
166         * 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.
167         */
168        MTREAT, 
169        /**
170         * Description: The source act is intended to provide palliation for the effects of the target act.
171         */
172        PALLTREAT, 
173        /**
174         * Description: The source act is intented to provide symptomatic relief for the effects of the target act.
175         */
176        SYMP, 
177        /**
178         * 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.
179
180                        
181                           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.
182         */
183        TRIG, 
184        /**
185         * Abstract collector for ActRelationhsip types that relate two acts by their timing.
186         */
187        _ACTRELATIONSHIPTEMPORALLYPERTAINS, 
188        /**
189         * Abstract collector for ActRelationship types that relate two acts by their approximate timing.
190         */
191        _ACTRELATIONSHIPTEMPORALLYPERTAINSAPPROXIMATES, 
192        /**
193         * 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.
194
195                        
196                           Usage Note: Inverse code is ENS
197         */
198        ENE, 
199        /**
200         * A relationship in which the source act's effective time ends with the end of the target act's effective time.
201
202                        
203                           UsageNote: This code is reflexive.  Therefore its inverse code is itself.
204         */
205        ECW, 
206        /**
207         * A relationship in which the source act's effective time is the same as the target act's effective time.
208
209                        
210                           UsageNote: This code is reflexive.  Therefore its inverse code is itself.
211         */
212        CONCURRENT, 
213        /**
214         * The source Act starts before the start of the target Act, and ends with the target Act.
215
216                        
217                           UsageNote: Inverse code is SASECWE
218         */
219        SBSECWE, 
220        /**
221         * 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.
222
223                        
224                           Usage Note: Inverse code is ENE
225         */
226        ENS, 
227        /**
228         * 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).
229
230                        
231                           UsageNote: Inverse code is SCWE
232         */
233        ECWS, 
234        /**
235         * 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.
236
237                        
238                           Usage Note: Inverse code is SNS
239         */
240        SNE, 
241        /**
242         * 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).
243
244                        
245                           UsageNote: Inverse code is SBSECWS
246         */
247        SCWE, 
248        /**
249         * 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.
250
251                        
252                           Usage Note: Inverse code is SNE
253         */
254        SNS, 
255        /**
256         * A relationship in which the source act's effective time starts with the start of the target act's effective time.
257
258                        
259                           UsageNote: This code is reflexive.  Therefore its inverse code is itself.
260         */
261        SCW, 
262        /**
263         * The source Act starts with.the target Act and ends before the end of the target Act.
264
265                        
266                           UsageNote: Inverse code is SCWSEAE
267         */
268        SCWSEBE, 
269        /**
270         * The source Act starts with the target Act, and ends after the end of the target Act.
271         */
272        SCWSEAE, 
273        /**
274         * A relationship in which the source act ends after the target act starts.
275
276                        
277                           UsageNote: Inverse code is SBE
278         */
279        EAS, 
280        /**
281         * A relationship in which the source act ends after the target act ends.
282
283                        
284                           UsageNote: Inverse code is EBE
285         */
286        EAE, 
287        /**
288         * The source Act starts after start of the target Act and ends after end of the target Act.
289
290                        
291                           UsageNote: Inverse code is SBSEBE
292         */
293        SASEAE, 
294        /**
295         * The source Act contains the end of the target Act.
296
297                        
298                           UsageNote: Inverse code is EDU
299         */
300        SBEEAE, 
301        /**
302         * The source Act start after the start of the target Act, and contains the end of the target Act.
303
304                        
305                           UsageNote: Inverse code is SBSEASEBE
306         */
307        SASSBEEAS, 
308        /**
309         * The source Act contains the time of the target Act.
310
311                        
312                           UsageNote: Inverse code is DURING
313         */
314        SBSEAE, 
315        /**
316         * 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).
317
318                        
319                           UsageNote: Inverse code is SBS
320         */
321        SAS, 
322        /**
323         * A relationship in which the source act starts after the target act ends.
324
325                        
326                           UsageNote: Inverse code is EBS
327         */
328        SAE, 
329        /**
330         * 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)
331
332                        
333                           UsageNote: Inverse code is SBSEAE
334         */
335        DURING, 
336        /**
337         * The source Act starts after start of the target Act, and ends with the target Act.
338
339                        
340                           UsageNote: Inverse code is SBSECWE
341         */
342        SASECWE, 
343        /**
344         * A relationship in which the source act's effective time ends after or concurrent with the start of the target act's effective time.
345
346                        
347                           Usage Note: Inverse code is EBSORECWS
348         */
349        EASORECWS, 
350        /**
351         * A relationship in which the source act's effective time ends after or concurrent with the end of the target act's effective time.
352
353                        
354                           Usage Note: Inverse code is EBEORECW
355         */
356        EAEORECW, 
357        /**
358         * The source Act is independent of the time of the target Act.
359
360                        
361                           UsageNote: This code is reflexive.  Therefore its inverse code is itself.
362         */
363        INDEPENDENT, 
364        /**
365         * A relationship in which the source act's effective time starts after or concurrent with the end of the target act's effective time.
366
367                        
368                           Usage Note: Inverse code is SBEORSCWE
369         */
370        SAEORSCWE, 
371        /**
372         * A relationship in which the source act's effective time starts after or concurrent with the start of the target act's effective time.
373
374                        
375                           Usage Note: Inverse code is SBSORSCW
376         */
377        SASORSCW, 
378        /**
379         * A relationship in which the source act's effective time starts before or concurrent with the end of the target act's effective time.
380
381                        
382                           Usage Note: Inverse code is SAEORSCWE
383         */
384        SBEORSCWE, 
385        /**
386         * A relationship in which the source act's effective time overlaps the target act's effective time in any way.
387
388                        
389                           UsageNote: This code is reflexive.  Therefore its inverse code is itself.
390         */
391        OVERLAP, 
392        /**
393         * 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)
394
395                        
396                           UsageNote: Inverse code is SBEEAE
397         */
398        EDU, 
399        /**
400         * The source Act contains the start of the target Act,  and ends before the end of the target Act.
401
402                        
403                           UsageNote: Inverse code is SASSBEEAS
404         */
405        SBSEASEBE, 
406        /**
407         * The source Act contains the start of the target Act.
408
409                        
410                           UsageNote: Inverse code is SDU
411         */
412        SBSEAS, 
413        /**
414         * 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)
415
416                        
417                           UsageNote: Inverse code is SBSEAS
418         */
419        SDU, 
420        /**
421         * 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).
422
423                        
424                           UsageNote: Inverse code is EAS
425         */
426        SBE, 
427        /**
428         * 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).
429
430                        
431                           UsageNote: Inverse code is EAE
432         */
433        EBE, 
434        /**
435         * The source Act starts before the start of the target Act, and ends before the end of the target Act.
436
437                        
438                           UsageNote: Inverse code is SASEAE
439         */
440        SBSEBE, 
441        /**
442         * A relationship in which the source act's effective time ends before or concurrent with the start of the target act's effective time.
443
444                        
445                           Usage Note: Inverse code is EASORECWS
446         */
447        EBSORECWS, 
448        /**
449         * A relationship in which the source act ends before the target act starts.
450
451                        
452                           UsageNote: Inverse code is SAE
453         */
454        EBS, 
455        /**
456         * A relationship in which the source act's effective time ends before or concurrent with the end of the target act's effective time.
457
458                        
459                           Usage Note: Inverse code is EAEORECW
460         */
461        EBEORECW, 
462        /**
463         * A relationship in which the source act's effective time starts before or concurrent with the start of the target act's effective time.
464
465                        
466                           Usage Note: Inverse code is SASORSCW
467         */
468        SBSORSCW, 
469        /**
470         * A relationship in which the source act begins before the target act begins.
471
472                        
473                           UsageNote: Inverse code is SAS
474         */
475        SBS, 
476        /**
477         * A relationship in which the target act authorizes or certifies the source act.
478         */
479        AUTH, 
480        /**
481         * 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.
482
483                        
484                           Examples:
485                        
486
487                        
488                           a growth of Staphylococcus aureus may be considered the cause of an abscess
489                           contamination of the infusion bag was deemed to be the cause of the infection that the patient experienced
490                           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
491         */
492        CAUS, 
493        /**
494         * The target act is a component of the source act, with no semantics regarding composition or aggregation implied.
495         */
496        COMP, 
497        /**
498         * 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.
499         */
500        CTRLV, 
501        /**
502         * 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.
503
504                        
505                           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).
506
507                        It is expected that this will be primarily used with _ActClassRecordOrganizer, BATTERY, and LIST
508         */
509        MBR, 
510        /**
511         * A collection of sub-services as steps or subtasks performed for the source service. Services may be performed sequentially or concurrently.
512
513                        
514                           UsageNotes: Sequence of steps may be indicated by use of _ActRelationshipTemporallyPertains, as well as via  ActRelationship.sequenceNumber, ActRelationship.pauseQuantity, Target.priorityCode.
515
516                        
517                           OpenIssue: Need Additional guidelines on when each approach should be used.
518         */
519        STEP, 
520        /**
521         * 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.
522         */
523        ARR, 
524        /**
525         * 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.
526         */
527        DEP, 
528        /**
529         * The source Act is a composite of the target Acts. The target Acts do not have an existence independent of the source Act.
530
531                        
532                           UsageNote: In UML 1.1, this is a "composition" defined as: 
533                           "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."
534         */
535        PART, 
536        /**
537         * 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.
538         */
539        COVBY, 
540        /**
541         * 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.
542         */
543        DRIV, 
544        /**
545         * 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.
546         */
547        ELNK, 
548        /**
549         * 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.
550
551                        
552                           Rationale: Provides a mechanism for conveying clinical justification for non-approved or otherwise non-traditional therapies.
553         */
554        EVID, 
555        /**
556         * Description:The source act is aggravated by the target act. (Example "chest pain" EXACBY "exercise")
557         */
558        EXACBY, 
559        /**
560         * This is the inversion of support.  Used to indicate that a given observation is explained by another observation or condition.
561         */
562        EXPL, 
563        /**
564         * the target act documents a set of circumstances (events, risks) which prevent successful completion, or degradation of quality of, the source Act.
565
566                        
567                           UsageNote: This provides the semantics to document barriers to care
568         */
569        INTF, 
570        /**
571         * Items located
572         */
573        ITEMSLOC, 
574        /**
575         * 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.
576         */
577        LIMIT, 
578        /**
579         * Definition: Indicates that the attributes and associations of the target act provide metadata (for example, identifiers, authorship, etc.) for the source act.
580
581                        
582                           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".
583         */
584        META, 
585        /**
586         * 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.
587         */
588        MFST, 
589        /**
590         * Used to assign a "name" to a condition thread. Source is a condition node, target can be any service.
591         */
592        NAME, 
593        /**
594         * 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.
595         */
596        OUTC, 
597        /**
598         * 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.
599         */
600        _ACTRELATIONSIPOBJECTIVE, 
601        /**
602         * 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.
603         */
604        OBJC, 
605        /**
606         * 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.
607         */
608        OBJF, 
609        /**
610         * 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.
611         */
612        GOAL, 
613        /**
614         * 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.
615         */
616        RISK, 
617        /**
618         * 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.
619         */
620        PERT, 
621        /**
622         * 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.
623         */
624        PREV, 
625        /**
626         * 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.
627         */
628        REFR, 
629        /**
630         * Indicates that the source act makes use of (or will make use of) the information content of the target act.
631
632                        
633                           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.
634
635                        
636                           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.
637         */
638        USE, 
639        /**
640         * 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.
641         */
642        REFV, 
643        /**
644         * Description:The source act is wholly or partially alleviated by the target act. (Example "chest pain" RELVBY "sublingual nitroglycerin administration")
645         */
646        RELVBY, 
647        /**
648         * 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.
649         */
650        SEQL, 
651        /**
652         * 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.
653         */
654        APND, 
655        /**
656         * Indicates that the target observation(s) provide an initial reference for the source observation or observation group.
657
658                        
659                           UsageConstraints: Both source and target must be Observations or specializations thereof.
660         */
661        BSLN, 
662        /**
663         * 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.
664
665                        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.
666         */
667        COMPLY, 
668        /**
669         * The source act documents the target act.
670         */
671        DOC, 
672        /**
673         * 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.
674         */
675        FLFS, 
676        /**
677         * 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).
678         */
679        OCCR, 
680        /**
681         * Relates either an appointment request or an appointment to the order for the service being scheduled.
682         */
683        OREF, 
684        /**
685         * Associates a specific time (and associated resources) with a scheduling request or other intent.
686         */
687        SCH, 
688        /**
689         * 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).
690         */
691        GEN, 
692        /**
693         * 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.
694         */
695        GEVL, 
696        /**
697         * 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.
698         */
699        INST, 
700        /**
701         * 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).
702
703                        
704                           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.
705
706                        Name from source to target = "modifiesPrior"
707
708                        Name from target to source = "modifiesByNew"
709         */
710        MOD, 
711        /**
712         * 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.
713         */
714        MTCH, 
715        /**
716         * A relationship between a source Act that provides more detailed properties to the target Act.
717
718                        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.
719
720                        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.
721
722                        Example: several routing options for a drug are specified as one SubstanceAdministration for the general treatment with attached refinements for the various routing options.
723         */
724        OPTN, 
725        /**
726         * Description:A relationship in which the target act is carried out to determine whether an effect attributed to the source act can be recreated.
727         */
728        RCHAL, 
729        /**
730         * A relationship between a source Act that seeks to reverse or undo the action of the prior target Act.
731
732                        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.
733
734                        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.
735         */
736        REV, 
737        /**
738         * 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.
739         */
740        RPLC, 
741        /**
742         * 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.
743         */
744        SUCC, 
745        /**
746         * 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.
747         */
748        UPDT, 
749        /**
750         * The source is an excerpt from the target.
751         */
752        XCRPT, 
753        /**
754         * The source is a direct quote from the target.
755         */
756        VRXCRPT, 
757        /**
758         * 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.)
759         */
760        XFRM, 
761        /**
762         * 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).
763         */
764        SPRT, 
765        /**
766         * 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.
767         */
768        SPRTBND, 
769        /**
770         * Relates an Act to its subject Act that the first Act is primarily concerned with.
771
772                        Examples
773
774                        
775                           
776                              The first Act may be a ControlAct manipulating the subject Act 
777
778                           
779                           
780                              The first act is a region of interest (ROI) that defines a region within the subject Act.
781
782                           
783                           
784                              The first act is a reporting or notification Act, that echos the subject Act for a specific new purpose.
785
786                           
787                        
788                        Constraints
789
790                        An Act may have multiple subject acts.
791
792                        Rationale
793
794                        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.
795         */
796        SUBJ, 
797        /**
798         * The target observation qualifies (refines) the semantics of the source observation.
799
800                        
801                           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.
802         */
803        QUALF, 
804        /**
805         * 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.
806         */
807        SUMM, 
808        /**
809         * Description:Indicates that the target Act represents the result of the source observation Act.
810
811                        
812                           FormalConstraint: Source Act must be an Observation or specialization there-of. Source Act must not have the value attribute specified
813
814                        
815                           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.
816
817                        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.
818
819                        
820                           OpenIssue: The implications of negationInd on ActRelationship and the valueNegationind on Observation.
821         */
822        VALUE, 
823        /**
824         * curative indication
825         */
826        CURE, 
827        /**
828         * adjunct curative indication
829         */
830        CURE_ADJ, 
831        /**
832         * adjunct mitigation
833         */
834        MTGT_ADJ, 
835        /**
836         * null
837         */
838        RACT, 
839        /**
840         * null
841         */
842        SUGG, 
843        /**
844         * added to help the parsers
845         */
846        NULL;
847        public static V3ActRelationshipType fromCode(String codeString) throws FHIRException {
848            if (codeString == null || "".equals(codeString))
849                return null;
850        if ("ART".equals(codeString))
851          return ART;
852        if ("_ActClassTemporallyPertains".equals(codeString))
853          return _ACTCLASSTEMPORALLYPERTAINS;
854        if ("_ActRelationshipAccounting".equals(codeString))
855          return _ACTRELATIONSHIPACCOUNTING;
856        if ("_ActRelationshipCostTracking".equals(codeString))
857          return _ACTRELATIONSHIPCOSTTRACKING;
858        if ("CHRG".equals(codeString))
859          return CHRG;
860        if ("COST".equals(codeString))
861          return COST;
862        if ("_ActRelationshipPosting".equals(codeString))
863          return _ACTRELATIONSHIPPOSTING;
864        if ("CREDIT".equals(codeString))
865          return CREDIT;
866        if ("DEBIT".equals(codeString))
867          return DEBIT;
868        if ("_ActRelationshipConditional".equals(codeString))
869          return _ACTRELATIONSHIPCONDITIONAL;
870        if ("CIND".equals(codeString))
871          return CIND;
872        if ("PRCN".equals(codeString))
873          return PRCN;
874        if ("RSON".equals(codeString))
875          return RSON;
876        if ("BLOCK".equals(codeString))
877          return BLOCK;
878        if ("DIAG".equals(codeString))
879          return DIAG;
880        if ("IMM".equals(codeString))
881          return IMM;
882        if ("ACTIMM".equals(codeString))
883          return ACTIMM;
884        if ("PASSIMM".equals(codeString))
885          return PASSIMM;
886        if ("MITGT".equals(codeString))
887          return MITGT;
888        if ("RCVY".equals(codeString))
889          return RCVY;
890        if ("PRYLX".equals(codeString))
891          return PRYLX;
892        if ("TREAT".equals(codeString))
893          return TREAT;
894        if ("ADJUNCT".equals(codeString))
895          return ADJUNCT;
896        if ("MTREAT".equals(codeString))
897          return MTREAT;
898        if ("PALLTREAT".equals(codeString))
899          return PALLTREAT;
900        if ("SYMP".equals(codeString))
901          return SYMP;
902        if ("TRIG".equals(codeString))
903          return TRIG;
904        if ("_ActRelationshipTemporallyPertains".equals(codeString))
905          return _ACTRELATIONSHIPTEMPORALLYPERTAINS;
906        if ("_ActRelationshipTemporallyPertainsApproximates".equals(codeString))
907          return _ACTRELATIONSHIPTEMPORALLYPERTAINSAPPROXIMATES;
908        if ("ENE".equals(codeString))
909          return ENE;
910        if ("ECW".equals(codeString))
911          return ECW;
912        if ("CONCURRENT".equals(codeString))
913          return CONCURRENT;
914        if ("SBSECWE".equals(codeString))
915          return SBSECWE;
916        if ("ENS".equals(codeString))
917          return ENS;
918        if ("ECWS".equals(codeString))
919          return ECWS;
920        if ("SNE".equals(codeString))
921          return SNE;
922        if ("SCWE".equals(codeString))
923          return SCWE;
924        if ("SNS".equals(codeString))
925          return SNS;
926        if ("SCW".equals(codeString))
927          return SCW;
928        if ("SCWSEBE".equals(codeString))
929          return SCWSEBE;
930        if ("SCWSEAE".equals(codeString))
931          return SCWSEAE;
932        if ("EAS".equals(codeString))
933          return EAS;
934        if ("EAE".equals(codeString))
935          return EAE;
936        if ("SASEAE".equals(codeString))
937          return SASEAE;
938        if ("SBEEAE".equals(codeString))
939          return SBEEAE;
940        if ("SASSBEEAS".equals(codeString))
941          return SASSBEEAS;
942        if ("SBSEAE".equals(codeString))
943          return SBSEAE;
944        if ("SAS".equals(codeString))
945          return SAS;
946        if ("SAE".equals(codeString))
947          return SAE;
948        if ("DURING".equals(codeString))
949          return DURING;
950        if ("SASECWE".equals(codeString))
951          return SASECWE;
952        if ("EASORECWS".equals(codeString))
953          return EASORECWS;
954        if ("EAEORECW".equals(codeString))
955          return EAEORECW;
956        if ("INDEPENDENT".equals(codeString))
957          return INDEPENDENT;
958        if ("SAEORSCWE".equals(codeString))
959          return SAEORSCWE;
960        if ("SASORSCW".equals(codeString))
961          return SASORSCW;
962        if ("SBEORSCWE".equals(codeString))
963          return SBEORSCWE;
964        if ("OVERLAP".equals(codeString))
965          return OVERLAP;
966        if ("EDU".equals(codeString))
967          return EDU;
968        if ("SBSEASEBE".equals(codeString))
969          return SBSEASEBE;
970        if ("SBSEAS".equals(codeString))
971          return SBSEAS;
972        if ("SDU".equals(codeString))
973          return SDU;
974        if ("SBE".equals(codeString))
975          return SBE;
976        if ("EBE".equals(codeString))
977          return EBE;
978        if ("SBSEBE".equals(codeString))
979          return SBSEBE;
980        if ("EBSORECWS".equals(codeString))
981          return EBSORECWS;
982        if ("EBS".equals(codeString))
983          return EBS;
984        if ("EBEORECW".equals(codeString))
985          return EBEORECW;
986        if ("SBSORSCW".equals(codeString))
987          return SBSORSCW;
988        if ("SBS".equals(codeString))
989          return SBS;
990        if ("AUTH".equals(codeString))
991          return AUTH;
992        if ("CAUS".equals(codeString))
993          return CAUS;
994        if ("COMP".equals(codeString))
995          return COMP;
996        if ("CTRLV".equals(codeString))
997          return CTRLV;
998        if ("MBR".equals(codeString))
999          return MBR;
1000        if ("STEP".equals(codeString))
1001          return STEP;
1002        if ("ARR".equals(codeString))
1003          return ARR;
1004        if ("DEP".equals(codeString))
1005          return DEP;
1006        if ("PART".equals(codeString))
1007          return PART;
1008        if ("COVBY".equals(codeString))
1009          return COVBY;
1010        if ("DRIV".equals(codeString))
1011          return DRIV;
1012        if ("ELNK".equals(codeString))
1013          return ELNK;
1014        if ("EVID".equals(codeString))
1015          return EVID;
1016        if ("EXACBY".equals(codeString))
1017          return EXACBY;
1018        if ("EXPL".equals(codeString))
1019          return EXPL;
1020        if ("INTF".equals(codeString))
1021          return INTF;
1022        if ("ITEMSLOC".equals(codeString))
1023          return ITEMSLOC;
1024        if ("LIMIT".equals(codeString))
1025          return LIMIT;
1026        if ("META".equals(codeString))
1027          return META;
1028        if ("MFST".equals(codeString))
1029          return MFST;
1030        if ("NAME".equals(codeString))
1031          return NAME;
1032        if ("OUTC".equals(codeString))
1033          return OUTC;
1034        if ("_ActRelationsipObjective".equals(codeString))
1035          return _ACTRELATIONSIPOBJECTIVE;
1036        if ("OBJC".equals(codeString))
1037          return OBJC;
1038        if ("OBJF".equals(codeString))
1039          return OBJF;
1040        if ("GOAL".equals(codeString))
1041          return GOAL;
1042        if ("RISK".equals(codeString))
1043          return RISK;
1044        if ("PERT".equals(codeString))
1045          return PERT;
1046        if ("PREV".equals(codeString))
1047          return PREV;
1048        if ("REFR".equals(codeString))
1049          return REFR;
1050        if ("USE".equals(codeString))
1051          return USE;
1052        if ("REFV".equals(codeString))
1053          return REFV;
1054        if ("RELVBY".equals(codeString))
1055          return RELVBY;
1056        if ("SEQL".equals(codeString))
1057          return SEQL;
1058        if ("APND".equals(codeString))
1059          return APND;
1060        if ("BSLN".equals(codeString))
1061          return BSLN;
1062        if ("COMPLY".equals(codeString))
1063          return COMPLY;
1064        if ("DOC".equals(codeString))
1065          return DOC;
1066        if ("FLFS".equals(codeString))
1067          return FLFS;
1068        if ("OCCR".equals(codeString))
1069          return OCCR;
1070        if ("OREF".equals(codeString))
1071          return OREF;
1072        if ("SCH".equals(codeString))
1073          return SCH;
1074        if ("GEN".equals(codeString))
1075          return GEN;
1076        if ("GEVL".equals(codeString))
1077          return GEVL;
1078        if ("INST".equals(codeString))
1079          return INST;
1080        if ("MOD".equals(codeString))
1081          return MOD;
1082        if ("MTCH".equals(codeString))
1083          return MTCH;
1084        if ("OPTN".equals(codeString))
1085          return OPTN;
1086        if ("RCHAL".equals(codeString))
1087          return RCHAL;
1088        if ("REV".equals(codeString))
1089          return REV;
1090        if ("RPLC".equals(codeString))
1091          return RPLC;
1092        if ("SUCC".equals(codeString))
1093          return SUCC;
1094        if ("UPDT".equals(codeString))
1095          return UPDT;
1096        if ("XCRPT".equals(codeString))
1097          return XCRPT;
1098        if ("VRXCRPT".equals(codeString))
1099          return VRXCRPT;
1100        if ("XFRM".equals(codeString))
1101          return XFRM;
1102        if ("SPRT".equals(codeString))
1103          return SPRT;
1104        if ("SPRTBND".equals(codeString))
1105          return SPRTBND;
1106        if ("SUBJ".equals(codeString))
1107          return SUBJ;
1108        if ("QUALF".equals(codeString))
1109          return QUALF;
1110        if ("SUMM".equals(codeString))
1111          return SUMM;
1112        if ("VALUE".equals(codeString))
1113          return VALUE;
1114        if ("CURE".equals(codeString))
1115          return CURE;
1116        if ("CURE.ADJ".equals(codeString))
1117          return CURE_ADJ;
1118        if ("MTGT.ADJ".equals(codeString))
1119          return MTGT_ADJ;
1120        if ("RACT".equals(codeString))
1121          return RACT;
1122        if ("SUGG".equals(codeString))
1123          return SUGG;
1124        throw new FHIRException("Unknown V3ActRelationshipType code '"+codeString+"'");
1125        }
1126        public String toCode() {
1127          switch (this) {
1128            case ART: return "ART";
1129            case _ACTCLASSTEMPORALLYPERTAINS: return "_ActClassTemporallyPertains";
1130            case _ACTRELATIONSHIPACCOUNTING: return "_ActRelationshipAccounting";
1131            case _ACTRELATIONSHIPCOSTTRACKING: return "_ActRelationshipCostTracking";
1132            case CHRG: return "CHRG";
1133            case COST: return "COST";
1134            case _ACTRELATIONSHIPPOSTING: return "_ActRelationshipPosting";
1135            case CREDIT: return "CREDIT";
1136            case DEBIT: return "DEBIT";
1137            case _ACTRELATIONSHIPCONDITIONAL: return "_ActRelationshipConditional";
1138            case CIND: return "CIND";
1139            case PRCN: return "PRCN";
1140            case RSON: return "RSON";
1141            case BLOCK: return "BLOCK";
1142            case DIAG: return "DIAG";
1143            case IMM: return "IMM";
1144            case ACTIMM: return "ACTIMM";
1145            case PASSIMM: return "PASSIMM";
1146            case MITGT: return "MITGT";
1147            case RCVY: return "RCVY";
1148            case PRYLX: return "PRYLX";
1149            case TREAT: return "TREAT";
1150            case ADJUNCT: return "ADJUNCT";
1151            case MTREAT: return "MTREAT";
1152            case PALLTREAT: return "PALLTREAT";
1153            case SYMP: return "SYMP";
1154            case TRIG: return "TRIG";
1155            case _ACTRELATIONSHIPTEMPORALLYPERTAINS: return "_ActRelationshipTemporallyPertains";
1156            case _ACTRELATIONSHIPTEMPORALLYPERTAINSAPPROXIMATES: return "_ActRelationshipTemporallyPertainsApproximates";
1157            case ENE: return "ENE";
1158            case ECW: return "ECW";
1159            case CONCURRENT: return "CONCURRENT";
1160            case SBSECWE: return "SBSECWE";
1161            case ENS: return "ENS";
1162            case ECWS: return "ECWS";
1163            case SNE: return "SNE";
1164            case SCWE: return "SCWE";
1165            case SNS: return "SNS";
1166            case SCW: return "SCW";
1167            case SCWSEBE: return "SCWSEBE";
1168            case SCWSEAE: return "SCWSEAE";
1169            case EAS: return "EAS";
1170            case EAE: return "EAE";
1171            case SASEAE: return "SASEAE";
1172            case SBEEAE: return "SBEEAE";
1173            case SASSBEEAS: return "SASSBEEAS";
1174            case SBSEAE: return "SBSEAE";
1175            case SAS: return "SAS";
1176            case SAE: return "SAE";
1177            case DURING: return "DURING";
1178            case SASECWE: return "SASECWE";
1179            case EASORECWS: return "EASORECWS";
1180            case EAEORECW: return "EAEORECW";
1181            case INDEPENDENT: return "INDEPENDENT";
1182            case SAEORSCWE: return "SAEORSCWE";
1183            case SASORSCW: return "SASORSCW";
1184            case SBEORSCWE: return "SBEORSCWE";
1185            case OVERLAP: return "OVERLAP";
1186            case EDU: return "EDU";
1187            case SBSEASEBE: return "SBSEASEBE";
1188            case SBSEAS: return "SBSEAS";
1189            case SDU: return "SDU";
1190            case SBE: return "SBE";
1191            case EBE: return "EBE";
1192            case SBSEBE: return "SBSEBE";
1193            case EBSORECWS: return "EBSORECWS";
1194            case EBS: return "EBS";
1195            case EBEORECW: return "EBEORECW";
1196            case SBSORSCW: return "SBSORSCW";
1197            case SBS: return "SBS";
1198            case AUTH: return "AUTH";
1199            case CAUS: return "CAUS";
1200            case COMP: return "COMP";
1201            case CTRLV: return "CTRLV";
1202            case MBR: return "MBR";
1203            case STEP: return "STEP";
1204            case ARR: return "ARR";
1205            case DEP: return "DEP";
1206            case PART: return "PART";
1207            case COVBY: return "COVBY";
1208            case DRIV: return "DRIV";
1209            case ELNK: return "ELNK";
1210            case EVID: return "EVID";
1211            case EXACBY: return "EXACBY";
1212            case EXPL: return "EXPL";
1213            case INTF: return "INTF";
1214            case ITEMSLOC: return "ITEMSLOC";
1215            case LIMIT: return "LIMIT";
1216            case META: return "META";
1217            case MFST: return "MFST";
1218            case NAME: return "NAME";
1219            case OUTC: return "OUTC";
1220            case _ACTRELATIONSIPOBJECTIVE: return "_ActRelationsipObjective";
1221            case OBJC: return "OBJC";
1222            case OBJF: return "OBJF";
1223            case GOAL: return "GOAL";
1224            case RISK: return "RISK";
1225            case PERT: return "PERT";
1226            case PREV: return "PREV";
1227            case REFR: return "REFR";
1228            case USE: return "USE";
1229            case REFV: return "REFV";
1230            case RELVBY: return "RELVBY";
1231            case SEQL: return "SEQL";
1232            case APND: return "APND";
1233            case BSLN: return "BSLN";
1234            case COMPLY: return "COMPLY";
1235            case DOC: return "DOC";
1236            case FLFS: return "FLFS";
1237            case OCCR: return "OCCR";
1238            case OREF: return "OREF";
1239            case SCH: return "SCH";
1240            case GEN: return "GEN";
1241            case GEVL: return "GEVL";
1242            case INST: return "INST";
1243            case MOD: return "MOD";
1244            case MTCH: return "MTCH";
1245            case OPTN: return "OPTN";
1246            case RCHAL: return "RCHAL";
1247            case REV: return "REV";
1248            case RPLC: return "RPLC";
1249            case SUCC: return "SUCC";
1250            case UPDT: return "UPDT";
1251            case XCRPT: return "XCRPT";
1252            case VRXCRPT: return "VRXCRPT";
1253            case XFRM: return "XFRM";
1254            case SPRT: return "SPRT";
1255            case SPRTBND: return "SPRTBND";
1256            case SUBJ: return "SUBJ";
1257            case QUALF: return "QUALF";
1258            case SUMM: return "SUMM";
1259            case VALUE: return "VALUE";
1260            case CURE: return "CURE";
1261            case CURE_ADJ: return "CURE.ADJ";
1262            case MTGT_ADJ: return "MTGT.ADJ";
1263            case RACT: return "RACT";
1264            case SUGG: return "SUGG";
1265            default: return "?";
1266          }
1267        }
1268        public String getSystem() {
1269          return "http://terminology.hl7.org/CodeSystem/v3-ActRelationshipType";
1270        }
1271        public String getDefinition() {
1272          switch (this) {
1273            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)";
1274            case _ACTCLASSTEMPORALLYPERTAINS: return "ActClassTemporallyPertains";
1275            case _ACTRELATIONSHIPACCOUNTING: return "Codes that describe the relationship between an Act and a financial instrument such as a financial transaction, account or invoice element.";
1276            case _ACTRELATIONSHIPCOSTTRACKING: return "Expresses values for describing the relationship relationship between an InvoiceElement or InvoiceElementGroup and a billable act.";
1277            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.";
1278            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.";
1279            case _ACTRELATIONSHIPPOSTING: return "Expresses values for describing the relationship between a FinancialTransaction and an Account.";
1280            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.";
1281            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.";
1282            case _ACTRELATIONSHIPCONDITIONAL: return "Specifies under what circumstances (target Act) the source-Act may, must, must not or has occurred";
1283            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.";
1284            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.";
1285            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.";
1286            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.";
1287            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.";
1288            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)";
1289            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)";
1290            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).";
1291            case MITGT: return "The source act removes or lessens the occurrence or effect of the target act.";
1292            case RCVY: return "Definition: The source act is performed to recover from the effects of the target act.";
1293            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.";
1294            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.";
1295            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.";
1296            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.";
1297            case PALLTREAT: return "Description: The source act is intended to provide palliation for the effects of the target act.";
1298            case SYMP: return "Description: The source act is intented to provide symptomatic relief for the effects of the target act.";
1299            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.";
1300            case _ACTRELATIONSHIPTEMPORALLYPERTAINS: return "Abstract collector for ActRelationhsip types that relate two acts by their timing.";
1301            case _ACTRELATIONSHIPTEMPORALLYPERTAINSAPPROXIMATES: return "Abstract collector for ActRelationship types that relate two acts by their approximate timing.";
1302            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";
1303            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.";
1304            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.";
1305            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";
1306            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";
1307            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";
1308            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";
1309            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";
1310            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";
1311            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.";
1312            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";
1313            case SCWSEAE: return "The source Act starts with the target Act, and ends after the end of the target Act.";
1314            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";
1315            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";
1316            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";
1317            case SBEEAE: return "The source Act contains the end of the target Act.\r\n\n                        \n                           UsageNote: Inverse code is EDU";
1318            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";
1319            case SBSEAE: return "The source Act contains the time of the target Act.\r\n\n                        \n                           UsageNote: Inverse code is DURING";
1320            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";
1321            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";
1322            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";
1323            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";
1324            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";
1325            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";
1326            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.";
1327            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";
1328            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";
1329            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";
1330            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.";
1331            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";
1332            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";
1333            case SBSEAS: return "The source Act contains the start of the target Act.\r\n\n                        \n                           UsageNote: Inverse code is SDU";
1334            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";
1335            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";
1336            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";
1337            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";
1338            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";
1339            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";
1340            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";
1341            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";
1342            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";
1343            case AUTH: return "A relationship in which the target act authorizes or certifies the source act.";
1344            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";
1345            case COMP: return "The target act is a component of the source act, with no semantics regarding composition or aggregation implied.";
1346            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.";
1347            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";
1348            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.";
1349            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.";
1350            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.";
1351            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.\"";
1352            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.";
1353            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.";
1354            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.";
1355            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.";
1356            case EXACBY: return "Description:The source act is aggravated by the target act. (Example \"chest pain\" EXACBY \"exercise\")";
1357            case EXPL: return "This is the inversion of support.  Used to indicate that a given observation is explained by another observation or condition.";
1358            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";
1359            case ITEMSLOC: return "Items located";
1360            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.";
1361            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\".";
1362            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.";
1363            case NAME: return "Used to assign a \"name\" to a condition thread. Source is a condition node, target can be any service.";
1364            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.";
1365            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.";
1366            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.";
1367            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.";
1368            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.";
1369            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.";
1370            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.";
1371            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.";
1372            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.";
1373            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.";
1374            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.";
1375            case RELVBY: return "Description:The source act is wholly or partially alleviated by the target act. (Example \"chest pain\" RELVBY \"sublingual nitroglycerin administration\")";
1376            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.";
1377            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.";
1378            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.";
1379            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.";
1380            case DOC: return "The source act documents the target act.";
1381            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.";
1382            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).";
1383            case OREF: return "Relates either an appointment request or an appointment to the order for the service being scheduled.";
1384            case SCH: return "Associates a specific time (and associated resources) with a scheduling request or other intent.";
1385            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).";
1386            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.";
1387            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.";
1388            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\"";
1389            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.";
1390            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.";
1391            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.";
1392            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.";
1393            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.";
1394            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.";
1395            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.";
1396            case XCRPT: return "The source is an excerpt from the target.";
1397            case VRXCRPT: return "The source is a direct quote from the target.";
1398            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.)";
1399            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).";
1400            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.";
1401            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.";
1402            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.";
1403            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.";
1404            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.";
1405            case CURE: return "curative indication";
1406            case CURE_ADJ: return "adjunct curative indication";
1407            case MTGT_ADJ: return "adjunct mitigation";
1408            case RACT: return "";
1409            case SUGG: return "";
1410            default: return "?";
1411          }
1412        }
1413        public String getDisplay() {
1414          switch (this) {
1415            case ART: return "act relationship type";
1416            case _ACTCLASSTEMPORALLYPERTAINS: return "ActClassTemporallyPertains";
1417            case _ACTRELATIONSHIPACCOUNTING: return "ActRelationshipAccounting";
1418            case _ACTRELATIONSHIPCOSTTRACKING: return "ActRelationshipCostTracking";
1419            case CHRG: return "has charge";
1420            case COST: return "has cost";
1421            case _ACTRELATIONSHIPPOSTING: return "ActRelationshipPosting";
1422            case CREDIT: return "has credit";
1423            case DEBIT: return "has debit";
1424            case _ACTRELATIONSHIPCONDITIONAL: return "ActRelationshipConditional";
1425            case CIND: return "has contra-indication";
1426            case PRCN: return "has pre-condition";
1427            case RSON: return "has reason";
1428            case BLOCK: return "blocks";
1429            case DIAG: return "diagnoses";
1430            case IMM: return "immunization against";
1431            case ACTIMM: return "active immunization against";
1432            case PASSIMM: return "passive immunization against";
1433            case MITGT: return "mitigates";
1434            case RCVY: return "recovers";
1435            case PRYLX: return "prophylaxis of";
1436            case TREAT: return "treats";
1437            case ADJUNCT: return "adjunctive treatment";
1438            case MTREAT: return "maintenance treatment";
1439            case PALLTREAT: return "palliates";
1440            case SYMP: return "symptomatic relief";
1441            case TRIG: return "has trigger";
1442            case _ACTRELATIONSHIPTEMPORALLYPERTAINS: return "ActRelationshipTemporallyPertains";
1443            case _ACTRELATIONSHIPTEMPORALLYPERTAINSAPPROXIMATES: return "ActRelationshipTemporallyPertainsApproximates";
1444            case ENE: return "ends near end";
1445            case ECW: return "ends concurrent with";
1446            case CONCURRENT: return "concurrent with";
1447            case SBSECWE: return "starts before start of, ends with";
1448            case ENS: return "ends near start";
1449            case ECWS: return "ends concurrent with start of";
1450            case SNE: return "starts near end";
1451            case SCWE: return "starts concurrent with end of";
1452            case SNS: return "starts near start";
1453            case SCW: return "starts concurrent with";
1454            case SCWSEBE: return "starts with. ends before end of";
1455            case SCWSEAE: return "starts with, ends after end of";
1456            case EAS: return "ends after start of";
1457            case EAE: return "ends after end of";
1458            case SASEAE: return "starts after start of, ends after end of";
1459            case SBEEAE: return "contains end of";
1460            case SASSBEEAS: return "start after start of, contains end of";
1461            case SBSEAE: return "contains time of";
1462            case SAS: return "starts after start of";
1463            case SAE: return "starts after end of";
1464            case DURING: return "occurs during";
1465            case SASECWE: return "starts after start of, ends with";
1466            case EASORECWS: return "ends after or concurrent with start of";
1467            case EAEORECW: return "ends after or concurrent with end of";
1468            case INDEPENDENT: return "independent of time of";
1469            case SAEORSCWE: return "starts after or concurrent with end of";
1470            case SASORSCW: return "starts after or concurrent with start of";
1471            case SBEORSCWE: return "starts before or concurrent with end of";
1472            case OVERLAP: return "overlaps with";
1473            case EDU: return "ends during";
1474            case SBSEASEBE: return "contains start of, ends before end of";
1475            case SBSEAS: return "contains start of";
1476            case SDU: return "starts during";
1477            case SBE: return "starts before end of";
1478            case EBE: return "ends before end of";
1479            case SBSEBE: return "starts before start of, ends before end of";
1480            case EBSORECWS: return "ends before or concurrent with start of";
1481            case EBS: return "ends before start of";
1482            case EBEORECW: return "ends before or concurrent with end of";
1483            case SBSORSCW: return "starts before or concurrent with start of";
1484            case SBS: return "starts before start of";
1485            case AUTH: return "authorized by";
1486            case CAUS: return "is etiology for";
1487            case COMP: return "has component";
1488            case CTRLV: return "has control variable";
1489            case MBR: return "has member";
1490            case STEP: return "has step";
1491            case ARR: return "arrival";
1492            case DEP: return "departure";
1493            case PART: return "has part";
1494            case COVBY: return "covered by";
1495            case DRIV: return "is derived from";
1496            case ELNK: return "episodeLink";
1497            case EVID: return "provides evidence for";
1498            case EXACBY: return "exacerbated by";
1499            case EXPL: return "has explanation";
1500            case INTF: return "interfered by";
1501            case ITEMSLOC: return "items located";
1502            case LIMIT: return "limited by";
1503            case META: return "has metadata";
1504            case MFST: return "is manifestation of";
1505            case NAME: return "assigns name";
1506            case OUTC: return "has outcome";
1507            case _ACTRELATIONSIPOBJECTIVE: return "Act Relationsip Objective";
1508            case OBJC: return "has continuing objective";
1509            case OBJF: return "has final objective";
1510            case GOAL: return "has goal";
1511            case RISK: return "has risk";
1512            case PERT: return "has pertinent information";
1513            case PREV: return "has previous instance";
1514            case REFR: return "refers to";
1515            case USE: return "uses";
1516            case REFV: return "has reference values";
1517            case RELVBY: return "relieved by";
1518            case SEQL: return "is sequel";
1519            case APND: return "is appendage";
1520            case BSLN: return "has baseline";
1521            case COMPLY: return "complies with";
1522            case DOC: return "documents";
1523            case FLFS: return "fulfills";
1524            case OCCR: return "occurrence";
1525            case OREF: return "references order";
1526            case SCH: return "schedules request";
1527            case GEN: return "has generalization";
1528            case GEVL: return "evaluates (goal)";
1529            case INST: return "instantiates (master)";
1530            case MOD: return "modifies";
1531            case MTCH: return "matches (trigger)";
1532            case OPTN: return "has option";
1533            case RCHAL: return "re-challenge";
1534            case REV: return "reverses";
1535            case RPLC: return "replaces";
1536            case SUCC: return "succeeds";
1537            case UPDT: return "updates (condition)";
1538            case XCRPT: return "Excerpts";
1539            case VRXCRPT: return "Excerpt verbatim";
1540            case XFRM: return "transformation";
1541            case SPRT: return "has support";
1542            case SPRTBND: return "has bounded support";
1543            case SUBJ: return "has subject";
1544            case QUALF: return "has qualifier";
1545            case SUMM: return "summarized by";
1546            case VALUE: return "has value";
1547            case CURE: return "curative indication";
1548            case CURE_ADJ: return "adjunct curative indication";
1549            case MTGT_ADJ: return "adjunct mitigation";
1550            case RACT: return "RACT";
1551            case SUGG: return "SUGG";
1552            default: return "?";
1553          }
1554    }
1555
1556
1557}
1558