activity-definition-portal
type: StructureDefinition
node role: treeRoot
id:
  v: activity-definition-portal
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition activity-definition-portal Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> ActivityDefinition ActivityDefinition #xD; meta 1..1 Meta Metadata about the resource #xD; versionId SO 1..1 id Server-managed resource version Obligations Actor SHALL:populate https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server SHALL:handle https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client #xD; profile SO 1..* canonical(StructureDefinition) Profile declaration for this portal resource Obligations Actor SHALL:populate https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server SHALL:handle https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client #xD; implicitRules 0..0 A set of rules under which this content was created #xD; language 0..0 Language of the resource content #xD; contained 0..0 Contained, inline Resources #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:sortKey 0..1 integer Sort Key URL: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/ext-sort-key #xD; extension:campaigns 0..1 base64Binary, boolean, canonical(), code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, url, uuid, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference(), SampledData, Signature, Timing, ContactDetail, Contributor, DataRequirement, Expression, ParameterDefinition, RelatedArtifact, TriggerDefinition, UsageContext, Dosage, Meta Campaigns URL: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/ext-campaigns #xD; modifierExtension 0..0 Extension #xD; url 0..0 Canonical identifier for this activity definition, rep…
url:
  v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  l: activity-definition-portal
version:
  v: 0.1.0
name:
  v: ActivityDefinitionPortal
title:
  v: ActivityDefinitionPortal
status:
  v: draft
date:
  v: 2026-03-17T13:49:18+00:00
publisher:
  v: Service Well AB
contact:
  name:
    v: Service Well AB
  telecom:
    system:
      v: url
    value:
      v: https://servicewell.se
  telecom:
    system:
      v: email
description:
  v: **ActivityDefinition** represents what can be offered and booked as a service. It answers the question: _“What service is the patient booking?”_ **Actor-specific obligations** - **WofPortalClient** only needs to populate `code.coding.code` when submitting a known service type code. - **WofPortalServer** populates the full representation, including `meta`, presentation fields, `kind`, and the complete `code` structure.
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
    l: workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
    l: fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: objimpl
  uri:
    v: http://hl7.org/fhir/object-implementation
    l: object-implementation
  name:
    v: Object Implementation Information
kind:
  v: resource
abstract:
  v: false
type:
  v: ActivityDefinition
  l: ActivityDefinition
base definition:
  v: http://hl7.org/fhir/StructureDefinition/ActivityDefinition
  l: ActivityDefinition
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: ActivityDefinition
    path:
      v: ActivityDefinition
    short:
      v: The definition of a specific activity to be taken, independent of any particular patient or context
    definition:
      v: This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: ActivityDefinition
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: adf-0
      severity:
        v: warning
      human:
        v: Name should be usable as an identifier for the module by machine processing applications such as code generation
      expression:
        v: name.matches('[A-Z]([A-Za-z0-9_]){0,254}')
      xpath:
        v: not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')
      source:
        v: http://hl7.org/fhir/StructureDefinition/ActivityDefinition
        l: ActivityDefinition
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: 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
      expression:
        v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:security))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      extension:
        value: Boolean
      extension:
        value: Markdown
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()
      xpath:
        v: exists(f:text/h:div)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    is modifier:
      v: false
    is summary:
      v: false

Boolean
v: true

Markdown
v: 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.

identity:
  v: rim
map:
  v: Entity. Role, or Act

identity:
  v: workflow
map:
  v: Definition

identity:
  v: rim
map:
  v: Act[classCode=ACT; moodCode=DEFN]

id:
  v: ActivityDefinition.id
path:
  v: ActivityDefinition.id
short:
  v: Logical id of this artifact
definition:
  v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
comment:
  v: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: true

id:
  v: ActivityDefinition.meta
path:
  v: ActivityDefinition.meta
short:
  v: Metadata about the resource
definition:
  v: 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.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
    l: Meta
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
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: ActivityDefinition.meta.id
path:
  v: ActivityDefinition.meta.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ActivityDefinition.meta.extension
path:
  v: ActivityDefinition.meta.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
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ActivityDefinition.meta.versionId
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.meta.versionId
short:
  v: Server-managed resource version
definition:
  v: The technical resource version supplied by the server for change tracking of this specific ActivityDefinitionPortal instance.
comment:
  v: The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Meta.versionId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: ActivityDefinition.meta.lastUpdated
path:
  v: ActivityDefinition.meta.lastUpdated
short:
  v: When the resource version last changed
definition:
  v: When the resource last changed - e.g. when the version changed.
comment:
  v: This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Meta.lastUpdated
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: instant
    l: instant
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
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: ActivityDefinition.meta.source
path:
  v: ActivityDefinition.meta.source
short:
  v: Identifies where the resource comes from
definition:
  v: A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.
comment:
  v: In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Meta.source
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
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
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: ActivityDefinition.meta.profile
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.meta.profile
short:
  v: Profile declaration for this portal resource
definition:
  v: Identifies that the resource conforms to ActivityDefinitionPortal so clients can safely process it as the WOF Portal service concept profile.
comment:
  v: It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Meta.profile
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: canonical
    l: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/StructureDefinition|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/StructureDefinition
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: ActivityDefinition.meta.security
path:
  v: ActivityDefinition.meta.security
short:
  v: Security Labels applied to this resource
definition:
  v: Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.
comment:
  v: The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Meta.security
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SecurityLabels
  strength:
    v: extensible
  description:
    v: Security Labels from the Healthcare Privacy and Security Classification System.
  value set:
    v: http://hl7.org/fhir/ValueSet/security-labels|4.0.1
    l: http://hl7.org/fhir/ValueSet/security-labels

id:
  v: ActivityDefinition.meta.tag
path:
  v: ActivityDefinition.meta.tag
short:
  v: Tags applied to this resource
