Mappings for the ehealth-task resource profile.
  
  
  
 | ehealth-task | 
 | Task | Request, Event |  
 |    identifier | Request.identifier, Event.identifier |  
 |    instantiatesCanonical | Request.instantiatesCanonical, Event.instantiatesCanonical |  
 |    instantiatesUri | Event.instantiatesUrl |  
 |    basedOn | Request.basedOn, Event.basedOn |  
 |    groupIdentifier | Request.groupIdentifier |  
 |    partOf | Event.partOf |  
 |    status | Request.status, Event.status |  
 |    intent | Request.intent |  
 |    priority | Request.priority |  
 |    code | Request.code, Event.code |  
 |    for | Request.subject, Event.subject |  
 |    encounter | Request.context, Event.context |  
 |    executionPeriod | Event.occurrence[x] |  
 |    authoredOn | Request.authoredOn |  
 |    requester | Request.requester |  
 |    performerType | Event.performer.role, Request.performerType |  
 |    owner | Event.performer.actor, Request.performer |  
 |    location | Request.reasonCode, Event.reasonCode |  
 |    reasonCode | Event.location |  
 |    reasonReference | Request.reasonReference, Event.reasonReference |  
 |    insurance | Request.insurance |  
 |    note | Request.note, Event.note |  
 |    relevantHistory | Request.relevantHistory |  
 | ehealth-task | 
 | Task | Entity. Role, or Act, ControlAct[moodCode=INT] |  
 |    text | Act.text? |  
 |    contained | N/A |  
 |    modifierExtension | N/A |  
 |    identifier | .id |  
 |    instantiatesCanonical | .outboundRelationship[typeCode=DEFN].target |  
 |    instantiatesUri | .outboundRelationship[typeCode=DEFN].target |  
 |    basedOn | .outboundRelationship[typeCode=FLFS].target[moodCode=INT] |  
 |    groupIdentifier | .inboundRelationship[typeCode=COMP].source[moodCode=INT].id |  
 |       id | n/a |  
 |       extension | n/a |  
 |       use | Role.code or implied by context |  
 |       type | Role.code or implied by context |  
 |       system | II.root or Role.id.root |  
 |       value | II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root) |  
 |       period | Role.effectiveTime or implied by context |  
 |       assigner | II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper |  
 |    partOf | .inboundRelationship[typeCode=COMP].source[moodCode=INT] |  
 |    status | .statusCode |  
 |    statusReason | .inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN, code="status change"].reasonCode |  
 |    businessStatus | .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="business status"] |  
 |    intent | .moodCode |  
 |    priority | .priorityCode |  
 |    code | .code |  
 |    description | .text |  
 |    focus | .outboundRelationship[typeCode=SUBJ].target |  
 |    for | .participation[typeCode=RCT].role |  
 |    encounter | .inboundRelationship[typeCode=COMP].source[classCode=PCPR, moodCode=EVN] |  
 |    executionPeriod | .effectiveTime |  
 |    authoredOn | .participation[typeCode=AUT].time |  
 |    lastModified | .inboundRelationship[typeCode=SUBJ, ].source[classCode=CACT, moodCode=EVN].effectiveTime |  
 |    requester | .participation[typeCode=AUT].role |  
 |    performerType | .participation[typeCode=PRF].role.code |  
 |    owner | .participation[typeCode=PRF].role |  
 |    location | .participation[typeCode=LOC].role |  
 |    reasonCode | .reasonCode |  
 |    reasonReference | .outboundRelationship[typeCode=RSON].target |  
 |    insurance | .outboundRelationship[typeCode=COVBY].target |  
 |    note | .inboundRelationship[typeCode=SUBJ, ].source[classCode=OBS, moodCode=EVN, code="annotation"].value(string) |  
 |       id | n/a |  
 |       extension | n/a |  
 |       author[x] | Act.participant[typeCode=AUT].role |  
 |       author[x] (authorReference) | Act.participant[typeCode=AUT].role |  
 |       author[x] (authorString) | Act.participant[typeCode=AUT].role |  
 |       time | Act.effectiveTime |  
 |       text | Act.text |  
 |    relevantHistory | .inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN] |  
 |    restriction | Instead of pointing to request, would point to component of request, having these characteristics |  
 |       id | n/a |  
 |       extension | n/a |  
 |       modifierExtension | N/A |  
 |       repetitions | .repeatNumber |  
 |       period | .effectiveTime(IVL<TS>) |  
 |       recipient | .participation[typeCode=SBJ].role |  
 |    input | ??? |  
 |       id | n/a |  
 |       extension | n/a |  
 |       modifierExtension | N/A |  
 |       type | ??? |  
 |       value[x] | ??? |  
 |    output | ??? |  
 |       id | n/a |  
 |       extension | n/a |  
 |       modifierExtension | N/A |  
 |       type | ??? |  
 |       value[x] | ??? |