measurement
type: CapabilityStatement
node role: treeRoot
id:
  v: measurement
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: CapabilityStatement measurement Implementation Guide Version: 8.0.0 FHIR Version: 4.0.1 Supported Formats: application/fhir+xml, xml, application/fhir+json, json, application/x-turtle, ttl, html/json, html/xml, html/turtle Published on: 2025-10-21 11:11:11+0000 Published by: Den telemedicinske infrastruktur (eHealth Infrastructure) Note to Implementers: FHIR Capabilities Any FHIR capability may be 'allowed' by the system unless explicitly marked as 'SHALL NOT'. A few items are marked as MAY in the Implementation Guide to highlight their potential relevance to the use case. FHIR RESTful Capabilities Mode: server Summary of System-wide Operations Conformance Operation Documentation SHALL $migrate Data migration SHALL $search-measurements The search-measurements operation searches for bundles of related resources having Observations, Media or QuestionnaireResponses matching the search criteria. Parameter description patient: Find resource(s) referring the specified patient - Reference(eHealth Patient). episodeOfCare: Find resource(s) referring the specified episode of care - Reference(eHealth EpisodeOfCare). device: Find resource(s) referring the specified device - Reference(eHealth Device | eHealth DeviceMetric). period: Resource(s) must have either an instant or time period within or overlapping the given period. The used instant/time period varies with resource as follows: Element effective for eHealth Observation; Element authored for eHealth QuestionnaireResponse; Element occurrence for eHealth Media. based-on: Resources(s) must be based on any of the specified procedure requests - Reference(eHealth ServiceRequest). _tag: When specified, resource(s) must have at least one of the specified tags in meta data - for instance a Coding(ehealth-system CodeSystem) or on token form: http://ehealth.sundhed.dk/cs/ehealth-system|xa. Note that the _tag functions as an optional filter, not as a selection criteria in the way the other parameters work. "perio…
url:
  v: http://ehealth.sundhed.dk/fhir/CapabilityStatement/measurement
  l: measurement
version:
  v: 8.0.0
name:
  v: measurement
status:
  v: active
date:
  v: 2025-10-21T11:11:11.320+00:00
publisher:
  v: Den telemedicinske infrastruktur (eHealth Infrastructure)
contact:
  name:
    v: Den telemedicinske infrastruktur (eHealth Infrastructure)
  telecom:
    system:
      v: url
    value:
      v: http://ehealth.sundhed.dk
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: DK
    display:
      v: Denmark
kind:
  v: instance
software:
  name:
    v: measurement
  version:
    v: 1.27.0
implementation:
  description:
    v: eHealth measurement service
  url:
    v: https://measurement.devtest.systematic-ehealth.com/fhir
    l: fhir
fhir version:
  v: 4.0.1
format:
  v: application/fhir+xml
format:
  v: xml
format:
  v: application/fhir+json
format:
  v: json
format:
  v: application/x-turtle
format:
  v: ttl
format:
  v: html/json
format:
  v: html/xml
format:
  v: html/turtle