definition:
  v: Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.
comment:
  v: The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Meta.tag
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Tags
  strength:
    v: example
  description:
    v: Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
  value set:
    v: http://hl7.org/fhir/ValueSet/common-tags|4.0.1
    l: http://hl7.org/fhir/ValueSet/common-tags

id:
  v: ActivityDefinition.implicitRules
path:
  v: ActivityDefinition.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: 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.
comment:
  v: 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.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
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
    l: Element
is modifier:
  v: true
is modifier reason:
  v: 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
is summary:
  v: true

id:
  v: ActivityDefinition.language
path:
  v: ActivityDefinition.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: 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).
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      l: elementdefinition-maxValueSet
    value: Canonical
      v: http://hl7.org/fhir/ValueSet/all-languages
      l: all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  strength:
    v: preferred
  description:
    v: A human language.
  value set:
    v: http://hl7.org/fhir/ValueSet/languages|4.0.1
    l: http://hl7.org/fhir/ValueSet/languages

id:
  v: ActivityDefinition.text
path:
  v: ActivityDefinition.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: 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.
comment:
  v: Contained resources do not have 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.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
    l: Narrative
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: ActivityDefinition.contained
path:
  v: ActivityDefinition.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
comment:
  v: 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.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: 0
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
    l: Resource
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ActivityDefinition.extension
path:
  v: ActivityDefinition.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: ActivityDefinition.extension:sortKey
path:
  v: ActivityDefinition.extension
slice name:
  v: sortKey
short:
  v: Sort Key
definition:
  v: Sort order key for Location.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/ext-sort-key
    l: ext-sort-key
condition:
  v: ele-1
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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: ActivityDefinition.extension:campaigns
path:
  v: ActivityDefinition.extension
slice name:
  v: campaigns
short:
  v: Campaigns
definition:
  v: Campaign identifiers encoded as JSON.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/ext-campaigns
    l: ext-campaigns
condition:
  v: ele-1
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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: ActivityDefinition.modifierExtension
path:
  v: ActivityDefinition.modifierExtension
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: 0
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: 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
    l: 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
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: false

id:
  v: ActivityDefinition.url
path:
  v: ActivityDefinition.url
short:
  v: Canonical identifier for this activity definition, represented as a URI (globally unique)
definition:
  v: An absolute URI that is used to identify this activity definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this activity definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the activity definition is stored on different servers.
comment:
  v: Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred. Multiple instances may share the same URL if they have a distinct version. The determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author. Considerations for making this decision are found in [Technical and Business Versions](http://hl7.org/fhir/R4/resource.html#versions). In some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](http://hl7.org/fhir/R4/resource.html#meta) element to indicate where the current master source of the resource can be found.
requirements:
  v: Allows the activity definition to be referenced by a single globally unique identifier.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.url
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.url
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: rim
  map:
    v: .identifier[scope=BUSN;reliability=ISS]

id:
  v: ActivityDefinition.identifier
path:
  v: ActivityDefinition.identifier
short:
  v: Additional identifier for the activity definition
definition:
  v: A formal identifier that is used to identify this activity definition when it is represented in other formats, or referenced in a specification, model, design or an instance.
comment:
  v: Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this activity definition outside of FHIR, where it is not possible to use the logical URI.
requirements:
  v: Allows externally provided and/or usable business identifiers to be easily associated with the module.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: Identifier
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: rim
  map:
    v: .identifier
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: ActivityDefinition.version
path:
  v: ActivityDefinition.version
short:
  v: Business version of the activity definition
definition:
  v: The identifier that is used to identify this version of the activity definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the activity definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active assets.
comment:
  v: There may be different activity definition instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a reference to a particular business version of the activity definition with the format [url]|[version].
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.version
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.version
mapping:
  identity:
    v: rim
  map:
    v: N/A (to add?)

id:
  v: ActivityDefinition.name
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.name
short:
  v: Machine-friendly name for the service concept
definition:
  v: A stable, machine-friendly name for the service concept represented by this ActivityDefinitionPortal.
comment:
  v: The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.
requirements:
  v: Support human navigation and code generation.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ActivityDefinition.name
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: inv-0
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ActivityDefinition.title
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.title
short:
  v: Human-readable title for the service
definition:
  v: The user-facing title used to present the service concept in search results, booking flows, and other portal views.
comment:
  v: This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ActivityDefinition.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.title
mapping:
  identity:
    v: rim
  map:
    v: .title

id:
  v: ActivityDefinition.subtitle
path:
  v: ActivityDefinition.subtitle
short:
  v: Subordinate title of the activity definition
definition:
  v: An explanatory or alternate title for the activity definition giving additional information about its content.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.subtitle
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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
    l: Element
is modifier:
  v: false
is summary:
  v: false

id:
  v: ActivityDefinition.status
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.status
short:
  v: Publication status of the service concept
definition:
  v: The lifecycle status of the ActivityDefinitionPortal definition, for example whether the service concept is active.
comment:
  v: Allows filtering of activity definitions that are appropriate for use versus not.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ActivityDefinition.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
must support:
  v: true
is modifier:
  v: true
is modifier reason:
  v: This is labeled as "Is Modifier" because applications should not use a retired {{title}} without due consideration
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: PublicationStatus
  strength:
    v: required
  description:
    v: The lifecycle status of an artifact.
  value set:
    v: http://hl7.org/fhir/ValueSet/publication-status|4.0.1
    l: http://hl7.org/fhir/ValueSet/publication-status
mapping:
  identity:
    v: workflow
  map:
    v: Definition.status {different ValueSet}
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: rim
  map:
    v: .status

id:
  v: ActivityDefinition.experimental
path:
  v: ActivityDefinition.experimental
short:
  v: For testing purposes, not real usage
definition:
  v: A Boolean value to indicate that this activity definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.
comment:
  v: Allows filtering of activity definitions that are appropriate for use versus not.
requirements:
  v: Enables experimental content to be developed following the same lifecycle that would be used for a production-level activity definition.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.experimental
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.experimental
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: N/A (to add?)

id:
  v: ActivityDefinition.subject[x]
path:
  v: ActivityDefinition.subject[x]
short:
  v: Type of individual the activity definition is intended for
definition:
  v: A code or group definition that describes the intended subject of the activity being defined.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.subject[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Group|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Group
meaning when missing:
  v: Patient
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SubjectType
  strength:
    v: extensible
  description:
    v: The possible types of subjects for an activity (E.g. Patient, Practitioner, Organization, Location, etc.).
  value set:
    v: http://hl7.org/fhir/ValueSet/subject-type|4.0.1
    l: http://hl7.org/fhir/ValueSet/subject-type
mapping:
  identity:
    v: workflow
  map:
    v: Definition.subject

id:
  v: ActivityDefinition.date
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.date
short:
  v: Business version date for the definition
definition:
  v: The publication or business version date for this service definition. Clients may use it to understand when the definition was last updated by the publisher.
comment:
  v: Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the activity definition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.
alias:
  v: Revision Date
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ActivityDefinition.date
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.date
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=AUT].time

id:
  v: ActivityDefinition.publisher
path:
  v: ActivityDefinition.publisher
short:
  v: Name of the publisher (organization or individual)
definition:
  v: The name of the organization or individual that published the activity definition.
comment:
  v: Usually an organization but may be an individual. The publisher (or steward) of the activity definition is the organization or individual primarily responsible for the maintenance and upkeep of the activity definition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the activity definition. This item SHOULD be populated unless the information is available from context.
requirements:
  v: Helps establish the "authority/credibility" of the activity definition. May also allow for contact.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.publisher
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.publisher {as string instead of CodeableConcept}
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.witness
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=AUT].role

