eHealth Infrastructure
2.6.0 - Release 13

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-780.local%2Ffhir%2FPatient%2F87533&timing=lt2022-06-06

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNjg3NDRhNjQtYTQ4ZS00OTE5LTgyMzEtNzFkMjZjMjRjMjA2IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "5cb32435-8e33-40ef-9297-b1ae67c09aee",
  "meta": {
    "lastUpdated": "2023-01-06T07:53:51.099+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://device.cit-device-780.local/fhir/DeviceUseStatement?_format=json&_pretty=true&patient=https%3A%2F%2Fpatient.cit-device-780.local%2Ffhir%2FPatient%2F87533&timing=lt2022-06-06"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://device.cit-device-780.local/fhir/DeviceUseStatement/86",
      "resource": {
        "resourceType": "DeviceUseStatement",
        "id": "86",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2023-01-06T07:53:50.653+00:00",
          "source": "#a8c876d1-2219-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-780.local/fhir/CarePlan/23538"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-780.local/fhir/Patient/87533"
        },
        "timingPeriod": {
          "start": "2022-05-06T07:53:50+00:00",
          "end": "2022-07-06T07:53:50+00:00"
        },
        "device": {
          "reference": "https://device.cit-device-780.local/fhir/Device/85"
        }
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://device.cit-device-780.local/fhir/DeviceUseStatement/84",
      "resource": {
        "resourceType": "DeviceUseStatement",
        "id": "84",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2023-01-06T07:53:50.365+00:00",
          "source": "#a55677cc-6ae0-98",
          "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-780.local/fhir/CarePlan/69001"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-780.local/fhir/Patient/87533"
        },
        "timingPeriod": {
          "start": "2022-01-06T07:53:50+00:00",
          "end": "2022-03-06T07:53:50+00:00"
        },
        "device": {
          "reference": "https://device.cit-device-780.local/fhir/Device/83"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

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

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMGZlNDlkNDYtYzU3OS00MTBlLTg5M2MtNzViZDZjYmQ5OWM0IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQuY2l0LWRldmljZS03ODAubG9jYWwvZmhpci9QYXRpZW50Lzg3NTMzIiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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-01-06T07:53:52.610+00:00",
    "source": "#acadc926-462c-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-780.local/fhir/CarePlan/55824"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-780.local/fhir/Patient/87533"
  },
  "device": {
    "reference": "https://device.cit-device-780.local/fhir/Device/93"
  }
}

POST [base]/DeviceUseStatement

Header

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

Response

{
  "resourceType": "DeviceUseStatement",
  "id": "56",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2023-01-06T07:53:43.627+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-780.local/fhir/CarePlan/78736"
      }
    }
  ],
  "status": "active",
  "subject": {
    "reference": "https://patient.cit-device-780.local/fhir/Patient/87533"
  },
  "device": {
    "reference": "https://device.cit-device-780.local/fhir/Device/55"
  }
}

POST [base]/DeviceUseStatement/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMzQ0ZmEyM2QtMjk2MS00MzkwLTg4ZTYtYmYwMDM3MjU1MDFlIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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-780.local/fhir/CarePlan/66125"
            }
          }
        ],
        "status": "active",
        "subject": {
          "reference": "https://patient.cit-device-780.local/fhir/Patient/3112"
        },
        "source": {
          "reference": "https://patient.cit-device-780.local/fhir/Patient/87533"
        },
        "device": {
          "reference": "https://device.cit-device-780.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.eyJ1c2VyX2lkIjoiMGZlNDlkNDYtYzU3OS00MTBlLTg5M2MtNzViZDZjYmQ5OWM0IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkRldmljZVVzZVN0YXRlbWVudC5yZWFkIiwiRGV2aWNlVXNlU3RhdGVtZW50LndyaXRlIl19LCJjb250ZXh0Ijp7InBhdGllbnRfaWQiOiJodHRwczovL3BhdGllbnQuY2l0LWRldmljZS03ODAubG9jYWwvZmhpci9QYXRpZW50Lzg3NTMzIiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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-01-06T07:53:52.437+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-780.local/fhir/CarePlan/55824"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-780.local/fhir/Patient/87533"
  },
  "device": {
    "reference": "https://device.cit-device-780.local/fhir/Device/93"
  }
}

Response

{
  "resourceType": "DeviceUseStatement",
  "id": "94",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2023-01-06T07:53:52.610+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-780.local/fhir/CarePlan/55824"
      }
    }
  ],
  "status": "completed",
  "subject": {
    "reference": "https://patient.cit-device-780.local/fhir/Patient/87533"
  },
  "device": {
    "reference": "https://device.cit-device-780.local/fhir/Device/93"
  }
}