GetActivitiesResponse
type: StructureDefinition
node role: treeRoot
id:
  v: GetActivitiesResponse
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition GetActivitiesResponse Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> GetActivitiesResponse 0..* Base Get Activities Response #xD; result 1..1 BackboneElement Operation result #xD; resultCode 1..1 string Result code #xD; message 0..1 string Human-readable message #xD; errorId 0..1 string Error identifier #xD; logId 0..1 string Log correlation ID #xD; activity 0..* BackboneElement Returned activity #xD; header 1..1 BackboneElement Header information #xD; activityId 1..1 string Activity identifier #xD; sourceSystemHSAId 1..1 string Source system HSA-ID #xD; activityTime 1..1 string Timestamp when the activity occurred #xD; patientId 1..1 BackboneElement Patient identifier #xD; @id 1..1 string Identifier value #xD; type 1..1 string Identifier type OID #xD; body 1..1 BackboneElement Body content #xD; actionCode 0..1 string Type of action/activity #xD; actionText 0..1 string Human-readable description #xD; performerHSAId 0..1 string Performer HSA-ID #xD; careUnitHSAId 0..1 string Care unit HSA-ID #xD; hasMore 0..1 boolean More results available #xD; hasMoreReference 0..1 string Pagination reference token #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
url:
  v: http://electronichealth.se/fhir/ig/ig-tkb-clinicalprocess-activity-actions/StructureDefinition/GetActivitiesResponse
version:
  v: 0.1.0
name:
  v: GetActivitiesResponse
title:
  v: Get Activities Response
status:
  v: draft
date:
  v: 2025-10-27T22:43:55+00:00
contact:
  name:
    v: Inera Support
  telecom:
    system:
      v: email
description:
  v: Response structure for GetActivities service
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
    code:
      v: SE
    display:
      v: Sweden
fhir version:
  v: 4.0.1
kind:
  v: logical
abstract:
  v: false
type:
  v: http://electronichealth.se/fhir/ig/ig-tkb-clinicalprocess-activity-actions/StructureDefinition/GetActivitiesResponse
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  link: http://hl7.org/fhir/StructureDefinition/Base
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 4.0.1
  element:
    id:
      v: GetActivitiesResponse
    path:
      v: GetActivitiesResponse
    short:
      v: Get Activities Response
    definition:
      v: Response structure for GetActivities service
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
  element:
    id:
      v: GetActivitiesResponse.result
    path:
      v: GetActivitiesResponse.result
    short:
      v: Operation result
    definition:
      v: Operation result
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: GetActivitiesResponse.result
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: BackboneElement
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element
  element:
    id:
      v: GetActivitiesResponse.result.id
    path:
      v: GetActivitiesResponse.result.id
    representation:
      v: xmlAttr
    short:
      v: Unique id for inter-element referencing
    definition:
      v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Element.id
      min:
        v: 0
      max:
        v: 1
    type:
      extension:
        value: url
      code:
        v: http://hl7.org/fhirpath/System.String
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: GetActivitiesResponse.result.extension
    path:
      v: GetActivitiesResponse.result.extension
    slicing:
      description:
        v: Extensions are always sliced by (at least) url
      rules:
        v: open
    short:
      v: Additional content defined by implementations
    definition:
      v: 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.
    comment:
      v: 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.
    alias:
      v: extensions
    alias:
      v: user content
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Element.extension
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: Extension
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element
    constraint:
      key:
        v: ext-1
      severity:
        v: error

url
v: string

v: value

v: url

v: Must have either extensions or value[x], not both

v: extension.exists() != value.exists()

v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])

v: false

v: false

identity:
  v: rim
map:
  v: n/a

id:
  v: GetActivitiesResponse.result.modifierExtension
path:
  v: GetActivitiesResponse.result.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: GetActivitiesResponse.result.resultCode
path:
  v: GetActivitiesResponse.result.resultCode
short:
  v: Result code
definition:
  v: OK | INFO | ERROR codes
min:
  v: 1
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.result.resultCode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.result.message
path:
  v: GetActivitiesResponse.result.message
short:
  v: Human-readable message
definition:
  v: Human-readable message
min:
  v: 0
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.result.message
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.result.errorId
path:
  v: GetActivitiesResponse.result.errorId
short:
  v: Error identifier
definition:
  v: Error identifier
min:
  v: 0
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.result.errorId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.result.logId
path:
  v: GetActivitiesResponse.result.logId
short:
  v: Log correlation ID
definition:
  v: Log correlation ID