id:
  v: ActivityDefinition.contact
path:
  v: ActivityDefinition.contact
short:
  v: Contact details for the publisher
definition:
  v: Contact details to assist a user in finding and communicating with the publisher.
comment:
  v: May be a web site, an email address, a telephone number, etc.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.contact
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactDetail
    l: ContactDetail
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.contact
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=CALLBCK].role

id:
  v: ActivityDefinition.description
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.description
short:
  v: Presentation description of the service
definition:
  v: A human-readable description of the service concept intended for presentation, discovery, and search.
comment:
  v: This description can be used to capture details such as why the activity definition was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the activity definition as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the activity definition is presumed to be the predominant language in the place the activity definition was created).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ActivityDefinition.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
    l: markdown
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.description
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: ActivityDefinition.useContext
path:
  v: ActivityDefinition.useContext
short:
  v: The context that the content is intended to support
definition:
  v: The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate activity definition instances.
comment:
  v: When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.
requirements:
  v: Assist in searching for appropriate content.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.useContext
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: UsageContext
    l: UsageContext
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.useContext
mapping:
  identity:
    v: rim
  map:
    v: N/A (to add?)

id:
  v: ActivityDefinition.jurisdiction
path:
  v: ActivityDefinition.jurisdiction
short:
  v: Intended jurisdiction for activity definition (if applicable)
definition:
  v: A legal or geographic region in which the activity definition is intended to be used.
comment:
  v: It may be possible for the activity definition to be used in jurisdictions other than those for which it was originally designed or intended.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.jurisdiction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Jurisdiction
  strength:
    v: extensible
  description:
    v: Countries and regions within which this artifact is targeted for use.
  value set:
    v: http://hl7.org/fhir/ValueSet/jurisdiction|4.0.1
    l: http://hl7.org/fhir/ValueSet/jurisdiction
mapping:
  identity:
    v: workflow
  map:
    v: Definition.jurisdiction
mapping:
  identity:
    v: rim
  map:
    v: N/A (to add?)

id:
  v: ActivityDefinition.purpose
path:
  v: ActivityDefinition.purpose
short:
  v: Why this activity definition is defined
definition:
  v: Explanation of why this activity definition is needed and why it has been designed as it has.
comment:
  v: This element does not describe the usage of the activity definition. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is. This may be used to point to source materials or specifications that drove the structure of this activity definition.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.purpose
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
    l: markdown
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Definition.purpose
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: rim
  map:
    v: .reasonCode.text
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: ActivityDefinition.usage
path:
  v: ActivityDefinition.usage
short:
  v: Describes the clinical usage of the activity definition
definition:
  v: A detailed description of how the activity definition is used from a clinical perspective.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.usage
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A (to add?)

id:
  v: ActivityDefinition.copyright
path:
  v: ActivityDefinition.copyright
short:
  v: Use and/or publishing restrictions
definition:
  v: A copyright statement relating to the activity definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the activity definition.
requirements:
  v: Consumers must be able to determine any legal restrictions on the use of the activity definition and/or its content.
alias:
  v: License
alias:
  v: Restrictions
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.copyright
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
    l: markdown
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Definition.copyright
mapping:
  identity:
    v: rim
  map:
    v: N/A (to add?)
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: ActivityDefinition.approvalDate
path:
  v: ActivityDefinition.approvalDate
short:
  v: When the activity definition was approved by publisher
definition:
  v: The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.
comment:
  v: The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.approvalDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Definition.approvalDate
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode="SUBJ"].act[classCode=CACT;moodCode=EVN;code="approval"].effectiveTime
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: ActivityDefinition.lastReviewDate
path:
  v: ActivityDefinition.lastReviewDate
short:
  v: When the activity definition was last reviewed
definition:
  v: The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.
comment:
  v: If specified, this date follows the original approval date.