rest:
  mode:
    v: server
  resource:
    type:
      v: Communication
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-communication
      l: ehealth-communication
    interaction:
      code:
        v: search-type
    interaction:
      code:
        v: vread
    interaction:
      code:
        v: read
    interaction:
      code:
        v: patch
    interaction:
      code:
        v: create
    conditional create:
      v: true
    search rev include:
      v: Communication:episodeOfCare
    search rev include:
      v: Communication:recipient
    search rev include:
      v: Communication:recipientCareTeam
    search rev include:
      v: Communication:sender
    search rev include:
      v: Communication:senderCareTeam
    search rev include:
      v: Communication:subject
    search rev include:
      v: Media:based-on
    search rev include:
      v: Media:episodeOfCare
    search rev include:
      v: Media:relatedTo
    search rev include:
      v: Media:subject
    search rev include:
      v: Observation:based-on
    search rev include:
      v: Observation:episodeOfCare
    search rev include:
      v: Observation:patient
    search rev include:
      v: Observation:subject
    search rev include:
      v: Provenance:agent
    search rev include:
      v: Provenance:entity
    search rev include:
      v: Provenance:entity-episodeOfCare
    search rev include:
      v: Provenance:entity-serviceRequest
    search rev include:
      v: Provenance:target
    search rev include:
      v: QuestionnaireResponse:based-on
    search rev include:
      v: QuestionnaireResponse:episodeOfCare
    search rev include:
      v: QuestionnaireResponse:questionnaire
    search rev include:
      v: QuestionnaireResponse:subject
    search param:
      name:
        v: _tag
      type:
        v: token
      documentation:
        v: Search for resources which have the given tag
    search param:
      name:
        v: episodeOfCare
      type:
        v: reference
      documentation:
        v: Episode associated with communication
    search param:
      name:
        v: identifier
      type:
        v: token
      documentation:
        v: Unique identifier
    search param:
      name:
        v: recipient
      type:
        v: reference
      documentation:
        v: Message recipient
    search param:
      name:
        v: recipientCareTeam
      type:
        v: reference
      documentation:
        v: Recipient care team
    search param:
      name:
        v: sender
      type:
        v: reference
      documentation:
        v: Message sender
    search param:
      name:
        v: senderCareTeam
      type:
        v: reference
      documentation:
        v: Sender care team
    search param:
      name:
        v: subject
      type:
        v: reference
      documentation:
        v: Focus of message
    operation:
      name:
        v: validate

type:
  v: Media
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media
  l: ehealth-media
interaction:
  code:
    v: update
interaction:
  code:
    v: search-type
interaction:
  code:
    v: vread
interaction:
  code:
    v: read
interaction:
  code:
    v: patch
conditional update:
  v: true
search include:
  v: Media:relatedTo
search rev include:
  v: Media:relatedTo
search rev include:
  v: Provenance:target
search param:
  name:
    v: _content
  type:
    v: string
  documentation:
    v: Search the contents of the resource's data using a fulltext search
search param:
  name:
    v: _filter
  type:
    v: string
  documentation:
    v: Search the contents of the resource's data using a filter
search param:
  name:
    v: _id
  type:
    v: token
  documentation:
    v: The ID of the resource
search param:
  name:
    v: _tag
  type:
    v: token
  documentation:
    v: Search for resources which have the given tag
search param:
  name:
    v: based-on
  type:
    v: reference
  documentation:
    v: Procedure that caused this media to be created
search param:
  name:
    v: created
  type:
    v: date
  documentation:
    v: When Media was collected
search param:
  name:
    v: episodeOfCare
  type:
    v: reference
  documentation:
    v: Episode associated with media
search param:
  name:
    v: identifier
  type:
    v: token
  documentation:
    v: Identifier(s) for the image
search param:
  name:
    v: qualityCode
  type:
    v: token
  documentation:
    v: Quality code of the media
search param:
  name:
    v: qualityType
  type:
    v: token
  documentation:
    v: Quality type of the media
search param:
  name:
    v: relatedTo
  type:
    v: reference
  documentation:
    v: Media related to
search param:
  name:
    v: resolvedTimingEnd
  type:
    v: date
  documentation:
    v: Resolved Timing end
search param:
  name:
    v: resolvedTimingServiceRequestVersionId
  type:
    v: token
  documentation:
    v: Resolved Timing serviceRequestVersionID
search param:
  name:
    v: resolvedTimingStart
  type:
    v: date
  documentation:
    v: Resolved Timing start
search param:
  name:
    v: resolvedTimingType
  type:
    v: token
  documentation:
    v: Resolved Timing type
search param:
  name:
    v: series
  type:
    v: string
  documentation:
    v: Series ID
search param:
  name:
    v: subject
  type:
    v: reference
  documentation:
    v: Who/What this Media is a record of
