eHealth Infrastructure
2.4.0 - release

Publish Box goes here

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-744.local%2Ffhir%2FPatient%2F56326&timing=lt2022-03-10

Header

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

Response

{
  "resourceType": "Bundle",
  "id": "03e16209-6863-4bf6-a553-b4c601c0fde2",
  "meta": {
    "lastUpdated": "2022-10-10T14:40:57.095+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://device.cit-device-744.local/fhir/DeviceUseStatement?_format=json&_pretty=true&patient=https%3A%2F%2Fpatient.cit-device-744.local%2Ffhir%2FPatient%2F56326&timing=lt2022-03-10"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://device.cit-device-744.local/fhir/DeviceUseStatement/32",
      "resource": {
        "resourceType": "DeviceUseStatement",
        "id": "32",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2022-10-10T14:40:56.505+00:00",
          "source": "#b6830e0b-f20b-9b",
          "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-744.local/fhir/CarePlan/84901"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-744.local/fhir/Patient/56326"
        },
        "timingPeriod": {
          "start": "2022-02-10T14:40:55+00:00",
          "end": "2022-04-10T14:40:55+00:00"
        },
        "device": {
          "reference": "https://device.cit-device-744.local/fhir/Device/31"
        }
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://device.cit-device-744.local/fhir/DeviceUseStatement/30",
      "resource": {
        "resourceType": "DeviceUseStatement",
        "id": "30",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2022-10-10T14:40:56.125+00:00",
          "source": "#826f67ba-839c-92",
          "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-744.local/fhir/CarePlan/47185"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-744.local/fhir/Patient/56326"
        },
        "timingPeriod": {
          "start": "2021-10-10T14:40:55+00:00",
          "end": "2021-12-10T14:40:55+00:00"
        },
        "device": {
          "reference": "https://device.cit-device-744.local/fhir/Device/29"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

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

Header

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

Response

{
  "resourceType": "DeviceUseStatement",
  "id": "40",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2022-10-10T14:40:58.966+00:00",
    "source": "#94208b34-5680-99",
    "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-744.local/fhir/CarePlan/15913"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-744.local/fhir/Patient/56326"
  },
  "device": {
    "reference": "https://device.cit-device-744.local/fhir/Device/39"
  }
}

POST [base]/DeviceUseStatement

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYzcxNjEyMzgtNmQ5My00Nzg0LWI2NjktNTUyYWQ2YWQyNzhjIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC53cml0ZSJdfSwiY29udGV4dCI6eyJwYXRpZW50X2lkIjoiaHR0cHM6Ly9wYXRpZW50LmNpdC1kZXZpY2UtNzQ0LmxvY2FsL2ZoaXIvUGF0aWVudC80MjYyMCIsInRlYW1fb25fZW9jIjpmYWxzZX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.1.0 (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-744.local/fhir/CarePlan/27668"
      }
    }
  ],
  "status": "active",
  "subject": {
    "reference": "https://patient.cit-device-744.local/fhir/Patient/42620"
  },
  "device": {
    "reference": "https://device.cit-device-744.local/fhir/Device/54"
  }
}

Response

{
  "resourceType": "DeviceUseStatement",
  "id": "56",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2022-10-10T14:41:26.911+00:00",
    "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-744.local/fhir/CarePlan/27668"
      }
    }
  ],
  "status": "active",
  "subject": {
    "reference": "https://patient.cit-device-744.local/fhir/Patient/42620"
  },
  "device": {
    "reference": "https://device.cit-device-744.local/fhir/Device/54"
  }
}

POST [base]/DeviceUseStatement/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiODU4NGQ2Y2UtYTg4Ny00ZTZkLWFhZTQtMTU5OTM0MDZkMmEyIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.1.0 (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-744.local/fhir/CarePlan/64668"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-744.local/fhir/Patient/89013"
        },
        "source": {
          "reference": "https://patient.cit-device-744.local/fhir/Patient/56326"
        },
        "device": {
          "reference": "https://device.cit-device-744.local/fhir/Device/46"
        }
      }
    }
  ]
}

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><pre>No issues detected during validation</pre></td></tr><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>No issues detected during validation</pre></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/40

Header

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

Body:

{
  "resourceType": "DeviceUseStatement",
  "id": "40",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2022-10-10T14:40:58.825+00:00",
    "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-744.local/fhir/CarePlan/15913"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-744.local/fhir/Patient/56326"
  },
  "device": {
    "reference": "https://device.cit-device-744.local/fhir/Device/39"
  }
}

Response

{
  "resourceType": "DeviceUseStatement",
  "id": "40",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2022-10-10T14:40:58.966+00:00",
    "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-744.local/fhir/CarePlan/15913"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-744.local/fhir/Patient/56326"
  },
  "device": {
    "reference": "https://device.cit-device-744.local/fhir/Device/39"
  }
}