eHealth Infrastructure
3.0.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-866.local%2Ffhir%2FPatient%2F52894&timing=lt2023-06-29

Header

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

Response

{
  "resourceType": "Bundle",
  "id": "905d784f-a138-4787-8905-0ff57bcc828a",
  "meta": {
    "lastUpdated": "2024-01-29T21:18:14.510+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://device.cit-device-866.local/fhir/DeviceUseStatement?_format=json&_pretty=true&patient=https%3A%2F%2Fpatient.cit-device-866.local%2Ffhir%2FPatient%2F52894&timing=lt2023-06-29"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://device.cit-device-866.local/fhir/DeviceUseStatement/31",
      "resource": {
        "resourceType": "DeviceUseStatement",
        "id": "31",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2024-01-29T21:18:13.500+00:00",
          "source": "#5e2be996-288d-40",
          "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-866.local/fhir/CarePlan/17487"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-866.local/fhir/Patient/52894"
        },
        "timingPeriod": {
          "start": "2023-01-29T21:18:13+00:00",
          "end": "2023-03-29T21:18:13+00:00"
        },
        "device": {
          "reference": "https://device.cit-device-866.local/fhir/Device/30"
        }
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://device.cit-device-866.local/fhir/DeviceUseStatement/33",
      "resource": {
        "resourceType": "DeviceUseStatement",
        "id": "33",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2024-01-29T21:18:13.899+00:00",
          "source": "#0dfc16d8-1277-4c",
          "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-866.local/fhir/CarePlan/94475"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-866.local/fhir/Patient/52894"
        },
        "timingPeriod": {
          "start": "2023-05-29T21:18:13+00:00",
          "end": "2023-07-29T21:18:13+00:00"
        },
        "device": {
          "reference": "https://device.cit-device-866.local/fhir/Device/32"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

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

Header

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

Response

{
  "resourceType": "DeviceUseStatement",
  "id": "41",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2024-01-29T21:18:16.345+00:00",
    "source": "#4e2effc1-7dd3-43",
    "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-866.local/fhir/CarePlan/2369"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-866.local/fhir/Patient/52894"
  },
  "device": {
    "reference": "https://device.cit-device-866.local/fhir/Device/40"
  }
}

POST [base]/DeviceUseStatement

Header

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

Response

{
  "resourceType": "DeviceUseStatement",
  "id": "57",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2024-01-29T21:18:25.300+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-866.local/fhir/CarePlan/50095"
      }
    }
  ],
  "status": "active",
  "subject": {
    "reference": "https://patient.cit-device-866.local/fhir/Patient/99767"
  },
  "device": {
    "reference": "https://device.cit-device-866.local/fhir/Device/55"
  }
}

POST [base]/DeviceUseStatement/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNjFmYjFkMmQtZTM5MS00YjA3LTlmZGMtMDY5ZDBmMmFiMjM2IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.2.1 (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-866.local/fhir/CarePlan/74554"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-866.local/fhir/Patient/91854"
        },
        "source": {
          "reference": "https://patient.cit-device-866.local/fhir/Patient/52894"
        },
        "device": {
          "reference": "https://device.cit-device-866.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><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/41

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMTEwOWQ4OWItMzAxZC00NTg4LTg1ZjEtN2Q4ZWUzYzI3ODJmIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQuY2l0LWRldmljZS04NjYubG9jYWwvZmhpci9QYXRpZW50LzUyODk0IiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
If-Match: "1"
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.2.1 (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": "2024-01-29T21:18:16.196+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-866.local/fhir/CarePlan/2369"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-866.local/fhir/Patient/52894"
  },
  "device": {
    "reference": "https://device.cit-device-866.local/fhir/Device/40"
  }
}

Response

{
  "resourceType": "DeviceUseStatement",
  "id": "41",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2024-01-29T21:18:16.345+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-866.local/fhir/CarePlan/2369"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-866.local/fhir/Patient/52894"
  },
  "device": {
    "reference": "https://device.cit-device-866.local/fhir/Device/40"
  }
}