search param:
  name:
    v: type
  type:
    v: token
  documentation:
    v: photo | video | audio
search param:
  name:
    v: usageMode
  type:
    v: token
  documentation:
    v: Usage mode
operation:
  name:
    v: validate
  definition:
    v: https://measurement.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate
    l: Multi-it-validate
operation:
  name:
    v: get-data
  definition:
    v: https://measurement.devtest.systematic-ehealth.com/fhir/OperationDefinition/Media-t-get-data
    l: Media-t-get-data
  documentation:
    v: The get-data operation returns a media content matching the uuid provided. ### Parameter description - uuid: The uuid of the media to return ### Request header description - ehealth-thumbnail-size: The size of thumbnail to return instead of original content. If thumbnails are not supported for the media, the original content is returned ### Output description The result of this operation returns a Binary containing the media found from the provided uuid

type:
  v: Observation
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation
  l: ehealth-observation
interaction:
  code:
    v: search-type
interaction:
  code:
    v: vread
interaction:
  code:
    v: read
interaction:
  code:
    v: patch
search rev include:
  v: Provenance:target
search param:
  name:
    v: _content
  type:
    v: string
  documentation:
    v: Search the contents of the resource's data using a fulltext search
search param:
  name:
    v: _filter
  type:
    v: string
  documentation:
    v: Search the contents of the resource's data using a filter
search param:
  name:
    v: _id
  type:
    v: token
  documentation:
    v: The ID of the resource
search param:
  name:
    v: _tag
  type:
    v: token
  documentation:
    v: Search for resources which have the given tag
search param:
  name:
    v: _text
  type:
    v: string
  documentation:
    v: Search the contents of the resource's narrative using a fulltext search
search param:
  name:
    v: based-on
  type:
    v: reference
  documentation:
    v: Reference to the test or procedure request.
search param:
  name:
    v: code
  type:
    v: token
  documentation:
    v: The code of the observation type
search param:
  name:
    v: date
  type:
    v: date
  documentation:
    v: Obtained date/time. If the obtained element is a period, a date that falls in the period
search param:
  name:
    v: episodeOfCare
  type:
    v: reference
  documentation:
    v: Episode associated with observation
search param:
  name:
    v: identifier
  type:
    v: token
  documentation:
    v: The unique id for a particular observation
search param:
  name:
    v: patient
  type:
    v: reference
  documentation:
    v: The subject that the observation is about (if patient)
search param:
  name:
    v: qualityCode
  type:
    v: token
  documentation:
    v: The quality code of the observation
search param:
  name:
    v: qualityType
  type:
    v: token
  documentation:
    v: The quality type of the observation
search param:
  name:
    v: resolvedTimingEnd
  type:
    v: date
  documentation:
    v: Resolved Timing end
search param:
  name:
    v: resolvedTimingServiceRequestVersionId
  type:
    v: token
  documentation:
    v: Resolved Timing serviceRequestVersionID
search param:
  name:
    v: resolvedTimingStart
  type:
    v: date
  documentation:
    v: Resolved Timing start
search param:
  name:
    v: resolvedTimingType
  type:
    v: token
  documentation:
    v: Resolved Timing type
search param:
  name:
    v: subject
  type:
    v: reference
  documentation:
    v: The subject that the observation is about
operation:
  name:
    v: validate
  definition:
    v: https://measurement.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate
    l: Multi-it-validate

type:
  v: OperationDefinition
profile:
  v: http://hl7.org/fhir/StructureDefinition/OperationDefinition
  l: OperationDefinition
interaction:
  code:
    v: read
search include:
  v: *
search rev include:
  v: Communication:episodeOfCare
search rev include:
  v: Communication:recipient
search rev include:
  v: Communication:recipientCareTeam
search rev include:
  v: Communication:sender
search rev include:
  v: Communication:senderCareTeam
search rev include:
  v: Communication:subject