requirements:
  v: Gives a sense of how "current" the content is. Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.lastReviewDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Definition.lastReviewDate
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode="SUBJ"; subsetCode="RECENT"].act[classCode=CACT;moodCode=EVN;code="review"].effectiveTime
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: ActivityDefinition.effectivePeriod
path:
  v: ActivityDefinition.effectivePeriod
short:
  v: When the activity definition is expected to be used
definition:
  v: The period during which the activity definition content was or is planned to be in active use.
comment:
  v: The effective period for a activity definition determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.
requirements:
  v: Allows establishing a transition before a resource comes into effect and also allows for a sunsetting process when new versions of the activity definition are or are expected to be used instead.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.effectivePeriod
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.effectivePeriod
mapping:
  identity:
    v: rim
  map:
    v: N/A (to add?)
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: ActivityDefinition.topic
path:
  v: ActivityDefinition.topic
short:
  v: E.g. Education, Treatment, Assessment, etc.
definition:
  v: Descriptive topics related to the content of the activity. Topics provide a high-level categorization of the activity that can be useful for filtering and searching.
requirements:
  v: Repositories must be able to determine how to categorize the activity definition so that it can be found by topical searches.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.topic
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: DefinitionTopic
  strength:
    v: example
  description:
    v: High-level categorization of the definition, used for searching, sorting, and filtering.
  value set:
    v: http://hl7.org/fhir/ValueSet/definition-topic|4.0.1
    l: http://hl7.org/fhir/ValueSet/definition-topic
mapping:
  identity:
    v: rim
  map:
    v: N/A (to add?)

id:
  v: ActivityDefinition.author
path:
  v: ActivityDefinition.author
short:
  v: Who authored the content
definition:
  v: An individiual or organization primarily involved in the creation and maintenance of the content.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.author
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactDetail
    l: ContactDetail
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=AUT]

id:
  v: ActivityDefinition.editor
path:
  v: ActivityDefinition.editor
short:
  v: Who edited the content
definition:
  v: An individual or organization primarily responsible for internal coherence of the content.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.editor
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactDetail
    l: ContactDetail
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
    l: Element
is modifier:
  v: false
is summary:
  v: false

id:
  v: ActivityDefinition.reviewer
path:
  v: ActivityDefinition.reviewer
short:
  v: Who reviewed the content
definition:
  v: An individual or organization primarily responsible for review of some aspect of the content.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.reviewer
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactDetail
    l: ContactDetail
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}

id:
  v: ActivityDefinition.endorser
path:
  v: ActivityDefinition.endorser
short:
  v: Who endorsed the content
definition:
  v: An individual or organization responsible for officially endorsing the content for use in some setting.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.endorser
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactDetail
    l: ContactDetail
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=VRF] {not clear whether VRF best corresponds to reviewer or endorser}

id:
  v: ActivityDefinition.relatedArtifact
path:
  v: ActivityDefinition.relatedArtifact
short:
  v: Additional documentation, citations, etc.
definition:
  v: Related artifacts such as additional documentation, justification, or bibliographic references.
comment:
  v: Each related artifact is either an attachment, or a reference to another resource, but not both.
requirements:
  v: Activity definitions must be able to provide enough information for consumers of the content (and/or interventions or results produced by the content) to be able to determine and understand the justification for and evidence in support of the content.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.relatedArtifact
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: RelatedArtifact
    l: RelatedArtifact
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=DOC,RSON,PREV, DRIV, USE, COMP] {successor would be PREV w/ inversionInd=true; No support for citation}

id:
  v: ActivityDefinition.library
path:
  v: ActivityDefinition.library
short:
  v: Logic used by the activity definition
definition:
  v: A reference to a Library resource containing any formal logic used by the activity definition.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.library
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: canonical
    l: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Library|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Library
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=USE].target[classCode=GROUPER,moodCode=EVN]

id:
  v: ActivityDefinition.kind
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.kind
short:
  v: Target request type for the service
definition:
  v: The request resource type represented by this service concept. In WOF Portal this is fixed to ServiceRequest.
comment:
  v: May determine what types of extensions are permitted.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ActivityDefinition.kind
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
pattern: Code
  v: ServiceRequest
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ActivityDefinitionKind
  strength:
    v: required
  description:
    v: The kind of activity the definition is describing.
  value set:
    v: http://hl7.org/fhir/ValueSet/request-resource-types|4.0.1
    l: http://hl7.org/fhir/ValueSet/request-resource-types
mapping:
  identity:
    v: rim
  map:
    v: .classCode

id:
  v: ActivityDefinition.profile
path:
  v: ActivityDefinition.profile
short:
  v: What profile the resource needs to conform to
definition:
  v: A profile to which the target of the activity definition is expected to conform.
requirements:
  v: Allows profiles to be used to describe the types of activities that can be performed within a workflow, protocol, or order set.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ActivityDefinition.profile
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: canonical
    l: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/StructureDefinition|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/StructureDefinition
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
    l: Element
is modifier:
  v: false
is summary:
  v: false

id:
  v: ActivityDefinition.code
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.code
short:
  v: Booking activity code for the service
definition:
  v: The business code that uniquely identifies the shared service concept. Booking and interoperability use this code rather than the FHIR resource id.
comment:
  v: Tends to be less relevant for activities involving particular products.
requirements:
  v: Allows matching performed to planned as well as validation against protocols.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ActivityDefinition.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ActivityDefinitionType
  strength:
    v: example
  description:
    v: Detailed type of the activity; e.g. CBC.
  value set:
    v: http://hl7.org/fhir/ValueSet/procedure-code|4.0.1
    l: http://hl7.org/fhir/ValueSet/procedure-code
mapping:
  identity:
    v: rim
  map:
    v: .code

id:
  v: ActivityDefinition.code.id
path:
  v: ActivityDefinition.code.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ActivityDefinition.code.extension