min:
  v: 0
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.result.logId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.activity
path:
  v: GetActivitiesResponse.activity
short:
  v: Returned activity
definition:
  v: Returned activity
min:
  v: 0
max:
  v: *
base:
  path:
    v: GetActivitiesResponse.activity
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: GetActivitiesResponse.activity.id
path:
  v: GetActivitiesResponse.activity.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: GetActivitiesResponse.activity.extension
path:
  v: GetActivitiesResponse.activity.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: GetActivitiesResponse.activity.modifierExtension
path:
  v: GetActivitiesResponse.activity.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: GetActivitiesResponse.activity.header
path:
  v: GetActivitiesResponse.activity.header
short:
  v: Header information
definition:
  v: Header information
min:
  v: 1
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.activity.header
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: GetActivitiesResponse.activity.header.id
path:
  v: GetActivitiesResponse.activity.header.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: GetActivitiesResponse.activity.header.extension
path:
  v: GetActivitiesResponse.activity.header.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: GetActivitiesResponse.activity.header.modifierExtension
path:
  v: GetActivitiesResponse.activity.header.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: GetActivitiesResponse.activity.header.activityId
path:
  v: GetActivitiesResponse.activity.header.activityId
short:
  v: Activity identifier
definition:
  v: Activity identifier
min:
  v: 1
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.activity.header.activityId
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.activity.header.sourceSystemHSAId
path:
  v: GetActivitiesResponse.activity.header.sourceSystemHSAId
short:
  v: Source system HSA-ID
definition:
  v: Source system HSA-ID
min:
  v: 1
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.activity.header.sourceSystemHSAId
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.activity.header.activityTime
path:
  v: GetActivitiesResponse.activity.header.activityTime
short:
  v: Timestamp when the activity occurred
definition:
  v: YYYYMMDDhhmmss
min:
  v: 1
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.activity.header.activityTime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.activity.header.patientId
path:
  v: GetActivitiesResponse.activity.header.patientId
short:
  v: Patient identifier
definition:
  v: Patient identifier
min:
  v: 1
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.activity.header.patientId
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: GetActivitiesResponse.activity.header.patientId.id
path:
  v: GetActivitiesResponse.activity.header.patientId.id
representation:
  v: xmlAttr
short:
  v: Identifier value
definition:
  v: Identifier value
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: GetActivitiesResponse.activity.header.patientId.extension
path:
  v: GetActivitiesResponse.activity.header.patientId.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: GetActivitiesResponse.activity.header.patientId.modifierExtension
path:
  v: GetActivitiesResponse.activity.header.patientId.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: GetActivitiesResponse.activity.header.patientId.type
path:
  v: GetActivitiesResponse.activity.header.patientId.type
short:
  v: Identifier type OID
definition:
  v: Identifier type OID
min:
  v: 1
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.activity.header.patientId.type
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.activity.body
path:
  v: GetActivitiesResponse.activity.body
short:
  v: Body content
definition:
  v: Body content
min:
  v: 1
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.activity.body
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: GetActivitiesResponse.activity.body.id
path:
  v: GetActivitiesResponse.activity.body.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: GetActivitiesResponse.activity.body.extension
path:
  v: GetActivitiesResponse.activity.body.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: GetActivitiesResponse.activity.body.modifierExtension
path:
  v: GetActivitiesResponse.activity.body.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: GetActivitiesResponse.activity.body.actionCode
path:
  v: GetActivitiesResponse.activity.body.actionCode
short:
  v: Type of action/activity
definition:
  v: Type of action/activity
min:
  v: 0
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.activity.body.actionCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.activity.body.actionText
path:
  v: GetActivitiesResponse.activity.body.actionText
short:
  v: Human-readable description
definition:
  v: Human-readable description
min:
  v: 0
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.activity.body.actionText
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.activity.body.performerHSAId
path:
  v: GetActivitiesResponse.activity.body.performerHSAId
short:
  v: Performer HSA-ID
definition:
  v: Performer HSA-ID
min:
  v: 0
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.activity.body.performerHSAId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.activity.body.careUnitHSAId
path:
  v: GetActivitiesResponse.activity.body.careUnitHSAId
short:
  v: Care unit HSA-ID
definition:
  v: Care unit HSA-ID
min:
  v: 0
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.activity.body.careUnitHSAId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.hasMore
path:
  v: GetActivitiesResponse.hasMore
short:
  v: More results available
definition:
  v: More results available
min:
  v: 0
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.hasMore
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean

id:
  v: GetActivitiesResponse.hasMoreReference
