eHealth Infrastructure
2022.1 - release

eHealth Infrastructure - Local Development build (v2022.1). See the Directory of published versions

OperationDefinition: Fetch patient total

fetch-patient-total

OPERATION: fetch-patient-total

The official URL for this operation definition is:

https://reporting.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-fetch-patient-total

Report Contents

This report contains clinical information for each Patient

Grouping

This report is grouped by EpsiodeOfCare. Each group is returned in a separate JSon file.

Parameters

  • organization: Filter on EpisodeOfCare.managingOrganization match
  • period: Filter on EpisodeOfCare.period overlap
  • conditionCode: Filter on Condition.code related to EpisodeOfCare
  • status: Filter on EpisodeOfCare.status

Output

Output can be found in Binary.content. This is a Base64 encoded .zip file containing JSon files corresponding to the report groups.

Example output

All returned objects are Fhir resources. See the implementation guide for details

{
    'Patient': {
        'resourceType': 'Patient',
        'id': '70791',
        'meta': {
            'versionId': '1'
        }
    },
    'EHealthEpisodeOfCare': [{
            'resourceType': 'EpisodeOfCare',
            'id': '10928',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare']
            },
            'extension': [{
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization',
                    'valueReference': {
                        'reference': 'https://organization.local.ehealth.sundhed.dk/fhir/Organization/43014'
                    }
                }
            ],
            'status': 'active',
            'diagnosis': [{
                    'condition': {
                        'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/Condition/33654'
                    },
                    'rank': 1
                }
            ],
            'patient': {
                'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/70791'
            },
            'managingOrganization': {
                'reference': 'https://organization.local.ehealth.sundhed.dk/fhir/Organization/34361'
            },
            'period': {
                'start': '1970-01-01T01:00:01+01:00',
                'end': '1970-01-01T01:01:40+01:00'
            }
        }, {
            'resourceType': 'EpisodeOfCare',
            'id': '48392',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare']
            },
            'extension': [{
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization',
                    'valueReference': {
                        'reference': 'https://organization.local.ehealth.sundhed.dk/fhir/Organization/41282'
                    }
                }
            ],
            'status': 'active',
            'diagnosis': [{
                    'condition': {
                        'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/Condition/87020'
                    },
                    'rank': 1
                }
            ],
            'patient': {
                'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/47956'
            },
            'managingOrganization': {
                'reference': 'https://organization.local.ehealth.sundhed.dk/fhir/Organization/34361'
            },
            'period': {
                'start': '1970-01-01T01:00:01+01:00',
                'end': '1970-01-01T01:01:40+01:00'
            }
        }
    ],
    'EHealthDeviceUseStatement': [{
            'resourceType': 'DeviceUseStatement',
            'id': '4021',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement']
            },
            'extension': [{
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context',
                    'valueReference': {
                        'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/87235'
                    }
                }
            ],
            'status': 'active',
            'subject': {
                'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/69099'
            },
            'device': {
                'reference': 'https://device.local.ehealth.sundhed.dk/fhir/Device/81729'
            }
        }, {
            'resourceType': 'DeviceUseStatement',
            'id': '5732',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement']
            },
            'extension': [{
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context',
                    'valueReference': {
                        'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/23385'
                    }
                }
            ],
            'status': 'active',
            'subject': {
                'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/10543'
            },
            'device': {
                'reference': 'https://device.local.ehealth.sundhed.dk/fhir/Device/91432'
            }
        }
    ],
    'EHealthDevice': [{
            'resourceType': 'Device',
            'id': '81729',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device']
            },
            'extension': [{
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-privatelyOwned',
                    'valueBoolean': true
                }
            ],
            'status': 'active'
        }, {
            'resourceType': 'Device',
            'id': '91432',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device']
            },
            'extension': [{
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-privatelyOwned',
                    'valueBoolean': true
                }
            ],
            'status': 'active'
        }
    ],
    'EHealthDeviceMetric': [{
            'resourceType': 'DeviceMetric',
            'id': '35094',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric']
            },
            'extension': [{
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-qualities',
                    'extension': [{
                            'url': 'category',
                            'valueCodeableConcept': {
                                'coding': [{
                                        'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',
                                        'code': 'initial'
                                    }
                                ]
                            }
                        }, {
                            'url': 'value',
                            'valueInteger': 5
                        }
                    ]
                }, {
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-templateQualities',
                    'extension': [{
                            'url': 'category',
                            'valueCodeableConcept': {
                                'coding': [{
                                        'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',
                                        'code': 'initial'
                                    }
                                ]
                            }
                        }, {
                            'url': 'value',
                            'valueInteger': 10
                        }
                    ]
                }, {
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-templateQualities',
                    'extension': [{
                            'url': 'category',
                            'valueCodeableConcept': {
                                'coding': [{
                                        'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',
                                        'code': 'initial'
                                    }
                                ]
                            }
                        }, {
                            'url': 'value',
                            'valueInteger': 12
                        }
                    ]
                }, {
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-templateQualities',
                    'extension': [{
                            'url': 'category',
                            'valueCodeableConcept': {
                                'coding': [{
                                        'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',
                                        'code': 'initial'
                                    }
                                ]
                            }
                        }, {
                            'url': 'value',
                            'valueInteger': 14
                        }
                    ]
                }
            ],
            'identifier': {
                'value': 'Foo'
            },
            'type': {
                'text': 'code'
            },
            'source': {
                'reference': 'https://device.local.ehealth.sundhed.dk/fhir/Device/81729'
            },
            'category': 'calculation'
        }, {
            'resourceType': 'DeviceMetric',
            'id': '22449',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric']
            },
            'extension': [{
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-qualities',
                    'extension': [{
                            'url': 'category',
                            'valueCodeableConcept': {
                                'coding': [{
                                        'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',
                                        'code': 'initial'
                                    }
                                ]
                            }
                        }, {
                            'url': 'value',
                            'valueInteger': 5
                        }
                    ]
                }, {
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-templateQualities',
                    'extension': [{
                            'url': 'category',
                            'valueCodeableConcept': {
                                'coding': [{
                                        'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',
                                        'code': 'initial'
                                    }
                                ]
                            }
                        }, {
                            'url': 'value',
                            'valueInteger': 10
                        }
                    ]
                }, {
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-templateQualities',
                    'extension': [{
                            'url': 'category',
                            'valueCodeableConcept': {
                                'coding': [{
                                        'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',
                                        'code': 'initial'
                                    }
                                ]
                            }
                        }, {
                            'url': 'value',
                            'valueInteger': 12
                        }
                    ]
                }, {
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-templateQualities',
                    'extension': [{
                            'url': 'category',
                            'valueCodeableConcept': {
                                'coding': [{
                                        'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',
                                        'code': 'initial'
                                    }
                                ]
                            }
                        }, {
                            'url': 'value',
                            'valueInteger': 14
                        }
                    ]
                }
            ],
            'identifier': {
                'value': 'Foo'
            },
            'type': {
                'text': 'code'
            },
            'source': {
                'reference': 'https://device.local.ehealth.sundhed.dk/fhir/Device/81729'
            },
            'category': 'calculation'
        }
    ],
    'EHealthConsent': [{
            'resourceType': 'Consent',
            'id': '51690',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent']
            },
            'status': 'active',
            'category': [{
                    'coding': [{
                            'code': 'TBD'
                        }
                    ]
                }
            ],
            'patient': {
                'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/70791'
            },
            'period': {
                'start': '1970-01-01T01:00:01+01:00',
                'end': '1970-01-01T01:01:40+01:00'
            },
            'consentingParty': [{
                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/41034'
                }
            ],
            'actor': [{
                    'id': 'f31bec27-965f-49ea-b8fe-5fdb259c539d',
                    'role': {
                        'coding': [{
                                'code': 'authserver'
                            }
                        ]
                    },
                    'reference': {
                        'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/60499'
                    }
                }
            ],
            'policyRule': 'Rule',
            'data': [{
                    'meaning': 'related',
                    'reference': {
                        'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/51427'
                    }
                }
            ]
        }
    ],
    'EHealthCarePlan': [{
            'resourceType': 'CarePlan',
            'id': '87235',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan']
            },
            'definition': [{
                    'reference': 'https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition/98996'
                }
            ],
            'status': 'draft',
            'intent': 'option',
            'category': [{
                    'coding': [{
                            'system': 'http://ehealth.sundhed.dk/cs/careplan-category',
                            'code': 'TBD'
                        }
                    ]
                }
            ],
            'subject': {
                'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/55953'
            },
            'context': {
                'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'
            },
            'period': {
                'start': '1970-01-01T01:00:01+01:00',
                'end': '1970-01-01T01:01:40+01:00'
            },
            'addresses': [{
                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/Condition/25664'
                }
            ]
        }, {
            'resourceType': 'CarePlan',
            'id': '23385',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan']
            },
            'definition': [{
                    'reference': 'https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition/83648'
                }
            ],
            'status': 'draft',
            'intent': 'option',
            'category': [{
                    'coding': [{
                            'system': 'http://ehealth.sundhed.dk/cs/careplan-category',
                            'code': 'TBD'
                        }
                    ]
                }
            ],
            'subject': {
                'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/51258'
            },
            'context': {
                'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/48392'
            },
            'period': {
                'start': '1970-01-01T01:00:01+01:00',
                'end': '1970-01-01T01:01:40+01:00'
            },
            'addresses': [{
                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/Condition/4845'
                }
            ]
        }
    ],
    'EHealthServiceRequest': [{
            'resourceType': 'ServiceRequest',
            'id': '18904',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-servicerequest']
            },
            'extension': [{
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-sharingPolicy',
                    'valueCodeableConcept': {
                        'coding': [{
                                'system': 'http://ehealth.sundhed.dk/cs/measurement-sharing-policies',
                                'code': 'TBD'
                            }
                        ]
                    }
                }
            ],
            'definition': [{
                    'reference': 'https://plan.local.ehealth.sundhed.dk/fhir/ActivityDefinition/64273'
                }
            ],
            'status': 'completed',
            'intent': 'filler-order',
            'code': {
                'coding': [{
                        'system': 'http://ehealth.sundhed.dk/cs/activitydefinition-code',
                        'code': 'TBD'
                    }
                ],
                'text': '7654414a-7f86-4170-9920-fde60368b58b'
            },
            'subject': {
                'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/59415'
            },
            'context': {
                'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'
            }
        }
    ],
    'EHealthCondition': [{
            'resourceType': 'Condition',
            'id': '22743',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition']
            },
            'clinicalStatus': 'active',
            'code': {
                'coding': [{
                        'system': 'http://ehealth.sundhed.dk/cs/conditions',
                        'code': 'TBD'
                    }
                ]
            },
            'subject': {
                'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/84730'
            },
            'context': {
                'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'
            }
        }
    ],
    'EHealthObservation': [{
            'resourceType': 'Observation',
            'id': '55832',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation']
            },
            'basedOn': [{
                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/ServiceRequest/69506'
                }
            ],
            'status': 'amended',
            'code': {
                'coding': [{
                        'system': 'urn:oid:1.2.208.176.2.1',
                        'code': 'NPU03011'
                    }
                ]
            },
            'subject': {
                'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/96798'
            },
            'context': {
                'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'
            },
            'effectivePeriod': {
                'start': '2020-03-26T13:37:40+01:00',
                'end': '2020-03-26T13:37:40+01:00'
            },
            'performer': [{
                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/43621'
                }
            ],
            'device': {
                'reference': 'https://device.local.ehealth.sundhed.dk/fhir/Device/30416'
            }
        }
    ],
    'EHealthQuestionnaireResponse': [{
            'resourceType': 'QuestionnaireResponse',
            'id': '21957',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse']
            },
            'basedOn': [{
                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/ServiceRequest/12403'
                }
            ],
            'questionnaire': {
                'reference': 'https://questionnaire.local.ehealth.sundhed.dk/fhir/Questionnaire/42078'
            },
            'status': 'completed',
            'subject': {
                'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/47155'
            },
            'context': {
                'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'
            },
            'authored': '2020-03-26T13:37:40+01:00',
            'source': {
                'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/61666'
            }
        }
    ],
    'EHealthMedia': [{
            'resourceType': 'Media',
            'id': '18256',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media']
            },
            'extension': [{
                    'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-quality',
                    'extension': [{
                            'url': 'qualityType',
                            'valueCodeableConcept': {
                                'coding': [{
                                        'system': 'http://ehealth.sundhed.dk/cs/quality-types',
                                        'code': 'TBD'
                                    }
                                ]
                            }
                        }, {
                            'url': 'qualityCode',
                            'valueCodeableConcept': {
                                'coding': [{
                                        'system': 'http://ehealth.sundhed.dk/cs/usage-quality',
                                        'code': 'TBD'
                                    }
                                ]
                            }
                        }
                    ]
                }
            ],
            'basedOn': [{
                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/ServiceRequest/98474'
                }
            ],
            'type': 'audio',
            'subject': {
                'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/20886'
            },
            'context': {
                'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'
            },
            'occurrenceDateTime': '2020-03-26T13:37:40+01:00',
            'content': {
                'language': 'en'
            }
        }
    ],
    'EHealthClinicalImpression': [{
            'resourceType': 'ClinicalImpression',
            'id': '39697',
            'meta': {
                'versionId': '1',
                'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression']
            },
            'status': 'draft',
            'code': {
                'coding': [{
                        'system': 'http://ehealth.sundhed.dk/cs/clinicalimpression-codes',
                        'code': 'TBD'
                    }
                ]
            },
            'subject': {
                'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/32140'
            },
            'context': {
                'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'
            }
        }
    ]
}

URL: [base]/$fetch-patient-total

Parameters

UseNameCardinalityTypeBindingDocumentation
INanonymization1..1string
INorganization0..1Reference
INperiod0..1Period
INconditionCode0..1Coding
INstatus0..1string
OUTreturn0..1Binary