path:
  v: ActivityDefinition.code.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
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ActivityDefinition.code.coding
path:
  v: ActivityDefinition.code.coding
short:
  v: Coded representation of the service concept
definition:
  v: The coding that carries the booking activity code for the service concept.
comment:
  v: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
requirements:
  v: Allows for alternative encodings within a code system, and translations to other code systems.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: ActivityDefinition.code.coding.id
path:
  v: ActivityDefinition.code.coding.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ActivityDefinition.code.coding.extension
path:
  v: ActivityDefinition.code.coding.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
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ActivityDefinition.code.coding.system
path:
  v: ActivityDefinition.code.coding.system
short:
  v: WOF Connect service type code system
definition:
  v: The coding system for the booking activity code. The server SHALL populate this with the WOF Connect service-type-id code system.
comment:
  v: The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.
requirements:
  v: Need to be unambiguous about the source of the definition of the symbol.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Coding.system
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
fixed: Uri
  v: http://canonical.fhir.link/servicewell/wof-connect/identifiercodesystem/service-type-id
  l: service-type-id
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.3
mapping:
  identity:
    v: rim
  map:
    v: ./codeSystem
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem

id:
  v: ActivityDefinition.code.coding.version
path:
  v: ActivityDefinition.code.coding.version
short:
  v: Version of the system - if relevant
definition:
  v: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
comment:
  v: Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.7
mapping:
  identity:
    v: rim
  map:
    v: ./codeSystemVersion
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion

id:
  v: ActivityDefinition.code.coding.code
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal|0.1.0
      l: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/activity-definition-portal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.code.coding.code
short:
  v: Service type identifier
definition:
  v: The code value that uniquely identifies the shared service concept within the WOF Connect service-type-id code system. This is the only coded value the client is required to populate.
requirements:
  v: Need to refer to a particular code in the system.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Coding.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.1
mapping:
  identity:
    v: rim
  map:
    v: ./code
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code

id:
  v: ActivityDefinition.code.coding.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: ActivityDefinition.code.coding.display
short:
  v: Representation defined by the system
definition:
  v: A representation of the meaning of the code in the system, following the rules of the system.
requirements:
  v: Need to be able to carry a human-readable meaning of the code for readers that do not know the system.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.2 - but note this is not well followed
mapping:
  identity:
    v: rim
  map:
    v: CV.displayName
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName

id:
  v: ActivityDefinition.code.coding.userSelected
path:
  v: ActivityDefinition.code.coding.userSelected
short:
  v: If this coding was chosen directly by the user
definition:
  v: Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).
comment:
  v: Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.
requirements:
  v: This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.userSelected
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: Sometimes implied by being first
mapping:
  identity:
    v: rim
  map:
    v: CD.codingRationale
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]

id:
  v: ActivityDefinition.code.text
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: ActivityDefinition.code.text
short:
  v: Display label for the service code
definition:
  v: A human-readable rendering of the coded service concept, typically aligned with the portal title.
comment:
  v: Very often the text is the same as a displayName of one of the codings.
requirements:
  v: The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.9. But note many systems use C*E.2 for this
mapping:
  identity:
    v: rim
  map:
    v: ./originalText[mediaType/code="text/plain"]/data
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

id:
  v: ActivityDefinition.intent
path:
  v: ActivityDefinition.intent
short:
  v: proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
definition:
  v: Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.intent
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: RequestIntent
  strength:
    v: required
  description:
    v: Codes indicating the degree of authority/intentionality associated with a request.
  value set:
    v: http://hl7.org/fhir/ValueSet/request-intent|4.0.1
    l: http://hl7.org/fhir/ValueSet/request-intent

id:
  v: ActivityDefinition.priority
path:
  v: ActivityDefinition.priority
short:
  v: routine | urgent | asap | stat
definition:
  v: Indicates how quickly the activity should be addressed with respect to other requests.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.priority
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: RequestPriority
  strength:
    v: required
  description:
    v: Identifies the level of importance to be assigned to actioning the request.
  value set:
    v: http://hl7.org/fhir/ValueSet/request-priority|4.0.1
    l: http://hl7.org/fhir/ValueSet/request-priority

id:
  v: ActivityDefinition.doNotPerform
path:
  v: ActivityDefinition.doNotPerform
short:
  v: True if the activity should not be performed
definition:
  v: Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action.
comment:
  v: This element is not intended to be used to communicate a decision support response to cancel an order in progress. That should be done with the "remove" type of a PlanDefinition or RequestGroup.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.doNotPerform
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
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
    l: Element
is modifier:
  v: true
is modifier reason:
  v: If true this element negates the specified action. For Example, instead of a request for a procedure, it is a request for the procedure to not occur.
is summary:
  v: true

id:
  v: ActivityDefinition.timing[x]
path:
  v: ActivityDefinition.timing[x]
short:
  v: When activity is to occur
definition:
  v: The period, timing or frequency upon which the described activity is to occur.
requirements:
  v: Allows prompting for activities and detection of missed planned activities.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.timing[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Timing
    l: Timing
type:
  code:
    v: dateTime
    l: dateTime
type:
  code:
    v: Age
    l: Age
type:
  code:
    v: Period
    l: Period
type:
  code:
    v: Range
    l: Range
type:
  code:
    v: Duration
    l: Duration
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: ActivityDefinition.location
path:
  v: ActivityDefinition.location
short:
  v: Where it should happen
definition:
  v: Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.
comment:
  v: May reference a specific clinical location or may just identify a type of location.
requirements:
  v: Helps in planning of activity.
alias:
  v: facility
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.location
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Location|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Location
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=LOC].role

id:
  v: ActivityDefinition.participant
path:
  v: ActivityDefinition.participant
short:
  v: Who should participate in the action
definition:
  v: Indicates who should participate in performing the action described.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.participant
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PFM]