search rev include:
  v: Media:based-on
search rev include:
  v: Media:episodeOfCare
search rev include:
  v: Media:relatedTo
search rev include:
  v: Media:subject
search rev include:
  v: Observation:based-on
search rev include:
  v: Observation:episodeOfCare
search rev include:
  v: Observation:patient
search rev include:
  v: Observation:subject
search rev include:
  v: Provenance:agent
search rev include:
  v: Provenance:entity
search rev include:
  v: Provenance:entity-episodeOfCare
search rev include:
  v: Provenance:entity-serviceRequest
search rev include:
  v: Provenance:target
search rev include:
  v: QuestionnaireResponse:based-on
search rev include:
  v: QuestionnaireResponse:episodeOfCare
search rev include:
  v: QuestionnaireResponse:questionnaire
search rev include:
  v: QuestionnaireResponse:subject

type:
  v: Provenance
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance
  l: ehealth-provenance
interaction:
  code:
    v: search-type
interaction:
  code:
    v: vread
interaction:
  code:
    v: read
search include:
  v: Provenance:target
search rev include:
  v: Communication:episodeOfCare
search rev include:
  v: Communication:recipient
search rev include:
  v: Communication:recipientCareTeam
search rev include:
  v: Communication:sender
search rev include:
  v: Communication:senderCareTeam
search rev include:
  v: Communication:subject
search rev include:
  v: Media:based-on
search rev include:
  v: Media:episodeOfCare
search rev include:
  v: Media:relatedTo
search rev include:
  v: Media:subject
search rev include:
  v: Observation:based-on
search rev include:
  v: Observation:episodeOfCare
search rev include:
  v: Observation:patient
search rev include:
  v: Observation:subject
search rev include:
  v: Provenance:agent
search rev include:
  v: Provenance:entity
search rev include:
  v: Provenance:entity-episodeOfCare
search rev include:
  v: Provenance:entity-serviceRequest
search rev include:
  v: Provenance:target
search rev include:
  v: QuestionnaireResponse:based-on
search rev include:
  v: QuestionnaireResponse:episodeOfCare
search rev include:
  v: QuestionnaireResponse:questionnaire
search rev include:
  v: QuestionnaireResponse:subject
search param:
  name:
    v: _id
  type:
    v: token
  documentation:
    v: The ID of the resource
search param:
  name:
    v: agent
  type:
    v: reference
  documentation:
    v: Who participated in the activity
search param:
  name:
    v: entity
  type:
    v: reference
  documentation:
    v: Identity of entity
search param:
  name:
    v: entity-episodeOfCare
  type:
    v: reference
  documentation:
    v: EpisodeOfCare identity of entity
search param:
  name:
    v: entity-serviceRequest
  type:
    v: reference
  documentation:
    v: ServiceRequest identity of entity
search param:
  name:
    v: recorded
  type:
    v: date
  documentation:
    v: When the activity was recorded / updated
search param:
  name:
    v: target
  type:
    v: reference
  documentation:
    v: Target Reference(s) (usually version specific)

type:
  v: QuestionnaireResponse
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse
  l: ehealth-questionnaireresponse
interaction:
  code:
    v: update
interaction:
  code:
    v: search-type
interaction:
  code:
    v: vread
interaction:
  code:
    v: read
interaction:
  code:
    v: patch
interaction:
  code:
    v: create
conditional create:
  v: true
conditional update:
  v: true
search rev include:
  v: Provenance:target
search param:
  name:
    v: _filter
  type:
    v: string
  documentation:
    v: Search the contents of the resource's data using a filter
search param:
  name:
    v: _lastUpdated
  type:
    v: date
  documentation:
    v: Only return resources which were last updated as specified by the given range
search param:
  name:
    v: _tag
  type:
    v: token
  documentation:
    v: Search for resources which have the given tag
search param:
  name:
    v: authored
  type:
    v: date
  documentation:
    v: When the questionnaire response was last changed
