eHealth Infrastructure
2022.2 - release

eHealth Infrastructure - Local Development build (v2022.2). See the Directory of published versions

: Search measurements - XML Representation

Active as of 2022-06-20

Raw xml | Download



<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="-s-search-measurements"/>
  <text>
    <status value="extensions"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><h2>search-measurements</h2><p>OPERATION: search-measurements</p><p>The official URL for this operation definition is: </p><pre>https://measurement.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-search-measurements</pre><div><p>The search-measurements operation searches for bundles of related resources having Observations, Media or QuestionnaireResponses matching the search criteria.</p>
<h3>Parameter description</h3>
<ul>
<li>patient: Find resource(s) referring the specified patient - Reference(eHealth Patient).</li>
<li>episodeOfCare: Find resource(s) referring the specified episode of care - Reference(eHealth EpisodeOfCare).</li>
<li>device: Find resource(s) referring the specified device - Reference(eHealth Device | eHealth DeviceMetric).</li>
<li>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.</li>
<li>based-on: Resources(s) must be based on any of the specified procedure requests - Reference(eHealth ServiceRequest).</li>
</ul>
<p>&quot;period&quot; must always be specified.</p>
<p>Additionally at least &quot;patient&quot; or &quot;episodeOfCare&quot; must be specified.</p>
<h3>Output description</h3>
<p>The result of this operation will return a Bundle with a list of nested Bundles having resources matching the search parameters.</p>
<p>Each of the nested bundles will contain the full set of related eHealth Observation, eHealth Media, eHealth QuestionnaireResponse and eHealth Provenance resources.</p>
<p>If a eHealth QuestionnaireResponse is part of the nested bundle the referenced eHealth Questionnaire will also be included in the nested bundle.</p>
<p>Related resources are the set of resources created by a single invocation of the submit-measurement operation.</p>
</div><p>URL: [base]/$search-measurements</p><p>Parameters</p><table class="grid"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>patient</td><td>0..1</td><td><a href="http://hl7.org/fhir/R4/references.html#Reference">Reference</a></td><td/><td><div><p>Find resource(s) referring the specified patient - Reference(eHealth Patient).</p>
</div></td></tr><tr><td>IN</td><td>episodeOfCare</td><td>0..1</td><td><a href="http://hl7.org/fhir/R4/references.html#Reference">Reference</a></td><td/><td><div><p>Find resource(s) referring the specified episode of care - Reference(eHealth EpisodeOfCare)</p>
</div></td></tr><tr><td>IN</td><td>device</td><td>0..1</td><td><a href="http://hl7.org/fhir/R4/references.html#Reference">Reference</a></td><td/><td><div><p>Find resource(s) referring the specified device - Reference(eHealth Device)</p>
</div></td></tr><tr><td>IN</td><td>period</td><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#Period">Period</a></td><td/><td><div><p>Resource(s) must have either an instant or time period within or overlapping the given period.</p>
</div></td></tr><tr><td>IN</td><td>based-on</td><td>0..*</td><td><a href="http://hl7.org/fhir/R4/references.html#Reference">Reference</a></td><td/><td><div><p>Resources(s) must be based on any of the specified procedure requests - Reference(eHealth ServiceRequest)</p>
</div></td></tr><tr><td>OUT</td><td>bundle</td><td>0..1</td><td><a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></td><td/><td/></tr></table></div>
  </text>
  <url
       value="https://measurement.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-search-measurements"/>
  <version value="2022.2"/>
  <name value="search-measurements"/>
  <title value="Search measurements"/>
  <status value="active"/>
  <kind value="operation"/>
  <date value="2022-06-20T13:22:29+00:00"/>
  <publisher value="Systematic | Trifork"/>
  <contact>
    <name value="Systematic | Trifork"/>
    <telecom>
      <system value="url"/>
      <value value="http://ehealth.sundhed.dk"/>
    </telecom>
  </contact>
  <description
               value="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).


&quot;period&quot; must always be specified.

Additionally at least &quot;patient&quot; or &quot;episodeOfCare&quot; 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.

"/>
  <affectsState value="false"/>
  <code value="search-measurements"/>
  <system value="true"/>
  <type value="false"/>
  <instance value="false"/>
  <parameter>
    <name value="patient"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <documentation
                   value="Find resource(s) referring the specified patient - Reference(eHealth Patient)."/>
    <type value="Reference"/>
  </parameter>
  <parameter>
    <name value="episodeOfCare"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <documentation
                   value="Find resource(s) referring the specified episode of care - Reference(eHealth EpisodeOfCare)"/>
    <type value="Reference"/>
  </parameter>
  <parameter>
    <name value="device"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <documentation
                   value="Find resource(s) referring the specified device - Reference(eHealth Device)"/>
    <type value="Reference"/>
  </parameter>
  <parameter>
    <name value="period"/>
    <use value="in"/>
    <min value="1"/>
    <max value="1"/>
    <documentation
                   value="Resource(s) must have either an instant or time period within or overlapping the given period."/>
    <type value="Period"/>
  </parameter>
  <parameter>
    <name value="based-on"/>
    <use value="in"/>
    <min value="0"/>
    <max value="*"/>
    <documentation
                   value="Resources(s) must be based on any of the specified procedure requests - Reference(eHealth ServiceRequest)"/>
    <type value="Reference"/>
  </parameter>
  <parameter>
    <name value="bundle"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <type value="Bundle"/>
  </parameter>
</OperationDefinition>