id:
  v: ActivityDefinition.participant.id
path:
  v: ActivityDefinition.participant.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ActivityDefinition.participant.extension
path:
  v: ActivityDefinition.participant.extension
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
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ActivityDefinition.participant.modifierExtension
path:
  v: ActivityDefinition.participant.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
    l: 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
    l: 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
    l: 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: ActivityDefinition.participant.type
path:
  v: ActivityDefinition.participant.type
short:
  v: patient | practitioner | related-person | device
definition:
  v: The type of participant in the action.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ActivityDefinition.participant.type
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ActivityParticipantType
  strength:
    v: required
  description:
    v: The type of participant in the activity.
  value set:
    v: http://hl7.org/fhir/ValueSet/action-participant-type|4.0.1
    l: http://hl7.org/fhir/ValueSet/action-participant-type
mapping:
  identity:
    v: rim
  map:
    v: .role.classCode

id:
  v: ActivityDefinition.participant.role
path:
  v: ActivityDefinition.participant.role
short:
  v: E.g. Nurse, Surgeon, Parent, etc.
definition:
  v: The role the participant should play in performing the described action.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ActivityDefinition.participant.role
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ActivityParticipantRole
  strength:
    v: example
  description:
    v: Defines roles played by participants for the action.
  value set:
    v: http://hl7.org/fhir/ValueSet/action-participant-role|4.0.1
    l: http://hl7.org/fhir/ValueSet/action-participant-role
mapping:
  identity:
    v: rim
  map:
    v: .role.code

id:
  v: ActivityDefinition.product[x]
path:
  v: ActivityDefinition.product[x]
short:
  v: What's administered/supplied
definition:
  v: Identifies the food, drug or other product being consumed or supplied in the activity.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.product[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Medication|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Medication
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Substance|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Substance
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ActivityProduct
  strength:
    v: example
  description:
    v: Code describing the type of substance or medication.
  value set:
    v: http://hl7.org/fhir/ValueSet/medication-codes|4.0.1
    l: http://hl7.org/fhir/ValueSet/medication-codes
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=CSM].role

id:
  v: ActivityDefinition.quantity
path:
  v: ActivityDefinition.quantity
short:
  v: How much is administered/consumed/supplied
definition:
  v: Identifies the quantity expected to be consumed at once (per dose, per meal, etc.).
alias:
  v: dose
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.quantity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .quantity {for classCode=SPLY}

id:
  v: ActivityDefinition.dosage
path:
  v: ActivityDefinition.dosage
short:
  v: Detailed dosage instructions
definition:
  v: Provides detailed dosage instructions in the same way that they are described for MedicationRequest resources.
comment:
  v: If a dosage instruction is used, the definition should not specify timing or quantity.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.dosage
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Dosage
    l: Dosage
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP].target[classCode=SBADM; moodCode=DEFN]

id:
  v: ActivityDefinition.bodySite
path:
  v: ActivityDefinition.bodySite
short:
  v: What part of body to perform on
definition:
  v: Indicates the sites on the subject's body where the procedure should be performed (I.e. the target sites).
comment:
  v: Only used if not implicit in the code found in ServiceRequest.type.
requirements:
  v: Knowing where the procedure is made is important for tracking if multiple sites are possible.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.bodySite
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: BodySite
  strength:
    v: example
  description:
    v: A code that identifies the anatomical location.
  value set:
    v: http://hl7.org/fhir/ValueSet/body-site|4.0.1
    l: http://hl7.org/fhir/ValueSet/body-site
mapping:
  identity:
    v: rim
  map:
    v: .targetSiteCode {for classCode=PROC, SBADM}

id:
  v: ActivityDefinition.specimenRequirement
path:
  v: ActivityDefinition.specimenRequirement
short:
  v: What specimens are required to perform this action
definition:
  v: Defines specimen requirements for the action to be performed, such as required specimens for a lab test.
requirements:
  v: Needed to represent lab order definitions.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.specimenRequirement
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/SpecimenDefinition|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/SpecimenDefinition
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
    l: Element
is modifier:
  v: false
is summary:
  v: false

id:
  v: ActivityDefinition.observationRequirement
path:
  v: ActivityDefinition.observationRequirement
short:
  v: What observations are required to perform this action
definition:
  v: Defines observation requirements for the action to be performed, such as body weight or surface area.
requirements:
  v: Needed to represent observation definitions.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.observationRequirement
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ObservationDefinition|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/ObservationDefinition
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
    l: Element
is modifier:
  v: false
is summary:
  v: false

id:
  v: ActivityDefinition.observationResultRequirement
path:
  v: ActivityDefinition.observationResultRequirement
short:
  v: What observations must be produced by this action
definition:
  v: Defines the observations that are expected to be produced by the action.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.observationResultRequirement
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ObservationDefinition|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/ObservationDefinition
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
    l: Element
is modifier:
  v: false
is summary:
  v: false

id:
  v: ActivityDefinition.transform
path:
  v: ActivityDefinition.transform
short:
  v: Transform to apply the template
definition:
  v: A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input.
comment:
  v: Note that if both a transform and dynamic values are specified, the dynamic values will be applied to the result of the transform.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.transform
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: canonical
    l: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/StructureMap|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/StructureMap
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ActivityDefinition.dynamicValue
path:
  v: ActivityDefinition.dynamicValue
short:
  v: Dynamic aspects of the definition
definition:
  v: Dynamic values that will be evaluated to produce values for elements of the resulting resource. For example, if the dosage of a medication must be computed based on the patient's weight, a dynamic value would be used to specify an expression that calculated the weight, and the path on the request resource that would contain the result.