search param:
  name:
    v: based-on
  type:
    v: reference
  documentation:
    v: Plan/proposal/order fulfilled by this questionnaire response
search param:
  name:
    v: effectivePeriodEnd
  type:
    v: date
  documentation:
    v: Effective Period end
search param:
  name:
    v: effectivePeriodStart
  type:
    v: date
  documentation:
    v: Effective Period start
search param:
  name:
    v: episodeOfCare
  type:
    v: reference
  documentation:
    v: Episode associated with questionnaire response
search param:
  name:
    v: identifier
  type:
    v: token
  documentation:
    v: The unique identifier for the questionnaire response
search param:
  name:
    v: qualityCode
  type:
    v: token
  documentation:
    v: The quality code of the questionnaire response
search param:
  name:
    v: qualityType
  type:
    v: token
  documentation:
    v: The quality type of the questionnaire response
search param:
  name:
    v: questionnaire
  type:
    v: reference
  documentation:
    v: The questionnaire the answers are provided for
search param:
  name:
    v: resolvedTimingEnd
  type:
    v: date
  documentation:
    v: Resolved Timing end
search param:
  name:
    v: resolvedTimingServiceRequestVersionId
  type:
    v: token
  documentation:
    v: Resolved Timing serviceRequestVersionID
search param:
  name:
    v: resolvedTimingStart
  type:
    v: date
  documentation:
    v: Resolved Timing start
search param:
  name:
    v: resolvedTimingType
  type:
    v: token
  documentation:
    v: Resolved Timing type
search param:
  name:
    v: status
  type:
    v: token
  documentation:
    v: The status of the questionnaire response
search param:
  name:
    v: subject
  type:
    v: reference
  documentation:
    v: The subject of the questionnaire response
operation:
  name:
    v: validate
  definition:
    v: https://measurement.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate
    l: Multi-it-validate

name:
  v: migrate
definition:
  v: https://measurement.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-migrate
  l: -s-migrate
documentation:
  v: Data migration

name:
  v: search-measurements
definition:
  v: https://measurement.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-search-measurements
  l: -s-search-measurements
documentation:
  v: The search-measurements operation searches for bundles of related resources having Observations, Media or QuestionnaireResponses matching the search criteria. ### Parameter description - patient: Find resource(s) referring the specified patient - Reference(eHealth Patient). - episodeOfCare: Find resource(s) referring the specified episode of care - Reference(eHealth EpisodeOfCare). - device: Find resource(s) referring the specified device - Reference(eHealth Device | eHealth DeviceMetric). - period: Resource(s) must have either an instant or time period within or overlapping the given period. The used instant/time period varies with resource as follows: Element effective for eHealth Observation; Element authored for eHealth QuestionnaireResponse; Element occurrence for eHealth Media. - based-on: Resources(s) must be based on any of the specified procedure requests - Reference(eHealth ServiceRequest). - _tag: When specified, resource(s) must have at least one of the specified tags in meta data - for instance a Coding(ehealth-system CodeSystem) or on token form: http://ehealth.sundhed.dk/cs/ehealth-system|xa. Note that the _tag functions as an optional filter, not as a selection criteria in the way the other parameters work. "period" must always be specified. Additionally at least "patient" or "episodeOfCare" must be specified. ### Output description The result of this operation will return a Bundle with a list of nested Bundles having resources matching the search parameters. Each of the nested bundles will contain the full set of related eHealth Observation, eHealth Media, eHealth QuestionnaireResponse and eHealth Provenance resources. If a eHealth QuestionnaireResponse is part of the nested bundle the referenced eHealth Questionnaire will also be included in the nested bundle. Related resources are the set of resources created by a single invocation of the submit-measurement operation.

name:
  v: search-measurements-bundle-limit
definition:
  v: https://measurement.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-search-measurements-bundle-limit
  l: -s-search-measurements-bundle-limit
