eHealth Infrastructure
2.8.0 - Release 16

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-814.local%2Ffhir%2FPatient%2F27669&timing=lt2022-10-08

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZTJjNThjNzYtYWNmMC00OTE5LTkyODktZjdmNWRhNTI0MjU4IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "ec574d15-ca34-4176-abe4-a4d2facc6dd5",
  "meta": {
    "lastUpdated": "2023-05-08T07:10:06.879+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://device.cit-device-814.local/fhir/DeviceUseStatement?_format=json&_pretty=true&patient=https%3A%2F%2Fpatient.cit-device-814.local%2Ffhir%2FPatient%2F27669&timing=lt2022-10-08"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://device.cit-device-814.local/fhir/DeviceUseStatement/86",
      "resource": {
        "resourceType": "DeviceUseStatement",
        "id": "86",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2023-05-08T07:10:06.268+00:00",
          "source": "#01f54e4c-c983-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-814.local/fhir/CarePlan/506"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-814.local/fhir/Patient/27669"
        },
        "timingPeriod": {
          "start": "2022-09-08T07:10:05+00:00",
          "end": "2022-11-08T07:10:05+00:00"
        },
        "device": {
          "reference": "https://device.cit-device-814.local/fhir/Device/85"
        }
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://device.cit-device-814.local/fhir/DeviceUseStatement/84",
      "resource": {
        "resourceType": "DeviceUseStatement",
        "id": "84",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2023-05-08T07:10:05.873+00:00",
          "source": "#3c449d17-0498-9d",
          "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-814.local/fhir/CarePlan/5151"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-814.local/fhir/Patient/27669"
        },
        "timingPeriod": {
          "start": "2022-05-08T07:10:05+00:00",
          "end": "2022-07-08T07:10:05+00:00"
        },
        "device": {
          "reference": "https://device.cit-device-814.local/fhir/Device/83"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

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

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZjI0M2E5MjItOGJjYi00NmViLThmMWUtNTg4YjhkNzA2MjIzIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQuY2l0LWRldmljZS04MTQubG9jYWwvZmhpci9QYXRpZW50LzI3NjY5IiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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-05-08T07:10:08.995+00:00",
    "source": "#110008fb-bb4d-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-814.local/fhir/CarePlan/8543"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-814.local/fhir/Patient/27669"
  },
  "device": {
    "reference": "https://device.cit-device-814.local/fhir/Device/93"
  }
}

POST [base]/DeviceUseStatement

Header

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

Response

{
  "resourceType": "DeviceUseStatement",
  "id": "56",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2023-05-08T07:09:57.939+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-814.local/fhir/CarePlan/6925"
      }
    }
  ],
  "status": "active",
  "subject": {
    "reference": "https://patient.cit-device-814.local/fhir/Patient/27669"
  },
  "device": {
    "reference": "https://device.cit-device-814.local/fhir/Device/55"
  }
}

POST [base]/DeviceUseStatement/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMTU3Y2M4MjItZmVkOS00NDU4LTkwN2UtMDc1MDYwMDc4N2FmIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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-814.local/fhir/CarePlan/45795"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-814.local/fhir/Patient/85225"
        },
        "source": {
          "reference": "https://patient.cit-device-814.local/fhir/Patient/27669"
        },
        "device": {
          "reference": "https://device.cit-device-814.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.eyJ1c2VyX2lkIjoiZjI0M2E5MjItOGJjYi00NmViLThmMWUtNTg4YjhkNzA2MjIzIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQuY2l0LWRldmljZS04MTQubG9jYWwvZmhpci9QYXRpZW50LzI3NjY5IiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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-05-08T07:10:08.873+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-814.local/fhir/CarePlan/8543"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-814.local/fhir/Patient/27669"
  },
  "device": {
    "reference": "https://device.cit-device-814.local/fhir/Device/93"
  }
}

Response

{
  "resourceType": "DeviceUseStatement",
  "id": "94",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2023-05-08T07:10:08.995+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-814.local/fhir/CarePlan/8543"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-814.local/fhir/Patient/27669"
  },
  "device": {
    "reference": "https://device.cit-device-814.local/fhir/Device/93"
  }
}