{"id":"91125495-26c5-431d-a536-8a9d8bcb13b1","type":"DATASET","name":"PSKUS izrakstīšanas datu atskaite","slug":"written-direction-data-report","description":"PSKUS release data report Event ID Diagnostic code Diagnostic name Age in years Age in days Age in months Sex (V,S) Laboratory results Visual diagnostic result Date of issue, time .","free_access_class":"FREE_NO_AUTH","auth_type":"NONE","homepage_url":null,"docs_url":null,"repo_url":"https://dagr.gov.lv/public/discharge_report_statistics_pskus?filename=discharge_report_statistics_pskus.csv","status":"ACTIVE","verification_state":"VERIFIED","tags":["health","vital-statistics"],"logo_url":"https://www.google.com/s2/favicons?sz=64&domain=dagr.gov.lv","primary_source_url":"https://dagr.gov.lv/public/discharge_report_statistics_pskus?filename=discharge_report_statistics_pskus.csv","extraction_confidence":"0.16","created_at":"2026-06-24T18:59:12.936Z","updated_at":"2026-12-01T02:17:57.891Z","last_verified_at":"2026-12-01T02:17:57.891Z","deprecated_at":null,"ranking_score":55,"last_ranked_at":"2026-11-23T08:56:29.299Z","last_seen_at":null,"last_validated_at":null,"last_uptime_at":"2026-11-25T03:06:11.604Z","popularity_score":"0.0000","maintenance_score":"0.6000","institution_id":null,"institution_type":null,"country_code":"LV","official_confidence":null,"proof_summary":null,"source_seed_url":null,"is_public_sector":true,"published_at":"2026-06-24T18:59:12.936Z","geographic_scope":"NATIONAL","name_en":null,"description_en":"This dataset provides a data report on written referrals (napātījumi) published by PSKUS, a Latvian health-sector body. Each record includes an event ID, diagnostic code and name, patient age expressed in years, days, and months, sex, laboratory results, visual diagnostic result, and the date and time of issue. It is a national-level health dataset intended to support tracking of referral and diagnostic information within Latvia's health-care reporting system, covering vital-statistics style clinical event data rather than aggregated public-health indicators.","native_lang":"lv","access_level":"direct","formats":["CSV"],"capability_tier":"sample","trust_score":33.40384615384615,"merged_into_entry_id":null,"identity_key":"DATASET|https://dagr.gov.lv/public/discharge_report_statistics_pskus?filename=discharge_report_statistics_pskus.csv|pskus izrakstīšanas datu atskaite","upstream_ref":null,"content_changed_at":"2026-11-30T15:54:11.469Z","upstream_gone_checks":0,"upstream_gone_since":null,"description_en_local_failures":0,"institution":null,"title_qualifier":null,"access":{"level":"direct","primary":{"kind":"download","label":"Download CSV","method":"GET","url":"https://dagr.gov.lv/public/discharge_report_statistics_pskus?filename=discharge_report_statistics_pskus.csv","format":"CSV","source":"distribution","runnable":true},"actions":[{"kind":"download","label":"Download CSV","method":"GET","url":"https://dagr.gov.lv/public/discharge_report_statistics_pskus?filename=discharge_report_statistics_pskus.csv","format":"CSV","source":"distribution","runnable":true}],"formats":["CSV"]},"maturity":{"entry_id":"91125495-26c5-431d-a536-8a9d8bcb13b1","granularity":"entry","granularity_label":"One unit = one catalog entry. A PROXY for the SCOPE.md §4 ladder, which governs source families, not entries: a family with 400 entries moves this reading 400 times as much as a family with one. Never compare or combine with the source_family reading.","level":"profiled","level_index":3,"level_label":"Profiled","meaning":"Schema, dimensions and licence understood","counts_as_coverage":false,"blocked_by":null,"rungs":[{"level":"discovered","level_index":1,"label":"Discovered","meaning":"Source and metadata recorded","evidence":"membership of the named population the ladder is taken over","counts_as_coverage":false,"met":true,"reached":true,"criterion":"TRUE"},{"level":"verified","level_index":2,"label":"Verified","meaning":"Access tested successfully","evidence":"entries.verification_state = 'VERIFIED'","counts_as_coverage":false,"met":true,"reached":true,"criterion":"entries.verification_state = 'VERIFIED'"},{"level":"profiled","level_index":3,"label":"Profiled","meaning":"Schema, dimensions and licence understood","evidence":"a data profile with at least one field (entry_data_profiles.field_count > 0)","counts_as_coverage":false,"met":true,"reached":true,"criterion":"EXISTS (SELECT 1 FROM entry_data_profiles p WHERE p.entry_id = entries.id AND COALESCE(p.field_count, 0) > 0)"},{"level":"executable","level_index":4,"label":"Executable","meaning":"Queries run through Commodity","evidence":"entries.capability_tier = 'live' — today's proxy for \"queryable through us\"","counts_as_coverage":true,"met":false,"reached":false,"criterion":"entries.capability_tier = 'live'"},{"level":"joinable","level_index":5,"label":"Joinable","meaning":"Canonical identifiers and concepts mapped","evidence":"a field link to a canonical identifier whose sampled VALUES match its format, on a field the current profile still has (entry_data_profiles.fields names it, field_count > 0)","counts_as_coverage":true,"met":false,"reached":false,"criterion":"EXISTS (SELECT 1 FROM entry_field_links efl JOIN entry_data_profiles jp ON jp.entry_id = efl.entry_id WHERE efl.entry_id = entries.id AND efl.identifier_id IS NOT NULL AND efl.value_status = 'match' AND COALESCE(jp.field_count, 0) > 0 AND COALESCE(jp.fields @> jsonb_build_array(jsonb_build_object('name', efl.field_name)), false))"},{"level":"reproducible","level_index":6,"label":"Reproducible","meaning":"Snapshots and transformation evidence retained","evidence":"at least one retained evidence manifest (migration 078) that names at least one column, every one of them a field of the current profile — except, on a grouped citation, the computed columns 'count' and '<fn>_<field>'","counts_as_coverage":true,"met":false,"reached":false,"criterion":"EXISTS (SELECT 1 FROM evidence_manifests em JOIN entry_data_profiles rp ON rp.entry_id = em.entry_id WHERE em.entry_id = entries.id AND COALESCE(rp.field_count, 0) > 0 AND jsonb_array_length(em.columns) > 0 AND (CASE WHEN em.query_params ? 'aggregate' THEN em.columns - 'count' - (COALESCE(em.query_params->'aggregate'->>'fn', '') || '_' || COALESCE(em.query_params->'aggregate'->>'field', '')) ELSE em.columns END) <@ COALESCE((SELECT jsonb_agg(f->'name') FROM jsonb_array_elements(CASE WHEN jsonb_typeof(rp.fields) = 'array' THEN rp.fields END) f), '[]'::jsonb))"},{"level":"guaranteed","level_index":7,"label":"Guaranteed","meaning":"Monitored against an operational reliability target","evidence":"an active reliability target with a named monitor (migration 096)","counts_as_coverage":true,"met":false,"reached":false,"criterion":"EXISTS (SELECT 1 FROM entry_reliability_targets rt WHERE rt.entry_id = entries.id AND rt.is_active = true)"}],"officialness":{"basis":"catalog_inherited","label":"Inherited from the upstream catalog: this item came from a trusted official government catalog, and that provenance — not per-item proof — is the warrant. Its own proof score is below 80 or it matched no registered institution (apps/worker/src/connectors/catalog/qualify-store.ts).","proof_confidence":null,"proven_threshold":80,"institution_id":null,"definition":"CASE WHEN COALESCE(entries.is_public_sector, false) IS NOT TRUE THEN 'not_official' WHEN COALESCE(entries.official_confidence, 0) >= 80 AND entries.institution_id IS NOT NULL THEN CASE WHEN EXISTS (SELECT 1 FROM api_candidates oc WHERE oc.merged_into_entry_id = entries.id AND oc.official_confidence >= 80 AND oc.proposed_institution_id IS NOT NULL) THEN 'per_item_proven' ELSE 'integrator_asserted' END ELSE 'catalog_inherited' END"},"source_family":{"key":"dagr.gov.lv","label":"One unit = one source family, approximated by the serving host of the entry's primary source URL (e.g. bdl.stat.gov.pl). A COMPUTED stand-in for the curated families of SCOPE.md §5, which no table holds yet. A family sits at the highest level any of its entries has reached, because a family is integrated to the depth of its deepest working integration. Never compare or combine with the entry reading."},"generated_at":"2026-12-01T07:51:53.208Z"},"update_schedule":{"last_update":null,"declared_frequency":null,"next_update":null,"next_update_basis":null,"next_update_source_url":null,"predicted":false,"next_update_tentative":false,"confidence":null,"overdue":false,"overdue_since":null,"method":"The source publishes no modification date, so no next update can be computed."},"legal_basis":{"source":"data.europa.eu High-Value Dataset records (dcatap:applicableLegislation), matched to this entry by URL","legislation":[],"statements":[],"record_publishers":[],"harvested_at":null},"distribution_role":null,"publisher_organisation":null,"api_details":null,"dataset_details":{"id":"3b378fc3-72fa-43ae-858f-bed479f600ed","entry_id":"91125495-26c5-431d-a536-8a9d8bcb13b1","upstream_issued":null,"upstream_modified":null,"themes":[],"update_frequency":null,"temporal_start":null,"temporal_end":null,"spatial_coverage":null,"landing_page":null,"license_id":null,"license_raw":null,"has_documentation":false,"has_data_dictionary":false,"has_versioning":false,"source_portal":null,"source_portal_url":null,"created_at":"2026-07-20T12:49:04.072Z","updated_at":"2026-07-20T12:49:04.072Z","publisher":null,"publisher_url":null,"record_origin":null,"record_source_catalogue":null,"record_source_url":null,"publisher_register_scheme":null,"publisher_register_id":null,"distributions":[{"id":"7eafc021-d9e8-44fe-a138-0a82d416d13a","dataset_details_id":"3b378fc3-72fa-43ae-858f-bed479f600ed","title":"discharge_report_statistics_pskus","description":null,"access_url":"https://dagr.gov.lv/public/discharge_report_statistics_pskus?filename=discharge_report_statistics_pskus.csv","download_url":"https://dagr.gov.lv/public/discharge_report_statistics_pskus?filename=discharge_report_statistics_pskus.csv","media_type":"text/csv","format":"csv","byte_size":null,"license_id":null,"license_raw":null,"last_checked_at":"2026-12-01T02:17:56.435Z","is_available":true,"last_http_status":200,"created_at":"2026-07-20T12:49:04.538Z","updated_at":"2026-12-01T02:17:56.435Z","last_content_type":"text/csv; charset=UTF-8"}],"license":null},"license":null,"reuse":{"license_id":null,"license_name":null,"license_url":null,"commercial_use":{"status":"unknown","value":null},"redistribution":{"status":"unknown","value":null},"attribution_required":{"status":"unknown","value":null},"share_alike":{"status":"unknown","value":null},"personal_data_warning":{"status":"unknown","value":null},"cache_and_mirror":{"status":"unknown","value":null},"derivatives":{"status":"unknown","value":null},"undetermined":["commercial_use","redistribution","attribution_required","share_alike","personal_data_warning","cache_and_mirror","derivatives"],"basis":"unverified","confidence":0.1,"confidence_tier":"low","source_text":null,"source_url":null,"reviewed_at":null},"license_raw":null,"licence":{"licence_id":null,"status":"none_stated","basis":"no_licence_recorded","terms":[],"redistribution":"unknown","commercial":"unknown","licence_url":null,"licence_raw":null,"source_url":null,"notice":"licence: none stated — redistribution: not stated; commercial reuse: not stated"},"latest_check":{"id":"a9707e63-6ce4-4e26-9743-fc0825774cab","entry_id":"91125495-26c5-431d-a536-8a9d8bcb13b1","status":"VERIFIED","last_checked_at":"2026-12-01T02:17:57.586Z","p50_latency_ms":2124,"p95_latency_ms":null,"last_error":null,"consecutive_failures":0,"created_at":"2026-06-24T18:59:46.377Z","updated_at":"2026-12-01T02:17:57.586Z","consecutive_successes":133,"probe_url":"https://dagr.gov.lv/public/discharge_report_statistics_pskus?filename=discharge_report_statistics_pskus.csv","probe_method":"GET","probe_http_status":200,"probe_content_type":"text/csv; charset=UTF-8","probe_succeeded_at":"2026-12-01T02:17:57.586Z"},"data_profile":{"id":"368f031e-f545-4a20-8cb0-e622615d8199","entry_id":"91125495-26c5-431d-a536-8a9d8bcb13b1","profile_source":"distribution","profile_kind":"dataset","dataset_id":null,"fields":[{"name":"Id","type":"int","label":null,"description":null,"description_en":"Unique identifier for the event record."},{"name":"DiagnoseCode","type":"text","label":null,"description":null,"description_en":"Diagnostic classification code."},{"name":"DiagnoseName","type":"text","label":null,"description":null,"description_en":"Name or description of the diagnosis."},{"name":"AgeInYears","type":"int","label":null,"description":null,"description_en":"Patient's age in years."},{"name":"AgeInDaysMonth","type":"text","label":null,"description":null,"description_en":"Patient's age expressed in days and months."},{"name":"Sex","type":"text","label":null,"description":null,"description_en":"Patient's sex, coded as V or S."},{"name":"LaboratoryResults","type":"text","label":null,"description":null,"description_en":"Laboratory test results for the event."},{"name":"VisualDiagnosticResults","type":"text","label":null,"description":null,"description_en":"Results of visual diagnostic examination."},{"name":"Discharged","type":"datetime","label":null,"description":null,"description_en":"Date and time of discharge or issue."}],"field_count":9,"sample_records":[{"Id":"4317","Sex":"S","AgeInYears":"79","Discharged":"2026-04-08 14:54","DiagnoseCode":"H251","DiagnoseName":"Nukleāra vecuma katarakta","AgeInDaysMonth":"20 d 10 m","LaboratoryResults":"[]","VisualDiagnosticResults":""},{"Id":"51678","Sex":"S","AgeInYears":"65","Discharged":"2026-01-19 00:00","DiagnoseCode":"C50","DiagnoseName":"Krūts ļaundabīgs audzējs","AgeInDaysMonth":"3 d 9 m","LaboratoryResults":"[]","VisualDiagnosticResults":""},{"Id":"35262","Sex":"S","AgeInYears":"88","Discharged":"2026-06-15 15:04","DiagnoseCode":"I500","DiagnoseName":"Sastrēguma sirds mazspēja","AgeInDaysMonth":"12 d 7 m","LaboratoryResults":"[]","VisualDiagnosticResults":""},{"Id":"54191","Sex":"S","AgeInYears":"73","Discharged":"2026-03-16 00:00","DiagnoseCode":"C18","DiagnoseName":"Resnās zarnas ļaundabīgs audzējs","AgeInDaysMonth":"22 d 7 m","LaboratoryResults":"[]","VisualDiagnosticResults":""},{"Id":"39433","Sex":"S","AgeInYears":"84","Discharged":"2026-07-03 10:48","DiagnoseCode":"I208","DiagnoseName":"Citas stenokardijas formas","AgeInDaysMonth":"4 d 3 m","LaboratoryResults":"[]","VisualDiagnosticResults":""}],"record_count":null,"data_size_bytes":null,"dataset_count":null,"query_examples":[{"url":"https://dagr.gov.lv/public/discharge_report_statistics_pskus?filename=discharge_report_statistics_pskus.csv","curl":"curl -sL 'https://dagr.gov.lv/public/discharge_report_statistics_pskus?filename=discharge_report_statistics_pskus.csv' -o data.csv","label":"Download distribution","method":"GET","description":"Full csv file download — the schema shown was inferred from the file's first records."},{"url":"https://dagr.gov.lv/public/discharge_report_statistics_pskus?filename=discharge_report_statistics_pskus.csv","curl":"curl -sL 'https://dagr.gov.lv/public/discharge_report_statistics_pskus?filename=discharge_report_statistics_pskus.csv' -H 'Range: bytes=0-4095'","label":"Preview first bytes","method":"GET","description":"First 4 KB of the file (servers honoring Range requests)."}],"status":"ok","error_message":null,"profiled_at":"2026-11-27T22:03:57.047Z","run_id":"2259e8b4-becb-4fdf-9ca5-4464b4531a0a","created_at":"2026-07-20T12:49:03.908Z","updated_at":"2026-11-27T22:03:57.293Z","license_raw":null,"license_id":null,"consecutive_failure_count":0,"last_error_at":null,"last_error_message":null,"fields_with_example_values":8,"example_values_counted_at":"2026-11-27T22:03:57.047Z","ods_features":null,"previewable":true,"declared_periods":null,"declared_areas":null,"declared_population":null,"personal_data":{"status":"none","basis":"no_person_column_cited","grain":"none","allowed":true,"columns":{"direct_identifiers":[],"family_names":[],"given_names":[],"attributes":[],"unresolved_names":[],"measures":[],"entity_identifiers":[]},"publication":null,"publication_evidence":null,"notice":"personal data: no cited column names a natural person (the cited columns are all this reads)"}},"datasets":[],"limits":[],"manifest":{"answer_sha256":"be14627d2c4323a094b271475ff29a5590e284d174bb691431c36deb4969120c","answer_sha256_rule":"sha256 (hex, UTF-8) of JSON.stringify(this body) after deleting the keys listed in manifest.stamped_keys from manifest, and deleting manifest itself if it is then empty. The hash was computed before the stamp existed, so no field of the stamp is inside it.","stamped_keys":["answer_sha256","answer_sha256_rule","stamped_keys","row_count","row_count_basis","live","live_basis","created_at","created_at_basis","durable_citation"],"row_count":25,"row_count_basis":"Objects that are elements of a JSON array anywhere in this body, excluding manifest. Not a claim about which collection is the answer. Largest single collection: data_profile.fields[] (9 rows).","live":false,"live_basis":"This body was replayed from the worker edge cache (x-edge-cache: hit); the bytes, and therefore answer_sha256, are those of the execution that filled the cache.","created_at":"2026-12-01T07:52:24.631Z","created_at_basis":"When this response body was assembled, deliberately OUTSIDE the hashed bytes so the same answer hashes identically on every request. Not the upstream read time — that is provenance[].retrieved_at. A zone-cached replay carries the assembly time, not your receipt time.","durable_citation":"This manifest is produced at response time and is NOT stored. A durable, replayable citation is persisted only on an explicit cite: GET /api/v1/entries/{id-or-slug}/evidence or the MCP cite_query tool for one entry, and POST /api/v1/answer/cite for a domain answer, which stores this same answer_sha256 with the sources the answer consulted."}}