documentation:
  v: The search-measurements-bundle-limit operation searches for a number of bundles of related resources having Observations, Media or QuestionnaireResponses matching the search criteria. ### Parameter description - patient: Find resource(s) referring the specified patient - Reference(eHealth Patient). - episodeOfCare: Find resource(s) referring the specified episode of care - Reference(eHealth EpisodeOfCare). - count: The number of bundles to return, max allowed value is 100 - Integer. - start: Based on the effective time of measurement, please see Observation.effective[x] , QuestionnaireResponse.effective-period , and Media.created[x]. If QuestionnaireResponse.effectivePeriod is missing, authored is used instead. If provided, the operation will search for observation, media and QuestionnaireResponse resource(s) with a clinical effective time after this time. The result bundles will be sorted in ascending order - DateTime. - end: Based on the effective time of measurement, please see Observation.effective[x] , QuestionnaireResponse.effective-period , and Media.created[x]. If QuestionnaireResponse.effectivePeriod is missing, authored is used instead. If provided, the operation will search for observation, media and QuestionnaireResponse resource(s) with a clinical effective time before this time. The result bundles will be sorted in descending order - DateTime. - based-on: Resources(s) must be based on any of the specified service requests - Reference(eHealth ServiceRequest). - _tag: When specified, resource(s) must have at least one of the specified tags in meta data - for instance a Coding(ehealth-system CodeSystem) or on token form: http://ehealth.sundhed.dk/cs/ehealth-system|xa. Note that the _tag functions as an optional filter, not as a selection criteria in the way the other parameters work. One of either "start" or "end", along with the "count" parameter must always be specified. Additionally at least "patient" or "episodeOfCare" or "based-on" must be specified.…

name:
  v: submit-measurement
definition:
  v: https://measurement.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-submit-measurement
  l: -s-submit-measurement
documentation:
  v: The submit-measurement operation provides a single measurement in the form of a Bundle of Observation, QuestionnaireResponse and Media for storage and, subsequently, further processing in the eHealth Infrastructure. A Provenance resource is implicitly created by the infrastructure referencing input Bundle resources as target, thereby relating the resources that were submitted. Media resource inline content in `content.data` will be stored outside the resource, and the `content.url` for retrieval is set on the resource. Image content is anonymized by removing sensitive metadate before storage. Image content is processed to generate thumbnail representations in the thumbnail element. ### Parameter description measurement: Bundle containing: - 0..* Observation (ehealth-observation profile) - 0..* QuestionnaireResponse (ehealth-questionnaireresponse profile) - 0..* Media (ehealth-media profile) - 0..* Provenance (ehealth-provenance profile). Each Provenance (which is intended for capturing reuse of measurement(s) – as described in the eHealth Observation profile introduction) must refer to other resources in the Bundle as target in the format "urn:oid:<the oid>" or "urn:uuid:<the uuid>.". All resources in the Bundle must refer to the same Patient and EpisodeOfCare. All measurement resources in the Bundle must have status either `completed` or `final` (`completed` in case of Media/QuestionnaireResponse and `final` in case of Observation). All resources in the Bundle as well as the created Provenance will receive any missing system tags (ehealth-system CodeSystem) provided by the referenced EpisodeOfCare. The request will be denied if any resource in the Bundle contains a system tag, which is not present on the referenced EpisodeOfCare ### Output description The returned Bundle contains references to the stored input resources where the id has been substituted. eHealth infrastructure will substitute the id when saving the resources in a single transaction.

name:
  v: reindex-terminology
definition:
  v: https://measurement.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-reindex-terminology
  l: -s-reindex-terminology

name:
  v: meta
definition:
  v: https://measurement.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-meta
  l: -s-meta

name:
  v: get-resource-counts
definition:
  v: https://measurement.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-get-resource-counts
  l: -s-get-resource-counts
documentation:
  v: Provides the number of resources currently stored on the server, broken down by resource type