FHIR IG analytics| Package | dk.ehealth.sundhed.fhir.ig.core |
| Resource Type | OperationDefinition |
| Id | OperationDefinition--s-execute-patient-usage-stats.json |
| FHIR Version | R4 |
| Source | https://build.fhir.org/ig/fut-infrastructure/implementation-guide/OperationDefinition--s-execute-patient-usage-stats.html |
| URL | http://ehealth.sundhed.dk/fhir/OperationDefinition/-s-execute-patient-usage-stats |
| Version | 8.0.0 |
| Status | active |
| Date | 2026-02-18T09:10:00+00:00 |
| Name | execute-patient-usage-stats |
| Title | Execute unique active citizens total |
| Realm | dk |
| Description | ### Report Contents This report contains an overview of the number of unique active citizens with Episodes of Care, shown both on monthly and yearly basis. ### Grouping This report is grouped by months and years. All groups are contained in the same JSON file. ### Parameters - None ### Output Output can be found in Binary.content. This is a Base64 encoded .zip file containing a JSon file corresponding to the report groups. ### Example output All returned objects are Fhir resources. See the implementation guide for details First example is the monthly data: { 'PatientsUsageSummary': { 'monthData': [ { 'month': '1', 'year': '1970', 'entries': [ { 'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays', 'count': 1, 'percentChangeFromLastMonth': 0.0 }, { 'name': 'uniquePatientsWithEpisodeOfCare', 'count': 1, 'percentChangeFromLastMonth': 0.0 } ] }, { 'month': '2', 'year': '1970', 'entries': [ { 'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays', 'count': 1, 'percentChangeFromLastMonth': 0.0 }, { 'name': 'uniquePatientsWithEpisodeOfCare', 'count': 1, 'percentChangeFromLastMonth': 0.0 } ] }, { 'month': '3', 'year': '1970', 'entries': [ { 'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays', 'count': 1, 'percentChangeFromLastMonth': 0.0 }, { 'name': 'uniquePatientsWithEpisodeOfCare', 'count': 1, 'percentChangeFromLastMonth': 0.0 } ] }, { 'month': '4', 'year': '1970', 'entries': [ { 'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays', 'count': 1, 'percentChangeFromLastMonth': 0.0 }, { 'name': 'uniquePatientsWithEpisodeOfCare', 'count': 1, 'percentChangeFromLastMonth': 0.0 } ] }, { 'month': '5', 'year': '1970', 'entries': [ { 'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays', 'count': 1, 'percentChangeFromLastMonth': 0.0 }, { 'name': 'uniquePatientsWithEpisodeOfCare', 'count': 1, 'percentChangeFromLastMonth': 0.0 } ] }, { 'month': '6', 'year': '1970', 'entries': [ { 'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays', 'count': 1, 'percentChangeFromLastMonth': 0.0 }, { 'name': 'uniquePatientsWithEpisodeOfCare', 'count': 1, 'percentChangeFromLastMonth': 0.0 } ] }, { 'month': '7', 'year': '1970', 'entries': [ { 'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays', 'count': 1, 'percentChangeFromLastMonth': 0.0 }, { 'name': 'uniquePatientsWithEpisodeOfCare', 'count': 1, 'percentChangeFromLastMonth': 0.0 } ] }, { 'month': '8', 'year': '1970', 'entries': [ { 'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays', 'count': 1, 'percentChangeFromLastMonth': 0.0 }, { 'name': 'uniquePatientsWithEpisodeOfCare', 'count': 1, 'percentChangeFromLastMonth': 0.0 } ] }, { 'month': '9', 'year': '1970', 'entries': [ { 'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays', 'count': 1, 'percentChangeFromLastMonth': 0.0 }, { 'name': 'uniquePatientsWithEpisodeOfCare', 'count': 1, 'percentChangeFromLastMonth': 0.0 } ] }, { 'month': '10', 'year': '1970', 'entries': [ { 'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays', 'count': 1, 'percentChangeFromLastMonth': 0.0 }, { 'name': 'uniquePatientsWithEpisodeOfCare', 'count': 1, 'percentChangeFromLastMonth': 0.0 } ] }, { 'month': '11', 'year': '1970', 'entries': [ { 'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays', 'count': 1, 'percentChangeFromLastMonth': 0.0 }, { 'name': 'uniquePatientsWithEpisodeOfCare', 'count': 1, 'percentChangeFromLastMonth': 0.0 } ] }, { 'month': '12', 'year': '1970', 'entries': [ { 'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays', 'count': 1, 'percentChangeFromLastMonth': 0.0 }, { 'name': 'uniquePatientsWithEpisodeOfCare', 'count': 1, 'percentChangeFromLastMonth': 0.0 } ] } ] } } Second example is the yearly data: { 'PatientsUsageSummary': { 'yearData': [ { 'year': '1970', 'entries': [ { 'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays', 'count': 12, 'average': 1.0, 'usageBaseline': 10000, 'averageRounded': 1000.0, 'averageBeyondBaseline': 0 }, { 'name': 'uniquePatientsWithEpisodeOfCare', 'count': 12, 'average': 1.0, 'usageBaseline': 10000, 'averageRounded': 1000.0, 'averageBeyondBaseline': 0 } ] } ] } } |
| Type | false |
| Kind | operation |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
Generated Narrative: OperationDefinition -s-execute-patient-usage-stats
URL: [base]/$execute-patient-usage-stats
| Use | Name | Scope | Cardinality | Type | Binding | Documentation |
| IN | anonymization | 1..1 | string | This parameter is used to control if the report should be anonymized or not. If the value is set to NONE (no anonymization) and the user lacks the required permission, an exception is thrown. | ||
| OUT | return | 0..1 | Binary |
{
"resourceType": "OperationDefinition",
"id": "-s-execute-patient-usage-stats",
"text": {
"status": "generated",
"div": "<!-- snip (see above) -->"
},
"url": "http://ehealth.sundhed.dk/fhir/OperationDefinition/-s-execute-patient-usage-stats",
"version": "8.0.0",
"name": "execute-patient-usage-stats",
"title": "Execute unique active citizens total",
"status": "active",
"kind": "operation",
"date": "2026-02-18T09:10:00+00:00",
"publisher": "Den telemedicinske infrastruktur (eHealth Infrastructure)",
"contact": [
{
"name": "Den telemedicinske infrastruktur (eHealth Infrastructure)",
"telecom": [
{
"system": "url",
"value": "http://ehealth.sundhed.dk"
}
]
}
],
"description": "### Report Contents\nThis report contains an overview of the number of unique active citizens with Episodes of Care, shown both on monthly and yearly basis.\n### Grouping \nThis report is grouped by months and years. All groups are contained in the same JSON file.\n### Parameters\n- None\n### Output\nOutput can be found in Binary.content. This is a Base64 encoded .zip file containing a JSon file corresponding to the report groups.\n### Example output\nAll returned objects are Fhir resources. See the implementation guide for details\nFirst example is the monthly data:\n\n{\n\t'PatientsUsageSummary': {\n\t\t'monthData': [\n\t\t\t{\n\t\t\t\t'month': '1',\n\t\t\t\t'year': '1970',\n\t\t\t\t'entries': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCare',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t'month': '2',\n\t\t\t\t'year': '1970',\n\t\t\t\t'entries': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCare',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t'month': '3',\n\t\t\t\t'year': '1970',\n\t\t\t\t'entries': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCare',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t'month': '4',\n\t\t\t\t'year': '1970',\n\t\t\t\t'entries': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCare',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t'month': '5',\n\t\t\t\t'year': '1970',\n\t\t\t\t'entries': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCare',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t'month': '6',\n\t\t\t\t'year': '1970',\n\t\t\t\t'entries': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCare',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t'month': '7',\n\t\t\t\t'year': '1970',\n\t\t\t\t'entries': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCare',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t'month': '8',\n\t\t\t\t'year': '1970',\n\t\t\t\t'entries': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCare',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t'month': '9',\n\t\t\t\t'year': '1970',\n\t\t\t\t'entries': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCare',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t'month': '10',\n\t\t\t\t'year': '1970',\n\t\t\t\t'entries': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCare',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t'month': '11',\n\t\t\t\t'year': '1970',\n\t\t\t\t'entries': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCare',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t'month': '12',\n\t\t\t\t'year': '1970',\n\t\t\t\t'entries': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCare',\n\t\t\t\t\t\t'count': 1,\n\t\t\t\t\t\t'percentChangeFromLastMonth': 0.0\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}\n ]\n }\n}\n\nSecond example is the yearly data:\n\n{\n\t'PatientsUsageSummary': {\n\t\t'yearData': [\n\t\t\t{\n\t\t\t\t'year': '1970',\n\t\t\t\t'entries': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCareBeingActiveSevenOrMoreDays',\n\t\t\t\t\t\t'count': 12,\n\t\t\t\t\t\t'average': 1.0,\n\t\t\t\t\t\t'usageBaseline': 10000,\n\t\t\t\t\t\t'averageRounded': 1000.0,\n\t\t\t\t\t\t'averageBeyondBaseline': 0\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t'name': 'uniquePatientsWithEpisodeOfCare',\n\t\t\t\t\t\t'count': 12,\n\t\t\t\t\t\t'average': 1.0,\n\t\t\t\t\t\t'usageBaseline': 10000,\n\t\t\t\t\t\t'averageRounded': 1000.0,\n\t\t\t\t\t\t'averageBeyondBaseline': 0\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}\n ]\n }\n}\n",
"jurisdiction": [
{
"coding": [
{
"system": "urn:iso:std:iso:3166",
"code": "DK",
"display": "Denmark"
}
]
}
],
"affectsState": true,
"code": "execute-patient-usage-stats",
"system": true,
"type": false,
"instance": false,
"parameter": [
{
"name": "anonymization",
"use": "in",
"min": 1,
"max": "1",
"documentation": "This parameter is used to control if the report should be anonymized or not. If the value is set to NONE (no anonymization) and the user lacks the required permission, an exception is thrown.",
"type": "string"
},
{
"name": "return",
"use": "out",
"min": 0,
"max": "1",
"type": "Binary"
}
]
}