eHealth Infrastructure
2.7.0 - Release 14

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-803.local%2Ffhir%2FPatient%2F7121&timing=lt2022-08-07

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYmZiN2JiNzUtNTcxZS00ZTIwLWE1NDctODEwMjlhOWM0ZTYxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "19ecf159-3a15-41b5-884e-74a4b2b5c74c",
  "meta": {
    "lastUpdated": "2023-03-07T15:23:19.904+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://device.cit-device-803.local/fhir/DeviceUseStatement?_format=json&_pretty=true&patient=https%3A%2F%2Fpatient.cit-device-803.local%2Ffhir%2FPatient%2F7121&timing=lt2022-08-07"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://device.cit-device-803.local/fhir/DeviceUseStatement/86",
      "resource": {
        "resourceType": "DeviceUseStatement",
        "id": "86",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2023-03-07T15:23:19.472+00:00",
          "source": "#f6fda5c6-f1c3-91",
          "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-803.local/fhir/CarePlan/77424"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-803.local/fhir/Patient/7121"
        },
        "timingPeriod": {
          "start": "2022-07-07T15:23:18+00:00",
          "end": "2022-09-07T15:23:18+00:00"
        },
        "device": {
          "reference": "https://device.cit-device-803.local/fhir/Device/85"
        }
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://device.cit-device-803.local/fhir/DeviceUseStatement/84",
      "resource": {
        "resourceType": "DeviceUseStatement",
        "id": "84",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2023-03-07T15:23:19.201+00:00",
          "source": "#f4f5f366-e2cc-90",
          "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-803.local/fhir/CarePlan/51597"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-803.local/fhir/Patient/7121"
        },
        "timingPeriod": {
          "start": "2022-03-07T15:23:18+00:00",
          "end": "2022-05-07T15:23:18+00:00"
        },
        "device": {
          "reference": "https://device.cit-device-803.local/fhir/Device/83"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

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

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiOWY4ZjQ5ZDUtYWI1YS00OTQ4LTkwYTAtYTI2YmNkNzhiODg2IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQuY2l0LWRldmljZS04MDMubG9jYWwvZmhpci9QYXRpZW50LzcxMjEiLCJ0ZWFtX29uX2VvYyI6ZmFsc2V9LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "94",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2023-03-07T15:23:21.414+00:00",
    "source": "#f821efc3-b15f-9c",
    "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-803.local/fhir/CarePlan/74829"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-803.local/fhir/Patient/7121"
  },
  "device": {
    "reference": "https://device.cit-device-803.local/fhir/Device/93"
  }
}

POST [base]/DeviceUseStatement

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiN2NjZjcyN2EtYzFkZC00ZGRhLWI0ZDktOGY3ODcwMmIxYjM4IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC53cml0ZSJdfSwiY29udGV4dCI6eyJwYXRpZW50X2lkIjoiaHR0cHM6Ly9wYXRpZW50LmNpdC1kZXZpY2UtODAzLmxvY2FsL2ZoaXIvUGF0aWVudC83MTIxIiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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-803.local/fhir/CarePlan/5274"
      }
    }
  ],
  "status": "active",
  "subject": {
    "reference": "https://patient.cit-device-803.local/fhir/Patient/7121"
  },
  "device": {
    "reference": "https://device.cit-device-803.local/fhir/Device/55"
  }
}

Response

{
  "resourceType": "DeviceUseStatement",
  "id": "56",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2023-03-07T15:23:11.908+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement"
    ],
    "tag": [
      {
        "system": "http://ehealth.sundhed.dk/cs/ehealth-system",
        "code": "xa",
        "display": "xa"
      },
      {
        "system": "http://ehealth.sundhed.dk/cs/ehealth-system",
        "code": "xb",
        "display": "xb"
      }
    ]
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context",
      "valueReference": {
        "reference": "https://careplan.cit-device-803.local/fhir/CarePlan/5274"
      }
    }
  ],
  "status": "active",
  "subject": {
    "reference": "https://patient.cit-device-803.local/fhir/Patient/7121"
  },
  "device": {
    "reference": "https://device.cit-device-803.local/fhir/Device/55"
  }
}

POST [base]/DeviceUseStatement/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZWVhZDM5ZGUtNWExMS00ODNjLTk3ZmQtNzg4NTE5ZWQ2YzdmIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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-803.local/fhir/CarePlan/71795"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-803.local/fhir/Patient/76794"
        },
        "source": {
          "reference": "https://patient.cit-device-803.local/fhir/Patient/7121"
        },
        "device": {
          "reference": "https://device.cit-device-803.local/fhir/Device/100"
        }
      }
    }
  ]
}

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/94

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiOWY4ZjQ5ZDUtYWI1YS00OTQ4LTkwYTAtYTI2YmNkNzhiODg2IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQuY2l0LWRldmljZS04MDMubG9jYWwvZmhpci9QYXRpZW50LzcxMjEiLCJ0ZWFtX29uX2VvYyI6ZmFsc2V9LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "94",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2023-03-07T15:23:21.295+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-803.local/fhir/CarePlan/74829"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-803.local/fhir/Patient/7121"
  },
  "device": {
    "reference": "https://device.cit-device-803.local/fhir/Device/93"
  }
}

Response

{
  "resourceType": "DeviceUseStatement",
  "id": "94",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2023-03-07T15:23:21.414+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-803.local/fhir/CarePlan/74829"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-803.local/fhir/Patient/7121"
  },
  "device": {
    "reference": "https://device.cit-device-803.local/fhir/Device/93"
  }
}