Snapshot 3: Connectathon 32 Base

This is Snapshot #3 for FHIR R5, released to support Connectathon 32. For a full list of available versions, see the Directory of published versions.

Example StructureDefinition/Task (Turtle)

Orders and Observations Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

Raw Turtle (+ also see Turtle/RDF Format Specification)

StructureDefinition for task

@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

# - resource -------------------------------------------------------------------

[] a fhir:StructureDefinition;
  fhir:Resource.id [ fhir:value "Task"];
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2022-12-14T07:12:54.019+11:00" ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  fhir:DomainResource.extension [
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-category" ];
     fhir:Extension.value [ fhir:value "Base.Workflow" ]
  ], [
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ];
     fhir:Extension.value [ fhir:value "trial-use" ]
  ], [
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ];
     fhir:Extension.value [ fhir:value "2" ]
  ], [
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category" ];
     fhir:Extension.value [ fhir:value "not-classified" ]
  ], [
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ];
     fhir:Extension.value [ fhir:value "oo" ]
  ];
  fhir:CanonicalResource.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/Task"];
  fhir:CanonicalResource.version [ fhir:value "5.0.0-snapshot3"];
  fhir:CanonicalResource.name [ fhir:value "Task"];
  fhir:CanonicalResource.status [ fhir:value "draft"];
  fhir:CanonicalResource.experimental [ fhir:value "false"];
  fhir:CanonicalResource.date [ fhir:value "2022-12-14T07:12:54+11:00"];
  fhir:CanonicalResource.publisher [ fhir:value "Health Level Seven International (Orders and Observations)"];
  fhir:CanonicalResource.contact [
     fhir:ContactDetail.telecom [
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
     ]
  ], [
     fhir:ContactDetail.telecom [
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://www.hl7.org/Special/committees/orders/index.cfm" ]
     ]
  ];
  fhir:CanonicalResource.description [ fhir:value "A task to be performed."];
  fhir:CanonicalResource.jurisdiction [
     fhir:CodeableConcept.coding [
       fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ];
       fhir:Coding.code [ fhir:value "001" ];
       fhir:Coding.display [ fhir:value "World" ]
     ]
  ];
  fhir:StructureDefinition.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/Task"];
  fhir:StructureDefinition.version [ fhir:value "5.0.0-snapshot3"];
  fhir:StructureDefinition.name [ fhir:value "Task"];
  fhir:StructureDefinition.status [ fhir:value "draft"];
  fhir:StructureDefinition.experimental [ fhir:value "false"];
  fhir:StructureDefinition.date [ fhir:value "2022-12-14T07:12:54+11:00"];
  fhir:StructureDefinition.publisher [ fhir:value "Health Level Seven International (Orders and Observations)"];
  fhir:StructureDefinition.contact [
     fhir:ContactDetail.telecom [
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
     ]
  ], [
     fhir:ContactDetail.telecom [
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://www.hl7.org/Special/committees/orders/index.cfm" ]
     ]
  ];
  fhir:StructureDefinition.description [ fhir:value "A task to be performed."];
  fhir:StructureDefinition.jurisdiction [
     fhir:CodeableConcept.coding [
       fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ];
       fhir:Coding.code [ fhir:value "001" ];
       fhir:Coding.display [ fhir:value "World" ]
     ]
  ];
  fhir:StructureDefinition.fhirVersion [ fhir:value "5.0.0-snapshot3"];
  fhir:StructureDefinition.mapping [
     fhir:StructureDefinitionMappingComponent.identity [ fhir:value "workflow" ];
     fhir:StructureDefinitionMappingComponent.uri [ fhir:value "http://hl7.org/fhir/workflow" ];
     fhir:StructureDefinitionMappingComponent.name [ fhir:value "Workflow Pattern" ]
  ], [
     fhir:StructureDefinitionMappingComponent.identity [ fhir:value "rim" ];
     fhir:StructureDefinitionMappingComponent.uri [ fhir:value "http://hl7.org/v3" ];
     fhir:StructureDefinitionMappingComponent.name [ fhir:value "RIM Mapping" ]
  ], [
     fhir:StructureDefinitionMappingComponent.identity [ fhir:value "w5" ];
     fhir:StructureDefinitionMappingComponent.uri [ fhir:value "http://hl7.org/fhir/fivews" ];
     fhir:StructureDefinitionMappingComponent.name [ fhir:value "FiveWs Pattern Mapping" ]
  ], [
     fhir:StructureDefinitionMappingComponent.identity [ fhir:value "v2" ];
     fhir:StructureDefinitionMappingComponent.uri [ fhir:value "http://hl7.org/v2" ];
     fhir:StructureDefinitionMappingComponent.name [ fhir:value "HL7 v2 Mapping" ]
  ];
  fhir:StructureDefinition.kind [ fhir:value "resource"];
  fhir:StructureDefinition.abstract [ fhir:value "false"];
  fhir:StructureDefinition.type [ fhir:value "Task"];
  fhir:StructureDefinition.baseDefinition [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource"];
  fhir:StructureDefinition.derivation [ fhir:value "specialization"];
  fhir:StructureDefinition.snapshot [
     fhir:StructureDefinitionSnapshotComponent.element [
       fhir:Element.id [ fhir:value "Task" ];
       fhir:ElementDefinition.path [ fhir:value "Task" ];
       fhir:ElementDefinition.short [ fhir:value "A task to be performed" ];
       fhir:ElementDefinition.definition [ fhir:value "A task to be performed." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "dom-2" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "If the resource is contained in another resource, it SHALL NOT contain nested Resources" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "contained.contained.empty()" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ]
       ], [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "dom-3" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ]
       ], [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "dom-4" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ]
       ], [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "dom-5" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "If a resource is contained in another resource, it SHALL NOT have a security label" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "contained.meta.security.empty()" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ]
       ], [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice" ];
           fhir:Extension.value [ fhir:value "true" ]
         ], [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation" ];
           fhir:Extension.value [ fhir:value "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." ]
         ];
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "dom-6" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "warning" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "A resource should have narrative for robust management" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "text.`div`.exists()" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ]
       ], [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "inv-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Last modified date must be greater than or equal to authored-on date." ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Task" ]
       ], [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "tsk-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Task.restriction is only allowed if the Task is seeking fulfillment and a focus is specified." ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "restriction.exists() implies code.coding.where(code='fulfill' and system='http://hl7.org/fhir/CodeSystem/task-code').exists() and focus.exists()" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Task" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Entity. Role, or Act" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request, Event" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "ControlAct[moodCode=INT]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "workflow.order" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.id" ];
       fhir:ElementDefinition.path [ fhir:value "Task.id" ];
       fhir:ElementDefinition.short [ fhir:value "Logical id of this artifact" ];
       fhir:ElementDefinition.definition [ fhir:value "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ];
       fhir:ElementDefinition.comment [ fhir:value "Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Resource.id" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.value [ fhir:value "id" ]
         ];
         fhir:TypeRefComponent.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ]
     ], [
       fhir:Element.id [ fhir:value "Task.meta" ];
       fhir:ElementDefinition.path [ fhir:value "Task.meta" ];
       fhir:ElementDefinition.short [ fhir:value "Metadata about the resource" ];
       fhir:ElementDefinition.definition [ fhir:value "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Resource.meta" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Meta" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ]
     ], [
       fhir:Element.id [ fhir:value "Task.implicitRules" ];
       fhir:ElementDefinition.path [ fhir:value "Task.implicitRules" ];
       fhir:ElementDefinition.short [ fhir:value "A set of rules under which this content was created" ];
       fhir:ElementDefinition.definition [ fhir:value "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc." ];
       fhir:ElementDefinition.comment [ fhir:value "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Resource.implicitRules" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "uri" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ]
     ], [
       fhir:Element.id [ fhir:value "Task.language" ];
       fhir:ElementDefinition.path [ fhir:value "Task.language" ];
       fhir:ElementDefinition.short [ fhir:value "Language of the resource content" ];
       fhir:ElementDefinition.definition [ fhir:value "The base language in which the resource is written." ];
       fhir:ElementDefinition.comment [ fhir:value "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Resource.language" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet" ];
           fhir:Extension.value [ fhir:value "http://hl7.org/fhir/ValueSet/all-languages" ]
         ], [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "Language" ]
         ], [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding" ];
           fhir:Extension.value [ fhir:value "true" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "preferred" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "IETF language tag" ];
         fhir:ElementDefinitionBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/languages" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.text" ];
       fhir:ElementDefinition.path [ fhir:value "Task.text" ];
       fhir:ElementDefinition.short [ fhir:value "Text summary of the resource, for human interpretation" ];
       fhir:ElementDefinition.definition [ fhir:value "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." ];
       fhir:ElementDefinition.comment [ fhir:value "Contained resources do not have a narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later." ];
       fhir:ElementDefinition.alias [ fhir:value "narrative" ], [ fhir:value "html" ], [ fhir:value "xhtml" ], [ fhir:value "display" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "DomainResource.text" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Narrative" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Act.text?" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.contained" ];
       fhir:ElementDefinition.path [ fhir:value "Task.contained" ];
       fhir:ElementDefinition.short [ fhir:value "Contained, inline Resources" ];
       fhir:ElementDefinition.definition [ fhir:value "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning." ];
       fhir:ElementDefinition.comment [ fhir:value "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags in their meta elements, but SHALL NOT have security labels." ];
       fhir:ElementDefinition.alias [ fhir:value "inline resources" ], [ fhir:value "anonymous resources" ], [ fhir:value "contained resources" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "DomainResource.contained" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Resource" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Task.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [ fhir:value "extensions" ], [ fhir:value "user content" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "DomainResource.extension" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ext-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "Task.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." ];
       fhir:ElementDefinition.alias [ fhir:value "extensions" ], [ fhir:value "user content" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "DomainResource.modifierExtension" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ext-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.identifier" ];
       fhir:ElementDefinition.path [ fhir:value "Task.identifier" ];
       fhir:ElementDefinition.short [ fhir:value "Task Instance Identifier" ];
       fhir:ElementDefinition.definition [ fhir:value "The business identifier for this task." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.identifier" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Identifier" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.identifier, Event.identifier" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.identifier" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".id" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.instantiatesCanonical" ];
       fhir:ElementDefinition.path [ fhir:value "Task.instantiatesCanonical" ];
       fhir:ElementDefinition.short [ fhir:value "Formal definition of task" ];
       fhir:ElementDefinition.definition [ fhir:value "The URL pointing to a *FHIR*-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this Task." ];
       fhir:ElementDefinition.requirements [ fhir:value "Enables a formal definition of how the task is to be performed, enabling automation." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.instantiatesCanonical" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "canonical" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/ActivityDefinition" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.instantiatesCanonical, Event.instantiatesCanonical" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".outboundRelationship[typeCode=DEFN].target" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.instantiatesUri" ];
       fhir:ElementDefinition.path [ fhir:value "Task.instantiatesUri" ];
       fhir:ElementDefinition.short [ fhir:value "Formal definition of task" ];
       fhir:ElementDefinition.definition [ fhir:value "The URL pointing to an *externally* maintained  protocol, guideline, orderset or other definition that is adhered to in whole or in part by this Task." ];
       fhir:ElementDefinition.requirements [ fhir:value "Enables a formal definition of how the task is to be performed (e.g. using BPMN, BPEL, XPDL or other formal notation to be associated with a task), enabling automation." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.instantiatesUri" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "uri" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Event.instantiatesUrl" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".outboundRelationship[typeCode=DEFN].target" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.basedOn" ];
       fhir:ElementDefinition.path [ fhir:value "Task.basedOn" ];
       fhir:ElementDefinition.short [ fhir:value "Request fulfilled by this task" ];
       fhir:ElementDefinition.definition [ fhir:value "BasedOn refers to a higher-level authorization that triggered the creation of the task.  It references a \"request\" resource such as a ServiceRequest, MedicationRequest, CarePlan, etc. which is distinct from the \"request\" resource the task is seeking to fulfill.  This latter resource is referenced by focus.  For example, based on a CarePlan (= basedOn), a task is created to fulfill a ServiceRequest ( = focus ) to collect a specimen from a patient." ];
       fhir:ElementDefinition.comment [ fhir:value "Task.basedOn is never the same as Task.focus.  Task.basedOn will typically not be present for 'please fulfill' Tasks as a distinct authorization is rarely needed to request fulfillment.  If the Task is seeking fulfillment of an order, the order to be fulfilled is always communicated using `focus`, never basedOn.  However, authorization may be needed to perform other types of Task actions.  As an example of when both would be present, a Task seeking suspension of a prescription might have a Task.basedOn pointing to the ServiceRequest ordering surgery (which is the driver for suspending the MedicationRequest - which would be the Task.focus)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.basedOn" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Resource" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.basedOn, Event.basedOn" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".outboundRelationship[typeCode=FLFS].target[moodCode=INT]" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.groupIdentifier" ];
       fhir:ElementDefinition.path [ fhir:value "Task.groupIdentifier" ];
       fhir:ElementDefinition.short [ fhir:value "Requisition or grouper id" ];
       fhir:ElementDefinition.definition [ fhir:value "An identifier that links together multiple tasks and other requests that were created in the same context." ];
       fhir:ElementDefinition.requirements [ fhir:value "Billing and/or reporting can be linked to whether multiple requests were created as a single unit." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.groupIdentifier" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Identifier" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.groupIdentifier" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship[typeCode=COMP].source[moodCode=INT].id" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.partOf" ];
       fhir:ElementDefinition.path [ fhir:value "Task.partOf" ];
       fhir:ElementDefinition.short [ fhir:value "Composite task" ];
       fhir:ElementDefinition.definition [ fhir:value "Task that this particular task is part of." ];
       fhir:ElementDefinition.comment [ fhir:value "This should usually be 0..1." ];
       fhir:ElementDefinition.requirements [ fhir:value "Allows tasks to be broken down into sub-steps (and this division can occur independent of the original task)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.partOf" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Task" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Event.partOf" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship[typeCode=COMP].source[moodCode=INT]" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.status" ];
       fhir:ElementDefinition.path [ fhir:value "Task.status" ];
       fhir:ElementDefinition.short [ fhir:value "draft | requested | received | accepted | +" ];
       fhir:ElementDefinition.definition [ fhir:value "The current status of the task." ];
       fhir:ElementDefinition.requirements [ fhir:value "These states enable coordination of task status with off-the-shelf workflow solutions that support automation of tasks." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.status" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "1" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskStatus" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "required" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "The current status of the task." ];
         fhir:ElementDefinitionBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/task-status|5.0.0-snapshot3" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.status, Event.status" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.status" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".statusCode" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.statusReason" ];
       fhir:ElementDefinition.path [ fhir:value "Task.statusReason" ];
       fhir:ElementDefinition.short [ fhir:value "Reason for current status" ];
       fhir:ElementDefinition.definition [ fhir:value "An explanation as to why this task is held, failed, was refused, etc." ];
       fhir:ElementDefinition.comment [ fhir:value "This applies to the current status.  Look at the history of the task to see reasons for past statuses." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.statusReason" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "CodeableReference" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskStatusReason" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "example" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "Codes to identify the reason for current status.  These will typically be specific to a particular workflow." ];
         fhir:ElementDefinitionBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/task-status-reason" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN, code=\"status change\"].reasonCode" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.businessStatus" ];
       fhir:ElementDefinition.path [ fhir:value "Task.businessStatus" ];
       fhir:ElementDefinition.short [ fhir:value "E.g. \"Specimen collected\", \"IV prepped\"" ];
       fhir:ElementDefinition.definition [ fhir:value "Contains business-specific nuances of the business state." ];
       fhir:ElementDefinition.requirements [ fhir:value "There's often a need to track substates of a task - this is often variable by specific workflow implementation." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.businessStatus" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskBusinessStatus" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "example" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "The domain-specific business-contextual sub-state of the task.  For example: \"Blood drawn\", \"IV inserted\", \"Awaiting physician signature\", etc." ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"business status\"]" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.intent" ];
       fhir:ElementDefinition.path [ fhir:value "Task.intent" ];
       fhir:ElementDefinition.short [ fhir:value "unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates the \"level\" of actionability associated with the Task, i.e. i+R[9]Cs this a proposed task, a planned task, an actionable task, etc." ];
       fhir:ElementDefinition.comment [ fhir:value "This element is immutable.  Proposed tasks, planned tasks, etc. must be distinct instances.\n\nIn most cases, Tasks will have an intent of \"order\"." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.intent" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "1" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskIntent" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "required" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "Distinguishes whether the task is a proposal, plan or full order." ];
         fhir:ElementDefinitionBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/task-intent|5.0.0-snapshot3" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.intent" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.class" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".moodCode" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.priority" ];
       fhir:ElementDefinition.path [ fhir:value "Task.priority" ];
       fhir:ElementDefinition.short [ fhir:value "routine | urgent | asap | stat" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates how quickly the Task should be addressed with respect to other requests." ];
       fhir:ElementDefinition.requirements [ fhir:value "Used to identify the service level expected while performing a task." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.priority" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.meaningWhenMissing [ fhir:value "If missing, this task should be performed with normal priority" ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskPriority" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "required" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "The priority of a task (may affect service level applied to the task)." ];
         fhir:ElementDefinitionBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/request-priority|5.0.0-snapshot3" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.priority" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.grade" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".priorityCode" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.doNotPerform" ];
       fhir:ElementDefinition.path [ fhir:value "Task.doNotPerform" ];
       fhir:ElementDefinition.short [ fhir:value "True if Task is prohibiting action" ];
       fhir:ElementDefinition.definition [ fhir:value "If true indicates that the Task is asking for the specified action to *not* occur." ];
       fhir:ElementDefinition.comment [ fhir:value "The attributes provided with the Task qualify what is not to be done. For example, if a requestedPeriod is provided, the 'do not' request only applies within the specified time. If a requestedPerformer is specified then the 'do not' request only applies to performers of that type. Qualifiers include: code, subject, occurrence, requestedPerformer and performer.\n\nIn some cases, the Request.code may pre-coordinate prohibition into the requested action. E.g. 'NPO' (nothing by mouth), 'DNR' (do not recussitate). If this happens, doNotPerform SHALL NOT be set to true. I.e. The resource shall not have double negation. (E.g. 'Do not DNR').\n\ndoNotPerform should ONLY be used with Tasks that are tightly bounded in time or process phase.  E.g. 'Do not fulfill the midnight dose of medication X tonight due to the early morning scheduled procedure, where the nurse could reasonably check off 'Med X not given at midnight as instructed'.  Similarly, a decision support proposal that a patient should not be given a standard intake questionnaire (because the patient is cognitively impaired) would be marked as 'complete' or 'rejected' when the clinician preps the CarePlan or order set after reviewing the decision support results.  If there is a need to create a standing order to not do something that can't be satisfied by a single 'non-action', but rather an ongoing refusal to perform the function, MedicationRequest, ServiceRequest or some other form of authorization should be used." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.doNotPerform" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "boolean" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "If true, this element negates the Task. For example, instead of a request to perform a task, it is a request _not_ to perform a task." ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.code, Event.code" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".code" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.code" ];
       fhir:ElementDefinition.path [ fhir:value "Task.code" ];
       fhir:ElementDefinition.short [ fhir:value "Task Type" ];
       fhir:ElementDefinition.definition [ fhir:value "A name or code (or both) briefly describing what the task involves." ];
       fhir:ElementDefinition.comment [ fhir:value "The title (eg \"My Tasks\", \"Outstanding Tasks for Patient X\") should go into the code." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.code" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskCode" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "example" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "Codes to identify what the task involves.  These will typically be specific to a particular workflow." ];
         fhir:ElementDefinitionBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/task-code" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.code, Event.code" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".code" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.description" ];
       fhir:ElementDefinition.path [ fhir:value "Task.description" ];
       fhir:ElementDefinition.short [ fhir:value "Human-readable explanation of task" ];
       fhir:ElementDefinition.definition [ fhir:value "A free-text description of what is to be performed." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.description" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".text" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.focus" ];
       fhir:ElementDefinition.path [ fhir:value "Task.focus" ];
       fhir:ElementDefinition.short [ fhir:value "What task is acting on" ];
       fhir:ElementDefinition.definition [ fhir:value "The request being fulfilled or the resource being manipulated (changed, suspended, etc.) by this task." ];
       fhir:ElementDefinition.comment [ fhir:value "If multiple resources need to be manipulated, use sub-tasks.  (This ensures that status can be tracked independently for each referenced resource.)." ];
       fhir:ElementDefinition.requirements [ fhir:value "Used to identify the thing to be done." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.focus" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Resource" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".outboundRelationship[typeCode=SUBJ].target" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.for" ];
       fhir:ElementDefinition.path [ fhir:value "Task.for" ];
       fhir:ElementDefinition.short [ fhir:value "Beneficiary of the Task" ];
       fhir:ElementDefinition.definition [ fhir:value "The entity who benefits from the performance of the service specified in the task (e.g., the patient)." ];
       fhir:ElementDefinition.requirements [ fhir:value "Used to track tasks outstanding for a beneficiary.  Do not use to track the task owner or creator (see owner and creator respectively).  This can also affect access control." ];
       fhir:ElementDefinition.alias [ fhir:value "Patient" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.for" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Resource" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.subject, Event.subject" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.subject[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".participation[typeCode=RCT].role" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.subject" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.encounter" ];
       fhir:ElementDefinition.path [ fhir:value "Task.encounter" ];
       fhir:ElementDefinition.short [ fhir:value "Healthcare event during which this task originated" ];
       fhir:ElementDefinition.definition [ fhir:value "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this task was created." ];
       fhir:ElementDefinition.requirements [ fhir:value "For some tasks it may be important to know the link between the encounter the task originated within." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.encounter" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.context, Event.context" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship[typeCode=COMP].source[classCode=PCPR, moodCode=EVN]" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.requestedPeriod" ];
       fhir:ElementDefinition.path [ fhir:value "Task.requestedPeriod" ];
       fhir:ElementDefinition.short [ fhir:value "When the task should be performed" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates the start and/or end of the period of time when completion of the task is desired to take place." ];
       fhir:ElementDefinition.comment [ fhir:value "This is typically used when the Task is *not* seeking fulfillment of a focus Request, as in that case the period would be specified on the Request and/or in the Task.restriction.period.  Instead, it is used for stand-alone tasks." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.requestedPeriod" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Period" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.occurrence[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".effectiveTime" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.executionPeriod" ];
       fhir:ElementDefinition.path [ fhir:value "Task.executionPeriod" ];
       fhir:ElementDefinition.short [ fhir:value "Start and end time of execution" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifies the time action was first taken against the task (start) and/or the time final action was taken against the task prior to marking it as completed (end)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.executionPeriod" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Period" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Event.occurrence[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.done[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".effectiveTime" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.authoredOn" ];
       fhir:ElementDefinition.path [ fhir:value "Task.authoredOn" ];
       fhir:ElementDefinition.short [ fhir:value "Task Creation Date" ];
       fhir:ElementDefinition.definition [ fhir:value "The date and time this task was created." ];
       fhir:ElementDefinition.requirements [ fhir:value "Most often used along with lastUpdated to track duration of task to supporting monitoring and management." ];
       fhir:ElementDefinition.alias [ fhir:value "Created Date" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.authoredOn" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "dateTime" ]
       ];
       fhir:ElementDefinition.condition [ fhir:value "inv-1" ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.authoredOn" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.recorded" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".participation[typeCode=AUT].time" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.lastModified" ];
       fhir:ElementDefinition.path [ fhir:value "Task.lastModified" ];
       fhir:ElementDefinition.short [ fhir:value "Task Last Modified Date" ];
       fhir:ElementDefinition.definition [ fhir:value "The date and time of last modification to this task." ];
       fhir:ElementDefinition.requirements [ fhir:value "Used along with history to track task activity and time in a particular task state.  This enables monitoring and management." ];
       fhir:ElementDefinition.alias [ fhir:value "Update Date" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.lastModified" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "dateTime" ]
       ];
       fhir:ElementDefinition.condition [ fhir:value "inv-1" ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship[typeCode=SUBJ, ].source[classCode=CACT, moodCode=EVN].effectiveTime" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.requester" ];
       fhir:ElementDefinition.path [ fhir:value "Task.requester" ];
       fhir:ElementDefinition.short [ fhir:value "Who is asking for task to be done" ];
       fhir:ElementDefinition.definition [ fhir:value "The creator of the task." ];
       fhir:ElementDefinition.requirements [ fhir:value "Identifies who created this task.  May be used by access control mechanisms (e.g., to ensure that only the creator can cancel a task)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.requester" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Device" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Organization" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Patient" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.requester" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.author" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".participation[typeCode=AUT].role" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.requestedPerformer" ];
       fhir:ElementDefinition.path [ fhir:value "Task.requestedPerformer" ];
       fhir:ElementDefinition.short [ fhir:value "Who should perform Task" ];
       fhir:ElementDefinition.definition [ fhir:value "The kind of participant or specific participant that should perform the task." ];
       fhir:ElementDefinition.requirements [ fhir:value "Use to distinguish tasks on different activity queues." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.requestedPerformer" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "CodeableReference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Organization" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/CareTeam" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/HealthcareService" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Patient" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Device" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskPerformerType" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "preferred" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "The type(s) of task performers allowed." ];
         fhir:ElementDefinitionBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/performer-role" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Event.performer.role, Request.performerType" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.actor" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".participation[typeCode=PRF].role.code" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.owner" ];
       fhir:ElementDefinition.path [ fhir:value "Task.owner" ];
       fhir:ElementDefinition.short [ fhir:value "Responsible individual" ];
       fhir:ElementDefinition.definition [ fhir:value "Individual organization or Device currently responsible for task execution." ];
       fhir:ElementDefinition.comment [ fhir:value "Tasks may be created with an owner not yet identified." ];
       fhir:ElementDefinition.requirements [ fhir:value "Identifies who is expected to perform this task." ];
       fhir:ElementDefinition.alias [ fhir:value "Performer" ], [ fhir:value "Executer" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.owner" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Organization" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/CareTeam" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/HealthcareService" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Patient" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Device" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Event.performer.actor, Request.performer" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.actor" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".participation[typeCode=PRF].role" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.location" ];
       fhir:ElementDefinition.path [ fhir:value "Task.location" ];
       fhir:ElementDefinition.short [ fhir:value "Where task occurs" ];
       fhir:ElementDefinition.definition [ fhir:value "Principal physical location where the this task is performed." ];
       fhir:ElementDefinition.comment [ fhir:value "This should only be specified when the Task to be/being performed happens or is expected to happen primarily within the bounds of a single Location.  Other locations (e.g. source, destination, etc.) would either be reflected on the 'basedOn' Request or be conveyed as distinct Task.input values." ];
       fhir:ElementDefinition.requirements [ fhir:value "Ties the event to where the records are likely kept and provides context around the event occurrence (e.g. if it occurred inside or outside a dedicated healthcare setting)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.location" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Location" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.reasonCode, Event.reasonCode" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.where[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".participation[typeCode=LOC].role" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.reason" ];
       fhir:ElementDefinition.path [ fhir:value "Task.reason" ];
       fhir:ElementDefinition.short [ fhir:value "Why task is needed" ];
       fhir:ElementDefinition.definition [ fhir:value "A description, code, or reference indicating why this task needs to be performed." ];
       fhir:ElementDefinition.comment [ fhir:value "This will typically not be present for Tasks with a code of 'please fulfill' as, for those, the reason for action is conveyed on the Request pointed to by Task.focus.  Some types of tasks will not need a 'reason'.  E.g. a request to discharge a patient can be inferred to be 'because the patient is ready' and this would not need a reason to be stated on the Task." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.reason" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "CodeableReference" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskReason" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "example" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "Indicates why the task is needed.  E.g. Suspended because patient admitted to hospital." ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Event.reason, Request.reason" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.why[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "v2" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "EVN.7" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".reasonCode" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.insurance" ];
       fhir:ElementDefinition.path [ fhir:value "Task.insurance" ];
       fhir:ElementDefinition.short [ fhir:value "Associated insurance coverage" ];
       fhir:ElementDefinition.definition [ fhir:value "Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be relevant to the Task." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.insurance" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Coverage" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/ClaimResponse" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.insurance" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "v2" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "IN1/IN2" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".outboundRelationship[typeCode=COVBY].target" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.note" ];
       fhir:ElementDefinition.path [ fhir:value "Task.note" ];
       fhir:ElementDefinition.short [ fhir:value "Comments made about the task" ];
       fhir:ElementDefinition.definition [ fhir:value "Free-text information captured about the task as it progresses." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.note" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Annotation" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.note, Event.note" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship[typeCode=SUBJ, ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value(string)" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.relevantHistory" ];
       fhir:ElementDefinition.path [ fhir:value "Task.relevantHistory" ];
       fhir:ElementDefinition.short [ fhir:value "Key events in history of the Task" ];
       fhir:ElementDefinition.definition [ fhir:value "Links to Provenance records for past versions of this Task that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the task." ];
       fhir:ElementDefinition.comment [ fhir:value "This element does not point to the Provenance associated with the *current* version of the resource - as it would be created after this version existed.  The Provenance for the current version can be retrieved with a _revinclude." ];
       fhir:ElementDefinition.alias [ fhir:value "Status History" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.relevantHistory" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Provenance" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.relevantHistory" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.restriction" ];
       fhir:ElementDefinition.path [ fhir:value "Task.restriction" ];
       fhir:ElementDefinition.short [ fhir:value "Constraints on fulfillment tasks" ];
       fhir:ElementDefinition.definition [ fhir:value "If the Task.focus is a request resource and the task is seeking fulfillment (i.e. is asking for the request to be actioned), this element identifies any limitations on what parts of the referenced request should be actioned." ];
       fhir:ElementDefinition.comment [ fhir:value "Task.restriction can only be present if the Task is seeking fulfillment of another Request resource, and the restriction identifies what subset of the authorization conveyed by the request is supposed to be fulfilled by this Task. A possible example could be a standing order (the request) covering a significant time period and/or individuals, while the Task seeks fulfillment for only a subset of that time-period and a single individual." ];
       fhir:ElementDefinition.requirements [ fhir:value "Sometimes when fulfillment is sought, you don't want full fulfillment." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.restriction" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Instead of pointing to request, would point to component of request, having these characteristics" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.restriction.id" ];
       fhir:ElementDefinition.path [ fhir:value "Task.restriction.id" ];
       fhir:ElementDefinition.representation [ fhir:value "xmlAttr" ];
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Element.id" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.value [ fhir:value "string" ]
         ];
         fhir:TypeRefComponent.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.restriction.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Task.restriction.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [ fhir:value "extensions" ], [ fhir:value "user content" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ext-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.restriction.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "Task.restriction.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." ];
       fhir:ElementDefinition.alias [ fhir:value "extensions" ], [ fhir:value "user content" ], [ fhir:value "modifiers" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "BackboneElement.modifierExtension" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ext-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.restriction.repetitions" ];
       fhir:ElementDefinition.path [ fhir:value "Task.restriction.repetitions" ];
       fhir:ElementDefinition.short [ fhir:value "How many times to repeat" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates the number of times the requested action should occur." ];
       fhir:ElementDefinition.requirements [ fhir:value "E.g. order that requests monthly lab tests, fulfillment is sought for 1." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.restriction.repetitions" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "positiveInt" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".repeatNumber" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.restriction.period" ];
       fhir:ElementDefinition.path [ fhir:value "Task.restriction.period" ];
       fhir:ElementDefinition.short [ fhir:value "When fulfillment is sought" ];
       fhir:ElementDefinition.definition [ fhir:value "The time-period for which fulfillment is sought. This must fall within the overall time period authorized in the referenced request.  E.g. ServiceRequest.occurance[x]." ];
       fhir:ElementDefinition.comment [ fhir:value "This is distinct from Task.executionPeriod. ExecutionPeriod indicates when the task needs to be initiated, while Task.restriction.period specifies the subset of the overall authorization that this period covers. For example, a MedicationRequest with an overall effective period of 1 year might have a Task whose restriction.period is 2 months (i.e. satisfy 2 months of medication therapy), while the execution period might be 'between now and 5 days from now' - i.e. If you say yes to this, then you're agreeing to supply medication for that 2 month period within the next 5 days.\n\nNote that period.high is the due date representing the time by which the task should be completed." ];
       fhir:ElementDefinition.requirements [ fhir:value "E.g. order that authorizes 1 year's services.  Fulfillment is sought for next 3 months." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.restriction.period" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Period" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".effectiveTime(IVL<TS>)" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.restriction.recipient" ];
       fhir:ElementDefinition.path [ fhir:value "Task.restriction.recipient" ];
       fhir:ElementDefinition.short [ fhir:value "For whom is fulfillment sought?" ];
       fhir:ElementDefinition.definition [ fhir:value "For requests that are targeted to more than one potential recipient/target, to identify who is fulfillment is sought for." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.restriction.recipient" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Patient" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Group" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Organization" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".participation[typeCode=SBJ].role" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.input" ];
       fhir:ElementDefinition.path [ fhir:value "Task.input" ];
       fhir:ElementDefinition.short [ fhir:value "Information used to perform task" ];
       fhir:ElementDefinition.definition [ fhir:value "Additional information that may be needed in the execution of the task." ];
       fhir:ElementDefinition.requirements [ fhir:value "Resources and data used to perform the task.  This data is used in the business logic of task execution, and is stored separately because it varies between workflows." ];
       fhir:ElementDefinition.alias [ fhir:value "Supporting Information" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.input" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "???" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.input.id" ];
       fhir:ElementDefinition.path [ fhir:value "Task.input.id" ];
       fhir:ElementDefinition.representation [ fhir:value "xmlAttr" ];
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Element.id" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.value [ fhir:value "string" ]
         ];
         fhir:TypeRefComponent.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.input.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Task.input.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [ fhir:value "extensions" ], [ fhir:value "user content" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ext-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.input.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "Task.input.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." ];
       fhir:ElementDefinition.alias [ fhir:value "extensions" ], [ fhir:value "user content" ], [ fhir:value "modifiers" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "BackboneElement.modifierExtension" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ext-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.input.type" ];
       fhir:ElementDefinition.path [ fhir:value "Task.input.type" ];
       fhir:ElementDefinition.short [ fhir:value "Label for the input" ];
       fhir:ElementDefinition.definition [ fhir:value "A code or description indicating how the input is intended to be used as part of the task execution." ];
       fhir:ElementDefinition.comment [ fhir:value "If referencing a BPMN workflow or Protocol, the \"system\" is the URL for the workflow definition and the code is the \"name\" of the required input." ];
       fhir:ElementDefinition.requirements [ fhir:value "Inputs are named to enable task automation to bind data and pass it from one task to the next." ];
       fhir:ElementDefinition.alias [ fhir:value "Name" ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.input.type" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "1" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskInputParameterType" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "example" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. \"Comparison source\", \"Applicable consent\", \"Concomitent Medications\", etc." ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "???" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.input.value[x]" ];
       fhir:ElementDefinition.path [ fhir:value "Task.input.value[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Content to use in performing the task" ];
       fhir:ElementDefinition.definition [ fhir:value "The value of the input parameter as a basic type." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.input.value[x]" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "1" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "base64Binary" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "boolean" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "canonical" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "code" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "date" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "dateTime" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "decimal" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "id" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "instant" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "integer" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "integer64" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "markdown" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "oid" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "positiveInt" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "string" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "time" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "unsignedInt" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "uri" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "url" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "uuid" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Address" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Age" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Annotation" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Attachment" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "CodeableConcept" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "CodeableReference" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Coding" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ContactPoint" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Count" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Distance" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Duration" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "HumanName" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Identifier" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Money" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Period" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Quantity" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Range" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Ratio" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "RatioRange" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "SampledData" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Signature" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Timing" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ContactDetail" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "DataRequirement" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Expression" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ParameterDefinition" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "RelatedArtifact" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "TriggerDefinition" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "UsageContext" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Availability" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ExtendedContactDetail" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Dosage" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Meta" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "???" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.output" ];
       fhir:ElementDefinition.path [ fhir:value "Task.output" ];
       fhir:ElementDefinition.short [ fhir:value "Information produced as part of task" ];
       fhir:ElementDefinition.definition [ fhir:value "Outputs produced by the Task." ];
       fhir:ElementDefinition.requirements [ fhir:value "Resources and data produced during the execution the task.  This data is generated by the business logic of task execution, and is stored separately because it varies between workflows." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.output" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "???" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.output.id" ];
       fhir:ElementDefinition.path [ fhir:value "Task.output.id" ];
       fhir:ElementDefinition.representation [ fhir:value "xmlAttr" ];
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Element.id" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.value [ fhir:value "string" ]
         ];
         fhir:TypeRefComponent.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.output.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Task.output.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [ fhir:value "extensions" ], [ fhir:value "user content" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ext-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.output.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "Task.output.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." ];
       fhir:ElementDefinition.alias [ fhir:value "extensions" ], [ fhir:value "user content" ], [ fhir:value "modifiers" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "BackboneElement.modifierExtension" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ext-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.output.type" ];
       fhir:ElementDefinition.path [ fhir:value "Task.output.type" ];
       fhir:ElementDefinition.short [ fhir:value "Label for output" ];
       fhir:ElementDefinition.definition [ fhir:value "The name of the Output parameter." ];
       fhir:ElementDefinition.requirements [ fhir:value "Outputs are named to enable task automation to bind data and pass it from one task to the next." ];
       fhir:ElementDefinition.alias [ fhir:value "Name" ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.output.type" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "1" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskOutputParameterType" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "example" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. \"Identified issues\", \"Preliminary results\", \"Filler order\", \"Final results\", etc." ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "???" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.output.value[x]" ];
       fhir:ElementDefinition.path [ fhir:value "Task.output.value[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Result of output" ];
       fhir:ElementDefinition.definition [ fhir:value "The value of the Output parameter as a basic type." ];
       fhir:ElementDefinition.requirements [ fhir:value "Task outputs can take any form." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinitionBaseComponent.path [ fhir:value "Task.output.value[x]" ];
         fhir:ElementDefinitionBaseComponent.min [ fhir:value "1" ];
         fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "base64Binary" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "boolean" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "canonical" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "code" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "date" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "dateTime" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "decimal" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "id" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "instant" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "integer" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "integer64" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "markdown" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "oid" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "positiveInt" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "string" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "time" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "unsignedInt" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "uri" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "url" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "uuid" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Address" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Age" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Annotation" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Attachment" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "CodeableConcept" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "CodeableReference" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Coding" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ContactPoint" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Count" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Distance" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Duration" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "HumanName" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Identifier" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Money" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Period" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Quantity" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Range" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Ratio" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "RatioRange" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "SampledData" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Signature" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Timing" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ContactDetail" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "DataRequirement" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Expression" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ParameterDefinition" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "RelatedArtifact" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "TriggerDefinition" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "UsageContext" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Availability" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ExtendedContactDetail" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Dosage" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Meta" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "???" ]
       ]
     ]
  ];
  fhir:StructureDefinition.differential [
     fhir:StructureDefinitionDifferentialComponent.element [
       fhir:Element.id [ fhir:value "Task" ];
       fhir:ElementDefinition.path [ fhir:value "Task" ];
       fhir:ElementDefinition.short [ fhir:value "A task to be performed" ];
       fhir:ElementDefinition.definition [ fhir:value "A task to be performed." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.constraint [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "tsk-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Task.restriction is only allowed if the Task is seeking fulfillment and a focus is specified." ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "restriction.exists() implies code.coding.where(code='fulfill' and system='http://hl7.org/fhir/CodeSystem/task-code').exists() and focus.exists()" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Task" ]
       ], [
         fhir:ElementDefinitionConstraintComponent.key [ fhir:value "inv-1" ];
         fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ];
         fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Last modified date must be greater than or equal to authored-on date." ];
         fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn" ];
         fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Task" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request, Event" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "ControlAct[moodCode=INT]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "workflow.order" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.identifier" ];
       fhir:ElementDefinition.path [ fhir:value "Task.identifier" ];
       fhir:ElementDefinition.short [ fhir:value "Task Instance Identifier" ];
       fhir:ElementDefinition.definition [ fhir:value "The business identifier for this task." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Identifier" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.identifier, Event.identifier" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.identifier" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".id" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.instantiatesCanonical" ];
       fhir:ElementDefinition.path [ fhir:value "Task.instantiatesCanonical" ];
       fhir:ElementDefinition.short [ fhir:value "Formal definition of task" ];
       fhir:ElementDefinition.definition [ fhir:value "The URL pointing to a *FHIR*-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this Task." ];
       fhir:ElementDefinition.requirements [ fhir:value "Enables a formal definition of how the task is to be performed, enabling automation." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "canonical" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/ActivityDefinition" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.instantiatesCanonical, Event.instantiatesCanonical" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".outboundRelationship[typeCode=DEFN].target" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.instantiatesUri" ];
       fhir:ElementDefinition.path [ fhir:value "Task.instantiatesUri" ];
       fhir:ElementDefinition.short [ fhir:value "Formal definition of task" ];
       fhir:ElementDefinition.definition [ fhir:value "The URL pointing to an *externally* maintained  protocol, guideline, orderset or other definition that is adhered to in whole or in part by this Task." ];
       fhir:ElementDefinition.requirements [ fhir:value "Enables a formal definition of how the task is to be performed (e.g. using BPMN, BPEL, XPDL or other formal notation to be associated with a task), enabling automation." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "uri" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Event.instantiatesUrl" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".outboundRelationship[typeCode=DEFN].target" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.basedOn" ];
       fhir:ElementDefinition.path [ fhir:value "Task.basedOn" ];
       fhir:ElementDefinition.short [ fhir:value "Request fulfilled by this task" ];
       fhir:ElementDefinition.definition [ fhir:value "BasedOn refers to a higher-level authorization that triggered the creation of the task.  It references a \"request\" resource such as a ServiceRequest, MedicationRequest, CarePlan, etc. which is distinct from the \"request\" resource the task is seeking to fulfill.  This latter resource is referenced by focus.  For example, based on a CarePlan (= basedOn), a task is created to fulfill a ServiceRequest ( = focus ) to collect a specimen from a patient." ];
       fhir:ElementDefinition.comment [ fhir:value "Task.basedOn is never the same as Task.focus.  Task.basedOn will typically not be present for 'please fulfill' Tasks as a distinct authorization is rarely needed to request fulfillment.  If the Task is seeking fulfillment of an order, the order to be fulfilled is always communicated using `focus`, never basedOn.  However, authorization may be needed to perform other types of Task actions.  As an example of when both would be present, a Task seeking suspension of a prescription might have a Task.basedOn pointing to the ServiceRequest ordering surgery (which is the driver for suspending the MedicationRequest - which would be the Task.focus)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Resource" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.basedOn, Event.basedOn" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".outboundRelationship[typeCode=FLFS].target[moodCode=INT]" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.groupIdentifier" ];
       fhir:ElementDefinition.path [ fhir:value "Task.groupIdentifier" ];
       fhir:ElementDefinition.short [ fhir:value "Requisition or grouper id" ];
       fhir:ElementDefinition.definition [ fhir:value "An identifier that links together multiple tasks and other requests that were created in the same context." ];
       fhir:ElementDefinition.requirements [ fhir:value "Billing and/or reporting can be linked to whether multiple requests were created as a single unit." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Identifier" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.groupIdentifier" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship[typeCode=COMP].source[moodCode=INT].id" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.partOf" ];
       fhir:ElementDefinition.path [ fhir:value "Task.partOf" ];
       fhir:ElementDefinition.short [ fhir:value "Composite task" ];
       fhir:ElementDefinition.definition [ fhir:value "Task that this particular task is part of." ];
       fhir:ElementDefinition.comment [ fhir:value "This should usually be 0..1." ];
       fhir:ElementDefinition.requirements [ fhir:value "Allows tasks to be broken down into sub-steps (and this division can occur independent of the original task)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Task" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Event.partOf" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship[typeCode=COMP].source[moodCode=INT]" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.status" ];
       fhir:ElementDefinition.path [ fhir:value "Task.status" ];
       fhir:ElementDefinition.short [ fhir:value "draft | requested | received | accepted | +" ];
       fhir:ElementDefinition.definition [ fhir:value "The current status of the task." ];
       fhir:ElementDefinition.requirements [ fhir:value "These states enable coordination of task status with off-the-shelf workflow solutions that support automation of tasks." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskStatus" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "required" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "The current status of the task." ];
         fhir:ElementDefinitionBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/task-status|5.0.0-snapshot3" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.status, Event.status" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.status" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".statusCode" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.statusReason" ];
       fhir:ElementDefinition.path [ fhir:value "Task.statusReason" ];
       fhir:ElementDefinition.short [ fhir:value "Reason for current status" ];
       fhir:ElementDefinition.definition [ fhir:value "An explanation as to why this task is held, failed, was refused, etc." ];
       fhir:ElementDefinition.comment [ fhir:value "This applies to the current status.  Look at the history of the task to see reasons for past statuses." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "CodeableReference" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskStatusReason" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "example" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "Codes to identify the reason for current status.  These will typically be specific to a particular workflow." ];
         fhir:ElementDefinitionBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/task-status-reason" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN, code=\"status change\"].reasonCode" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.businessStatus" ];
       fhir:ElementDefinition.path [ fhir:value "Task.businessStatus" ];
       fhir:ElementDefinition.short [ fhir:value "E.g. \"Specimen collected\", \"IV prepped\"" ];
       fhir:ElementDefinition.definition [ fhir:value "Contains business-specific nuances of the business state." ];
       fhir:ElementDefinition.requirements [ fhir:value "There's often a need to track substates of a task - this is often variable by specific workflow implementation." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskBusinessStatus" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "example" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "The domain-specific business-contextual sub-state of the task.  For example: \"Blood drawn\", \"IV inserted\", \"Awaiting physician signature\", etc." ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"business status\"]" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.intent" ];
       fhir:ElementDefinition.path [ fhir:value "Task.intent" ];
       fhir:ElementDefinition.short [ fhir:value "unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates the \"level\" of actionability associated with the Task, i.e. i+R[9]Cs this a proposed task, a planned task, an actionable task, etc." ];
       fhir:ElementDefinition.comment [ fhir:value "This element is immutable.  Proposed tasks, planned tasks, etc. must be distinct instances.\n\nIn most cases, Tasks will have an intent of \"order\"." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskIntent" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "required" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "Distinguishes whether the task is a proposal, plan or full order." ];
         fhir:ElementDefinitionBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/task-intent|5.0.0-snapshot3" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.intent" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.class" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".moodCode" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.priority" ];
       fhir:ElementDefinition.path [ fhir:value "Task.priority" ];
       fhir:ElementDefinition.short [ fhir:value "routine | urgent | asap | stat" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates how quickly the Task should be addressed with respect to other requests." ];
       fhir:ElementDefinition.requirements [ fhir:value "Used to identify the service level expected while performing a task." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.meaningWhenMissing [ fhir:value "If missing, this task should be performed with normal priority" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskPriority" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "required" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "The priority of a task (may affect service level applied to the task)." ];
         fhir:ElementDefinitionBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/request-priority|5.0.0-snapshot3" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.priority" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.grade" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".priorityCode" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.doNotPerform" ];
       fhir:ElementDefinition.path [ fhir:value "Task.doNotPerform" ];
       fhir:ElementDefinition.short [ fhir:value "True if Task is prohibiting action" ];
       fhir:ElementDefinition.definition [ fhir:value "If true indicates that the Task is asking for the specified action to *not* occur." ];
       fhir:ElementDefinition.comment [ fhir:value "The attributes provided with the Task qualify what is not to be done. For example, if a requestedPeriod is provided, the 'do not' request only applies within the specified time. If a requestedPerformer is specified then the 'do not' request only applies to performers of that type. Qualifiers include: code, subject, occurrence, requestedPerformer and performer.\n\nIn some cases, the Request.code may pre-coordinate prohibition into the requested action. E.g. 'NPO' (nothing by mouth), 'DNR' (do not recussitate). If this happens, doNotPerform SHALL NOT be set to true. I.e. The resource shall not have double negation. (E.g. 'Do not DNR').\n\ndoNotPerform should ONLY be used with Tasks that are tightly bounded in time or process phase.  E.g. 'Do not fulfill the midnight dose of medication X tonight due to the early morning scheduled procedure, where the nurse could reasonably check off 'Med X not given at midnight as instructed'.  Similarly, a decision support proposal that a patient should not be given a standard intake questionnaire (because the patient is cognitively impaired) would be marked as 'complete' or 'rejected' when the clinician preps the CarePlan or order set after reviewing the decision support results.  If there is a need to create a standing order to not do something that can't be satisfied by a single 'non-action', but rather an ongoing refusal to perform the function, MedicationRequest, ServiceRequest or some other form of authorization should be used." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "boolean" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "If true, this element negates the Task. For example, instead of a request to perform a task, it is a request _not_ to perform a task." ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.code, Event.code" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".code" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.code" ];
       fhir:ElementDefinition.path [ fhir:value "Task.code" ];
       fhir:ElementDefinition.short [ fhir:value "Task Type" ];
       fhir:ElementDefinition.definition [ fhir:value "A name or code (or both) briefly describing what the task involves." ];
       fhir:ElementDefinition.comment [ fhir:value "The title (eg \"My Tasks\", \"Outstanding Tasks for Patient X\") should go into the code." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskCode" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "example" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "Codes to identify what the task involves.  These will typically be specific to a particular workflow." ];
         fhir:ElementDefinitionBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/task-code" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.code, Event.code" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".code" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.description" ];
       fhir:ElementDefinition.path [ fhir:value "Task.description" ];
       fhir:ElementDefinition.short [ fhir:value "Human-readable explanation of task" ];
       fhir:ElementDefinition.definition [ fhir:value "A free-text description of what is to be performed." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".text" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.focus" ];
       fhir:ElementDefinition.path [ fhir:value "Task.focus" ];
       fhir:ElementDefinition.short [ fhir:value "What task is acting on" ];
       fhir:ElementDefinition.definition [ fhir:value "The request being fulfilled or the resource being manipulated (changed, suspended, etc.) by this task." ];
       fhir:ElementDefinition.comment [ fhir:value "If multiple resources need to be manipulated, use sub-tasks.  (This ensures that status can be tracked independently for each referenced resource.)." ];
       fhir:ElementDefinition.requirements [ fhir:value "Used to identify the thing to be done." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Resource" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".outboundRelationship[typeCode=SUBJ].target" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.for" ];
       fhir:ElementDefinition.path [ fhir:value "Task.for" ];
       fhir:ElementDefinition.short [ fhir:value "Beneficiary of the Task" ];
       fhir:ElementDefinition.definition [ fhir:value "The entity who benefits from the performance of the service specified in the task (e.g., the patient)." ];
       fhir:ElementDefinition.requirements [ fhir:value "Used to track tasks outstanding for a beneficiary.  Do not use to track the task owner or creator (see owner and creator respectively).  This can also affect access control." ];
       fhir:ElementDefinition.alias [ fhir:value "Patient" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Resource" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.subject, Event.subject" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.subject[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".participation[typeCode=RCT].role" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.subject" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.encounter" ];
       fhir:ElementDefinition.path [ fhir:value "Task.encounter" ];
       fhir:ElementDefinition.short [ fhir:value "Healthcare event during which this task originated" ];
       fhir:ElementDefinition.definition [ fhir:value "The healthcare event  (e.g. a patient and healthcare provider interaction) during which this task was created." ];
       fhir:ElementDefinition.requirements [ fhir:value "For some tasks it may be important to know the link between the encounter the task originated within." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.context, Event.context" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship[typeCode=COMP].source[classCode=PCPR, moodCode=EVN]" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.requestedPeriod" ];
       fhir:ElementDefinition.path [ fhir:value "Task.requestedPeriod" ];
       fhir:ElementDefinition.short [ fhir:value "When the task should be performed" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates the start and/or end of the period of time when completion of the task is desired to take place." ];
       fhir:ElementDefinition.comment [ fhir:value "This is typically used when the Task is *not* seeking fulfillment of a focus Request, as in that case the period would be specified on the Request and/or in the Task.restriction.period.  Instead, it is used for stand-alone tasks." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Period" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.occurrence[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".effectiveTime" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.executionPeriod" ];
       fhir:ElementDefinition.path [ fhir:value "Task.executionPeriod" ];
       fhir:ElementDefinition.short [ fhir:value "Start and end time of execution" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifies the time action was first taken against the task (start) and/or the time final action was taken against the task prior to marking it as completed (end)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Period" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Event.occurrence[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.done[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".effectiveTime" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.authoredOn" ];
       fhir:ElementDefinition.path [ fhir:value "Task.authoredOn" ];
       fhir:ElementDefinition.short [ fhir:value "Task Creation Date" ];
       fhir:ElementDefinition.definition [ fhir:value "The date and time this task was created." ];
       fhir:ElementDefinition.requirements [ fhir:value "Most often used along with lastUpdated to track duration of task to supporting monitoring and management." ];
       fhir:ElementDefinition.alias [ fhir:value "Created Date" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "dateTime" ]
       ];
       fhir:ElementDefinition.condition [ fhir:value "inv-1" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.authoredOn" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.recorded" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".participation[typeCode=AUT].time" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.lastModified" ];
       fhir:ElementDefinition.path [ fhir:value "Task.lastModified" ];
       fhir:ElementDefinition.short [ fhir:value "Task Last Modified Date" ];
       fhir:ElementDefinition.definition [ fhir:value "The date and time of last modification to this task." ];
       fhir:ElementDefinition.requirements [ fhir:value "Used along with history to track task activity and time in a particular task state.  This enables monitoring and management." ];
       fhir:ElementDefinition.alias [ fhir:value "Update Date" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "dateTime" ]
       ];
       fhir:ElementDefinition.condition [ fhir:value "inv-1" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship[typeCode=SUBJ, ].source[classCode=CACT, moodCode=EVN].effectiveTime" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.requester" ];
       fhir:ElementDefinition.path [ fhir:value "Task.requester" ];
       fhir:ElementDefinition.short [ fhir:value "Who is asking for task to be done" ];
       fhir:ElementDefinition.definition [ fhir:value "The creator of the task." ];
       fhir:ElementDefinition.requirements [ fhir:value "Identifies who created this task.  May be used by access control mechanisms (e.g., to ensure that only the creator can cancel a task)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Device" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Organization" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Patient" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.requester" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.author" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".participation[typeCode=AUT].role" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.requestedPerformer" ];
       fhir:ElementDefinition.path [ fhir:value "Task.requestedPerformer" ];
       fhir:ElementDefinition.short [ fhir:value "Who should perform Task" ];
       fhir:ElementDefinition.definition [ fhir:value "The kind of participant or specific participant that should perform the task." ];
       fhir:ElementDefinition.requirements [ fhir:value "Use to distinguish tasks on different activity queues." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "CodeableReference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Organization" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/CareTeam" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/HealthcareService" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Patient" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Device" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskPerformerType" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "preferred" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "The type(s) of task performers allowed." ];
         fhir:ElementDefinitionBindingComponent.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/performer-role" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Event.performer.role, Request.performerType" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.actor" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".participation[typeCode=PRF].role.code" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.owner" ];
       fhir:ElementDefinition.path [ fhir:value "Task.owner" ];
       fhir:ElementDefinition.short [ fhir:value "Responsible individual" ];
       fhir:ElementDefinition.definition [ fhir:value "Individual organization or Device currently responsible for task execution." ];
       fhir:ElementDefinition.comment [ fhir:value "Tasks may be created with an owner not yet identified." ];
       fhir:ElementDefinition.requirements [ fhir:value "Identifies who is expected to perform this task." ];
       fhir:ElementDefinition.alias [ fhir:value "Performer" ], [ fhir:value "Executer" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Organization" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/CareTeam" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/HealthcareService" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Patient" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Device" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Event.performer.actor, Request.performer" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.actor" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".participation[typeCode=PRF].role" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.location" ];
       fhir:ElementDefinition.path [ fhir:value "Task.location" ];
       fhir:ElementDefinition.short [ fhir:value "Where task occurs" ];
       fhir:ElementDefinition.definition [ fhir:value "Principal physical location where the this task is performed." ];
       fhir:ElementDefinition.comment [ fhir:value "This should only be specified when the Task to be/being performed happens or is expected to happen primarily within the bounds of a single Location.  Other locations (e.g. source, destination, etc.) would either be reflected on the 'basedOn' Request or be conveyed as distinct Task.input values." ];
       fhir:ElementDefinition.requirements [ fhir:value "Ties the event to where the records are likely kept and provides context around the event occurrence (e.g. if it occurred inside or outside a dedicated healthcare setting)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Location" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.reasonCode, Event.reasonCode" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.where[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".participation[typeCode=LOC].role" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.reason" ];
       fhir:ElementDefinition.path [ fhir:value "Task.reason" ];
       fhir:ElementDefinition.short [ fhir:value "Why task is needed" ];
       fhir:ElementDefinition.definition [ fhir:value "A description, code, or reference indicating why this task needs to be performed." ];
       fhir:ElementDefinition.comment [ fhir:value "This will typically not be present for Tasks with a code of 'please fulfill' as, for those, the reason for action is conveyed on the Request pointed to by Task.focus.  Some types of tasks will not need a 'reason'.  E.g. a request to discharge a patient can be inferred to be 'because the patient is ready' and this would not need a reason to be stated on the Task." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "CodeableReference" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskReason" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "example" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "Indicates why the task is needed.  E.g. Suspended because patient admitted to hospital." ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Event.reason, Request.reason" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "w5" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "FiveWs.why[x]" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "v2" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "EVN.7" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".reasonCode" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.insurance" ];
       fhir:ElementDefinition.path [ fhir:value "Task.insurance" ];
       fhir:ElementDefinition.short [ fhir:value "Associated insurance coverage" ];
       fhir:ElementDefinition.definition [ fhir:value "Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be relevant to the Task." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Coverage" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/ClaimResponse" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.insurance" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "v2" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "IN1/IN2" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".outboundRelationship[typeCode=COVBY].target" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.note" ];
       fhir:ElementDefinition.path [ fhir:value "Task.note" ];
       fhir:ElementDefinition.short [ fhir:value "Comments made about the task" ];
       fhir:ElementDefinition.definition [ fhir:value "Free-text information captured about the task as it progresses." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Annotation" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.note, Event.note" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship[typeCode=SUBJ, ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value(string)" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.relevantHistory" ];
       fhir:ElementDefinition.path [ fhir:value "Task.relevantHistory" ];
       fhir:ElementDefinition.short [ fhir:value "Key events in history of the Task" ];
       fhir:ElementDefinition.definition [ fhir:value "Links to Provenance records for past versions of this Task that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the task." ];
       fhir:ElementDefinition.comment [ fhir:value "This element does not point to the Provenance associated with the *current* version of the resource - as it would be created after this version existed.  The Provenance for the current version can be retrieved with a _revinclude." ];
       fhir:ElementDefinition.alias [ fhir:value "Status History" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Provenance" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "workflow" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Request.relevantHistory" ]
       ], [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.restriction" ];
       fhir:ElementDefinition.path [ fhir:value "Task.restriction" ];
       fhir:ElementDefinition.short [ fhir:value "Constraints on fulfillment tasks" ];
       fhir:ElementDefinition.definition [ fhir:value "If the Task.focus is a request resource and the task is seeking fulfillment (i.e. is asking for the request to be actioned), this element identifies any limitations on what parts of the referenced request should be actioned." ];
       fhir:ElementDefinition.comment [ fhir:value "Task.restriction can only be present if the Task is seeking fulfillment of another Request resource, and the restriction identifies what subset of the authorization conveyed by the request is supposed to be fulfilled by this Task. A possible example could be a standing order (the request) covering a significant time period and/or individuals, while the Task seeks fulfillment for only a subset of that time-period and a single individual." ];
       fhir:ElementDefinition.requirements [ fhir:value "Sometimes when fulfillment is sought, you don't want full fulfillment." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "Instead of pointing to request, would point to component of request, having these characteristics" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.restriction.repetitions" ];
       fhir:ElementDefinition.path [ fhir:value "Task.restriction.repetitions" ];
       fhir:ElementDefinition.short [ fhir:value "How many times to repeat" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates the number of times the requested action should occur." ];
       fhir:ElementDefinition.requirements [ fhir:value "E.g. order that requests monthly lab tests, fulfillment is sought for 1." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "positiveInt" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".repeatNumber" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.restriction.period" ];
       fhir:ElementDefinition.path [ fhir:value "Task.restriction.period" ];
       fhir:ElementDefinition.short [ fhir:value "When fulfillment is sought" ];
       fhir:ElementDefinition.definition [ fhir:value "The time-period for which fulfillment is sought. This must fall within the overall time period authorized in the referenced request.  E.g. ServiceRequest.occurance[x]." ];
       fhir:ElementDefinition.comment [ fhir:value "This is distinct from Task.executionPeriod. ExecutionPeriod indicates when the task needs to be initiated, while Task.restriction.period specifies the subset of the overall authorization that this period covers. For example, a MedicationRequest with an overall effective period of 1 year might have a Task whose restriction.period is 2 months (i.e. satisfy 2 months of medication therapy), while the execution period might be 'between now and 5 days from now' - i.e. If you say yes to this, then you're agreeing to supply medication for that 2 month period within the next 5 days.\n\nNote that period.high is the due date representing the time by which the task should be completed." ];
       fhir:ElementDefinition.requirements [ fhir:value "E.g. order that authorizes 1 year's services.  Fulfillment is sought for next 3 months." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Period" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".effectiveTime(IVL<TS>)" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.restriction.recipient" ];
       fhir:ElementDefinition.path [ fhir:value "Task.restriction.recipient" ];
       fhir:ElementDefinition.short [ fhir:value "For whom is fulfillment sought?" ];
       fhir:ElementDefinition.definition [ fhir:value "For requests that are targeted to more than one potential recipient/target, to identify who is fulfillment is sought for." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ];
         fhir:TypeRefComponent.targetProfile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Patient" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Group" ], [ fhir:value "http://hl7.org/fhir/StructureDefinition/Organization" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value ".participation[typeCode=SBJ].role" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.input" ];
       fhir:ElementDefinition.path [ fhir:value "Task.input" ];
       fhir:ElementDefinition.short [ fhir:value "Information used to perform task" ];
       fhir:ElementDefinition.definition [ fhir:value "Additional information that may be needed in the execution of the task." ];
       fhir:ElementDefinition.requirements [ fhir:value "Resources and data used to perform the task.  This data is used in the business logic of task execution, and is stored separately because it varies between workflows." ];
       fhir:ElementDefinition.alias [ fhir:value "Supporting Information" ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "???" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.input.type" ];
       fhir:ElementDefinition.path [ fhir:value "Task.input.type" ];
       fhir:ElementDefinition.short [ fhir:value "Label for the input" ];
       fhir:ElementDefinition.definition [ fhir:value "A code or description indicating how the input is intended to be used as part of the task execution." ];
       fhir:ElementDefinition.comment [ fhir:value "If referencing a BPMN workflow or Protocol, the \"system\" is the URL for the workflow definition and the code is the \"name\" of the required input." ];
       fhir:ElementDefinition.requirements [ fhir:value "Inputs are named to enable task automation to bind data and pass it from one task to the next." ];
       fhir:ElementDefinition.alias [ fhir:value "Name" ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskInputParameterType" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "example" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. \"Comparison source\", \"Applicable consent\", \"Concomitent Medications\", etc." ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "???" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.input.value[x]" ];
       fhir:ElementDefinition.path [ fhir:value "Task.input.value[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Content to use in performing the task" ];
       fhir:ElementDefinition.definition [ fhir:value "The value of the input parameter as a basic type." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "base64Binary" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "boolean" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "canonical" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "code" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "date" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "dateTime" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "decimal" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "id" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "instant" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "integer" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "integer64" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "markdown" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "oid" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "positiveInt" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "string" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "time" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "unsignedInt" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "uri" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "url" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "uuid" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Address" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Age" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Annotation" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Attachment" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "CodeableConcept" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "CodeableReference" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Coding" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ContactPoint" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Count" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Distance" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Duration" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "HumanName" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Identifier" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Money" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Period" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Quantity" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Range" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Ratio" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "RatioRange" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "SampledData" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Signature" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Timing" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ContactDetail" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "DataRequirement" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Expression" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ParameterDefinition" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "RelatedArtifact" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "TriggerDefinition" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "UsageContext" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Availability" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ExtendedContactDetail" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Dosage" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Meta" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "???" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.output" ];
       fhir:ElementDefinition.path [ fhir:value "Task.output" ];
       fhir:ElementDefinition.short [ fhir:value "Information produced as part of task" ];
       fhir:ElementDefinition.definition [ fhir:value "Outputs produced by the Task." ];
       fhir:ElementDefinition.requirements [ fhir:value "Resources and data produced during the execution the task.  This data is generated by the business logic of task execution, and is stored separately because it varies between workflows." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "???" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.output.type" ];
       fhir:ElementDefinition.path [ fhir:value "Task.output.type" ];
       fhir:ElementDefinition.short [ fhir:value "Label for output" ];
       fhir:ElementDefinition.definition [ fhir:value "The name of the Output parameter." ];
       fhir:ElementDefinition.requirements [ fhir:value "Outputs are named to enable task automation to bind data and pass it from one task to the next." ];
       fhir:ElementDefinition.alias [ fhir:value "Name" ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "TaskOutputParameterType" ]
         ];
         fhir:ElementDefinitionBindingComponent.strength [ fhir:value "example" ];
         fhir:ElementDefinitionBindingComponent.description [ fhir:value "Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. \"Identified issues\", \"Preliminary results\", \"Filler order\", \"Final results\", etc." ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "???" ]
       ]
     ], [
       fhir:Element.id [ fhir:value "Task.output.value[x]" ];
       fhir:ElementDefinition.path [ fhir:value "Task.output.value[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Result of output" ];
       fhir:ElementDefinition.definition [ fhir:value "The value of the Output parameter as a basic type." ];
       fhir:ElementDefinition.requirements [ fhir:value "Task outputs can take any form." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:TypeRefComponent.code [ fhir:value "base64Binary" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "boolean" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "canonical" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "code" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "date" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "dateTime" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "decimal" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "id" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "instant" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "integer" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "integer64" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "markdown" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "oid" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "positiveInt" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "string" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "time" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "unsignedInt" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "uri" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "url" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "uuid" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Address" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Age" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Annotation" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Attachment" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "CodeableConcept" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "CodeableReference" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Coding" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ContactPoint" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Count" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Distance" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Duration" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "HumanName" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Identifier" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Money" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Period" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Quantity" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Range" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Ratio" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "RatioRange" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Reference" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "SampledData" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Signature" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Timing" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ContactDetail" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "DataRequirement" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Expression" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ParameterDefinition" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "RelatedArtifact" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "TriggerDefinition" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "UsageContext" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Availability" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "ExtendedContactDetail" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Dosage" ]
       ], [
         fhir:TypeRefComponent.code [ fhir:value "Meta" ]
       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false" ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ];
         fhir:ElementDefinitionMappingComponent.map [ fhir:value "???" ]
       ]
     ]
  ] .

# -------------------------------------------------------------------------------------


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.