path:
  v: GetActivitiesResponse.hasMoreReference
short:
  v: Pagination reference token
definition:
  v: Pagination reference token
min:
  v: 0
max:
  v: 1
base:
  path:
    v: GetActivitiesResponse.hasMoreReference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

element:
  id:
    v: GetActivitiesResponse
  path:
    v: GetActivitiesResponse
  short:
    v: Get Activities Response
  definition:
    v: Response structure for GetActivities service
element:
  id:
    v: GetActivitiesResponse.result
  path:
    v: GetActivitiesResponse.result
  short:
    v: Operation result
  definition:
    v: Operation result
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
element:
  id:
    v: GetActivitiesResponse.result.resultCode
  path:
    v: GetActivitiesResponse.result.resultCode
  short:
    v: Result code
  definition:
    v: OK | INFO | ERROR codes
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
element:
  id:
    v: GetActivitiesResponse.result.message
  path:
    v: GetActivitiesResponse.result.message
  short:
    v: Human-readable message
  definition:
    v: Human-readable message
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
element:
  id:
    v: GetActivitiesResponse.result.errorId
  path:
    v: GetActivitiesResponse.result.errorId
  short:
    v: Error identifier
  definition:
    v: Error identifier
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
element:
  id:
    v: GetActivitiesResponse.result.logId
  path:
    v: GetActivitiesResponse.result.logId
  short:
    v: Log correlation ID
  definition:
    v: Log correlation ID
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
element:
  id:
    v: GetActivitiesResponse.activity
  path:
    v: GetActivitiesResponse.activity
  short:
    v: Returned activity
  definition:
    v: Returned activity
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: BackboneElement
element:
  id:
    v: GetActivitiesResponse.activity.header
  path:
    v: GetActivitiesResponse.activity.header
  short:
    v: Header information
  definition:
    v: Header information
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
element:
  id:
    v: GetActivitiesResponse.activity.header.activityId
  path:
    v: GetActivitiesResponse.activity.header.activityId
  short:
    v: Activity identifier
  definition:
    v: Activity identifier
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
element:
  id:
    v: GetActivitiesResponse.activity.header.sourceSystemHSAId
  path:
    v: GetActivitiesResponse.activity.header.sourceSystemHSAId
  short:
    v: Source system HSA-ID
  definition:
    v: Source system HSA-ID
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
element:
  id:
    v: GetActivitiesResponse.activity.header.activityTime
  path:
    v: GetActivitiesResponse.activity.header.activityTime
  short:
    v: Timestamp when the activity occurred
  definition:
    v: YYYYMMDDhhmmss
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
element:
  id:
    v: GetActivitiesResponse.activity.header.patientId
  path:
    v: GetActivitiesResponse.activity.header.patientId
  short:
    v: Patient identifier
  definition:
    v: Patient identifier
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
element:
  id:
    v: GetActivitiesResponse.activity.header.patientId.id
  path:
    v: GetActivitiesResponse.activity.header.patientId.id
  short:
    v: Identifier value
  definition:
    v: Identifier value
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string

id:
  v: GetActivitiesResponse.activity.header.patientId.type
path:
  v: GetActivitiesResponse.activity.header.patientId.type
short:
  v: Identifier type OID
definition:
  v: Identifier type OID
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.activity.body
path:
  v: GetActivitiesResponse.activity.body
short:
  v: Body content
definition:
  v: Body content
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement

id:
  v: GetActivitiesResponse.activity.body.actionCode
path:
  v: GetActivitiesResponse.activity.body.actionCode
short:
  v: Type of action/activity
definition:
  v: Type of action/activity
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.activity.body.actionText
path:
  v: GetActivitiesResponse.activity.body.actionText
short:
  v: Human-readable description
definition:
  v: Human-readable description
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.activity.body.performerHSAId
path:
  v: GetActivitiesResponse.activity.body.performerHSAId
short:
  v: Performer HSA-ID
definition:
  v: Performer HSA-ID
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.activity.body.careUnitHSAId
path:
  v: GetActivitiesResponse.activity.body.careUnitHSAId
short:
  v: Care unit HSA-ID
definition:
  v: Care unit HSA-ID
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: GetActivitiesResponse.hasMore
path:
  v: GetActivitiesResponse.hasMore
short:
  v: More results available
definition:
  v: More results available
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean

id:
  v: GetActivitiesResponse.hasMoreReference
path:
  v: GetActivitiesResponse.hasMoreReference
short:
  v: Pagination reference token
definition:
  v: Pagination reference token
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string