eHealth Infrastructure
3.4.0 - release  flag

This page is part of the FUT Infrastructure (v3.4.0: Release) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions

Resource Profile: ehealth-deviceusestatement - Examples

No examples are currently available for the profile.

StructureDefinition: ehealth-deviceusestatement - Operation examples

GET [base]/DeviceUseStatement?patient=https%3A%2F%2Fpatient.cit-device-928.local%2Ffhir%2FPatient%2F69127&timing=lt2024-07-04

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiN2M0YmZjODYtNWEwNy00ZDM5LTllMDItZjA0Mjg4OTJjYTc3IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.10.5 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "Bundle",
  "id": "566c1393-6456-420b-a07c-d5ae6d30f370",
  "meta": {
    "lastUpdated": "2025-02-04T13:41:36.937+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://device.cit-device-928.local/fhir/DeviceUseStatement?_format=json&_pretty=true&patient=https%3A%2F%2Fpatient.cit-device-928.local%2Ffhir%2FPatient%2F69127&timing=lt2024-07-04"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://device.cit-device-928.local/fhir/DeviceUseStatement/31",
      "resource": {
        "resourceType": "DeviceUseStatement",
        "id": "31",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2025-02-04T13:41:35.675+00:00",
          "source": "#e820b3cc-4063-4e",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
          ]
        },
        "extension": [
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
            "valueReference": {
              "reference": "https://careplan.cit-device-928.local/fhir/CarePlan/98297"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-928.local/fhir/Patient/69127"
        },
        "timingPeriod": {
          "start": "2024-02-04T13:41:35+00:00",
          "end": "2024-04-04T13:41:35+00:00"
        },
        "device": {
          "reference": "https://device.cit-device-928.local/fhir/Device/30"
        }
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://device.cit-device-928.local/fhir/DeviceUseStatement/33",
      "resource": {
        "resourceType": "DeviceUseStatement",
        "id": "33",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2025-02-04T13:41:36.095+00:00",
          "source": "#f84333fe-8429-49",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
          ]
        },
        "extension": [
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
            "valueReference": {
              "reference": "https://careplan.cit-device-928.local/fhir/CarePlan/20438"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-928.local/fhir/Patient/69127"
        },
        "timingPeriod": {
          "start": "2024-06-04T13:41:35+00:00",
          "end": "2024-08-04T13:41:35+00:00"
        },
        "device": {
          "reference": "https://device.cit-device-928.local/fhir/Device/32"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

GET [base]/DeviceUseStatement/41/_history/2

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYmMwOTgyOGMtNTViZi00NDU5LThiYjEtNTRmY2I2ZmM0ZDk5IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQuY2l0LWRldmljZS05MjgubG9jYWwvZmhpci9QYXRpZW50LzY5MTI3IiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.10.5 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "DeviceUseStatement",
  "id": "41",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2025-02-04T13:41:39.205+00:00",
    "source": "#f8872dfc-e0a9-4d",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
    ]
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
      "valueReference": {
        "reference": "https://careplan.cit-device-928.local/fhir/CarePlan/95153"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-928.local/fhir/Patient/69127"
  },
  "device": {
    "reference": "https://device.cit-device-928.local/fhir/Device/40"
  }
}

POST [base]/DeviceUseStatement

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZWJlYTIwMjMtZjQ5ZS00MTQ4LTgyNzgtNTVmNzczY2YyYzEzIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC53cml0ZSJdfSwiY29udGV4dCI6eyJwYXRpZW50X2lkIjoiaHR0cHM6Ly9wYXRpZW50LmNpdC1kZXZpY2UtOTI4LmxvY2FsL2ZoaXIvUGF0aWVudC8zOTc3IiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.10.5 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType": "DeviceUseStatement",
  "meta": {
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
    ]
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
      "valueReference": {
        "reference": "https://careplan.cit-device-928.local/fhir/CarePlan/14587"
      }
    }
  ],
  "status": "active",
  "subject": {
    "reference": "https://patient.cit-device-928.local/fhir/Patient/3977"
  },
  "device": {
    "reference": "https://device.cit-device-928.local/fhir/Device/58"
  }
}

Response

{
  "resourceType": "DeviceUseStatement",
  "id": "60",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2025-02-04T13:41:56.982+00:00",
    "source": "#15268085-6903-47fa-9554-17b179c84c52",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
    ]
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
      "valueReference": {
        "reference": "https://careplan.cit-device-928.local/fhir/CarePlan/14587"
      }
    }
  ],
  "status": "active",
  "subject": {
    "reference": "https://patient.cit-device-928.local/fhir/Patient/3977"
  },
  "device": {
    "reference": "https://device.cit-device-928.local/fhir/Device/58"
  }
}

POST [base]/DeviceUseStatement/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYTAyNGQ1MzMtYWRlOS00YzI4LWJiY2UtZDE2OTZjMmUyNDE5IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.10.5 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType": "Parameters",
  "parameter": [
    {
      "name": "resource",
      "resource": {
        "resourceType": "DeviceUseStatement",
        "meta": {
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
          ]
        },
        "extension": [
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
            "valueReference": {
              "reference": "https://careplan.cit-device-928.local/fhir/CarePlan/15369"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-928.local/fhir/Patient/35244"
        },
        "source": {
          "reference": "https://patient.cit-device-928.local/fhir/Patient/69127"
        },
        "device": {
          "reference": "https://device.cit-device-928.local/fhir/Device/47"
        }
      }
    }
  ]
}

Response

{
  "resourceType": "OperationOutcome",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td>No issues detected during validation</td></tr><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td>No issues detected during validation</td></tr></table></div>"
  },
  "issue": [
    {
      "severity": "information",
      "code": "informational",
      "diagnostics": "No issues detected during validation"
    },
    {
      "severity": "information",
      "code": "informational",
      "diagnostics": "No issues detected during validation"
    }
  ]
}

PUT [base]/DeviceUseStatement/41

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYmMwOTgyOGMtNTViZi00NDU5LThiYjEtNTRmY2I2ZmM0ZDk5IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQuY2l0LWRldmljZS05MjgubG9jYWwvZmhpci9QYXRpZW50LzY5MTI3IiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
If-Match: "1"
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.10.5 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType": "DeviceUseStatement",
  "id": "41",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2025-02-04T13:41:38.970+00:00",
    "source": "#318a60f3-2815-42ad-82d7-231cbc8075c4",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
    ]
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
      "valueReference": {
        "reference": "https://careplan.cit-device-928.local/fhir/CarePlan/95153"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-928.local/fhir/Patient/69127"
  },
  "device": {
    "reference": "https://device.cit-device-928.local/fhir/Device/40"
  }
}

Response

{
  "resourceType": "DeviceUseStatement",
  "id": "41",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2025-02-04T13:41:39.205+00:00",
    "source": "#f8872dfc-e0a9-4d44-bbdb-e524f5f9ebca",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
    ]
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
      "valueReference": {
        "reference": "https://careplan.cit-device-928.local/fhir/CarePlan/95153"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-928.local/fhir/Patient/69127"
  },
  "device": {
    "reference": "https://device.cit-device-928.local/fhir/Device/40"
  }
}