comment:
  v: Dynamic values are applied in the order in which they are defined in the ActivityDefinition. Note that if both a transform and dynamic values are specified, the dynamic values will be applied to the result of the transform.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: ActivityDefinition.dynamicValue
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: 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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ActivityDefinition.dynamicValue.id
path:
  v: ActivityDefinition.dynamicValue.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ActivityDefinition.dynamicValue.extension
path:
  v: ActivityDefinition.dynamicValue.extension
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
    l: 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
    l: 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
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ActivityDefinition.dynamicValue.modifierExtension
path:
  v: ActivityDefinition.dynamicValue.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
    l: 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
    l: 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
    l: 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: ActivityDefinition.dynamicValue.path
path:
  v: ActivityDefinition.dynamicValue.path
short:
  v: The path to the element to be set dynamically
definition:
  v: The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](http://hl7.org/fhir/R4/fhirpath.html#simple) for full details).
comment:
  v: The path attribute contains a [Simple FHIRPath Subset](http://hl7.org/fhir/R4/fhirpath.html#simple) that allows path traversal, but not calculation.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ActivityDefinition.dynamicValue.path
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ActivityDefinition.dynamicValue.expression
path:
  v: ActivityDefinition.dynamicValue.expression
short:
  v: An expression that provides the dynamic value for the customization
definition:
  v: An expression specifying the value of the customized element.
comment:
  v: The expression may be inlined, or may be a reference to a named expression within a logic library referenced by the library element.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ActivityDefinition.dynamicValue.expression
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Expression
    l: Expression
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
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

element:
  id:
    v: ActivityDefinition.meta
  path:
    v: ActivityDefinition.meta
  min:
    v: 1
element:
  id:
    v: ActivityDefinition.meta.versionId
  extension:
    extension:
      url:
        v: actor
        l: actor
      value: Canonical
        v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
        l: wof-portal-server
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:populate
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
      l: obligation
  extension:
    extension:
      url:
        v: actor
        l: actor
      value: Canonical
        v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
        l: wof-portal-client
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:handle
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
      l: obligation
  path:
    v: ActivityDefinition.meta.versionId
  short:
    v: Server-managed resource version
  definition:
    v: The technical resource version supplied by the server for change tracking of this specific ActivityDefinitionPortal instance.
  min:
    v: 1
  must support:
    v: true
element:
  id:
    v: ActivityDefinition.meta.profile
  extension:
    extension:
      url:
        v: actor
        l: actor
      value: Canonical
        v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
        l: wof-portal-server
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:populate
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
      l: obligation
  extension:
    extension:
      url:
        v: actor
        l: actor
      value: Canonical
        v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
        l: wof-portal-client
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:handle
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
      l: obligation
  path:
    v: ActivityDefinition.meta.profile
  short:
    v: Profile declaration for this portal resource
  definition:
    v: Identifies that the resource conforms to ActivityDefinitionPortal so clients can safely process it as the WOF Portal service concept profile.
  min:
    v: 1
  must support:
    v: true
element:
  id:
    v: ActivityDefinition.implicitRules
  path:
    v: ActivityDefinition.implicitRules
  max:
    v: 0
element:
  id:
    v: ActivityDefinition.language
  path:
    v: ActivityDefinition.language
  max:
    v: 0
element:
  id:
    v: ActivityDefinition.contained
  path:
    v: ActivityDefinition.contained
  max:
    v: 0
element:
  id:
    v: ActivityDefinition.extension
  path:
    v: ActivityDefinition.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
element:
  id:
    v: ActivityDefinition.extension:sortKey
  path:
    v: ActivityDefinition.extension
  slice name:
    v: sortKey
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/ext-sort-key
      l: ext-sort-key
element:
  id:
    v: ActivityDefinition.extension:campaigns
  path:
    v: ActivityDefinition.extension
  slice name:
    v: campaigns
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/ext-campaigns
      l: ext-campaigns
element:
  id:
    v: ActivityDefinition.modifierExtension
  path:
    v: ActivityDefinition.modifierExtension
  max:
    v: 0
element:
  id:
    v: ActivityDefinition.url
  path:
    v: ActivityDefinition.url
  max:
    v: 0
element:
  id:
    v: ActivityDefinition.identifier
  path:
    v: ActivityDefinition.identifier
  max:
    v: 0
element:
  id:
    v: ActivityDefinition.version
  path:
    v: ActivityDefinition.version
  max:
    v: 0

id:
  v: ActivityDefinition.name
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.name
short:
  v: Machine-friendly name for the service concept
definition:
  v: A stable, machine-friendly name for the service concept represented by this ActivityDefinitionPortal.
min:
  v: 1
must support:
  v: true

id:
  v: ActivityDefinition.title
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.title
short:
  v: Human-readable title for the service
definition:
  v: The user-facing title used to present the service concept in search results, booking flows, and other portal views.
min:
  v: 1
must support:
  v: true

id:
  v: ActivityDefinition.subtitle
path:
  v: ActivityDefinition.subtitle
max:
  v: 0

id:
  v: ActivityDefinition.status
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.status
short:
  v: Publication status of the service concept
definition:
  v: The lifecycle status of the ActivityDefinitionPortal definition, for example whether the service concept is active.
must support:
  v: true

id:
  v: ActivityDefinition.experimental
path:
  v: ActivityDefinition.experimental
max:
  v: 0

id:
  v: ActivityDefinition.subject[x]
path:
  v: ActivityDefinition.subject[x]
max:
  v: 0

id:
  v: ActivityDefinition.date
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.date
short:
  v: Business version date for the definition
definition:
  v: The publication or business version date for this service definition. Clients may use it to understand when the definition was last updated by the publisher.
min:
  v: 1
must support:
  v: true

id:
  v: ActivityDefinition.publisher
path:
  v: ActivityDefinition.publisher
max:
  v: 0

id:
  v: ActivityDefinition.contact
path:
  v: ActivityDefinition.contact
max:
  v: 0

id:
  v: ActivityDefinition.description
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.description
short:
  v: Presentation description of the service
definition:
  v: A human-readable description of the service concept intended for presentation, discovery, and search.
min:
  v: 1
must support:
  v: true

id:
  v: ActivityDefinition.useContext
path:
  v: ActivityDefinition.useContext
max:
  v: 0

id:
  v: ActivityDefinition.jurisdiction
path:
  v: ActivityDefinition.jurisdiction
max:
  v: 0

id:
  v: ActivityDefinition.purpose
path:
  v: ActivityDefinition.purpose
max:
  v: 0

id:
  v: ActivityDefinition.usage
path:
  v: ActivityDefinition.usage
max:
  v: 0

id:
  v: ActivityDefinition.copyright
path:
  v: ActivityDefinition.copyright
max:
  v: 0

id:
  v: ActivityDefinition.approvalDate
path:
  v: ActivityDefinition.approvalDate
max:
  v: 0

id:
  v: ActivityDefinition.lastReviewDate
path:
  v: ActivityDefinition.lastReviewDate
max:
  v: 0

id:
  v: ActivityDefinition.effectivePeriod
path:
  v: ActivityDefinition.effectivePeriod
max:
  v: 0

id:
  v: ActivityDefinition.topic
path:
  v: ActivityDefinition.topic
max:
  v: 0

id:
  v: ActivityDefinition.author
path:
  v: ActivityDefinition.author
max:
  v: 0

id:
  v: ActivityDefinition.editor
path:
  v: ActivityDefinition.editor
max:
  v: 0

id:
  v: ActivityDefinition.reviewer
path:
  v: ActivityDefinition.reviewer
max:
  v: 0

id:
  v: ActivityDefinition.endorser
path:
  v: ActivityDefinition.endorser
max:
  v: 0

id:
  v: ActivityDefinition.relatedArtifact
path:
  v: ActivityDefinition.relatedArtifact
max:
  v: 0

id:
  v: ActivityDefinition.library
path:
  v: ActivityDefinition.library
max:
  v: 0

id:
  v: ActivityDefinition.kind
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.kind
short:
  v: Target request type for the service
definition:
  v: The request resource type represented by this service concept. In WOF Portal this is fixed to ServiceRequest.
min:
  v: 1
pattern: Code
  v: ServiceRequest
must support:
  v: true

id:
  v: ActivityDefinition.code
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.code
short:
  v: Booking activity code for the service
definition:
  v: The business code that uniquely identifies the shared service concept. Booking and interoperability use this code rather than the FHIR resource id.
min:
  v: 1
must support:
  v: true

id:
  v: ActivityDefinition.code.coding
path:
  v: ActivityDefinition.code.coding
short:
  v: Coded representation of the service concept
definition:
  v: The coding that carries the booking activity code for the service concept.
min:
  v: 1
max:
  v: 1

id:
  v: ActivityDefinition.code.coding.system
path:
  v: ActivityDefinition.code.coding.system
short:
  v: WOF Connect service type code system
definition:
  v: The coding system for the booking activity code. The server SHALL populate this with the WOF Connect service-type-id code system.
min:
  v: 1
fixed: Uri
  v: http://canonical.fhir.link/servicewell/wof-connect/identifiercodesystem/service-type-id
  l: service-type-id

id:
  v: ActivityDefinition.code.coding.code
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-server
      l: wof-portal-server
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://canonical.fhir.link/servicewell/wof-portal/ActorDefinition/wof-portal-client
      l: wof-portal-client
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: ActivityDefinition.code.coding.code
short:
  v: Service type identifier
definition:
  v: The code value that uniquely identifies the shared service concept within the WOF Connect service-type-id code system. This is the only coded value the client is required to populate.
min:
  v: 1

id:
  v: ActivityDefinition.code.text
path:
  v: ActivityDefinition.code.text
short:
  v: Display label for the service code
definition:
  v: A human-readable rendering of the coded service concept, typically aligned with the portal title.

id:
  v: ActivityDefinition.intent
path:
  v: ActivityDefinition.intent
max:
  v: 0

id:
  v: ActivityDefinition.priority
path:
  v: ActivityDefinition.priority
max:
  v: 0

id:
  v: ActivityDefinition.doNotPerform
path:
  v: ActivityDefinition.doNotPerform
max:
  v: 0

id:
  v: ActivityDefinition.timing[x]
path:
  v: ActivityDefinition.timing[x]
max:
  v: 0

id:
  v: ActivityDefinition.location
path:
  v: ActivityDefinition.location
max:
  v: 0

id:
  v: ActivityDefinition.participant
path:
  v: ActivityDefinition.participant
max:
  v: 0

id:
  v: ActivityDefinition.product[x]
path:
  v: ActivityDefinition.product[x]
max:
  v: 0

id:
  v: ActivityDefinition.quantity
path:
  v: ActivityDefinition.quantity
max:
  v: 0

id:
  v: ActivityDefinition.dosage
path:
  v: ActivityDefinition.dosage
max:
  v: 0

id:
  v: ActivityDefinition.bodySite
path:
  v: ActivityDefinition.bodySite
max:
  v: 0

id:
  v: ActivityDefinition.specimenRequirement
path:
  v: ActivityDefinition.specimenRequirement
max:
  v: 0

id:
  v: ActivityDefinition.observationRequirement
path:
  v: ActivityDefinition.observationRequirement
max:
  v: 0

id:
  v: ActivityDefinition.observationResultRequirement
path:
  v: ActivityDefinition.observationResultRequirement
max:
  v: 0

id:
  v: ActivityDefinition.transform
path:
  v: ActivityDefinition.transform
max:
  v: 0

id:
  v: ActivityDefinition.dynamicValue
path:
  v: ActivityDefinition.dynamicValue
max:
  v: 0