{"id":"91125495-26c5-431d-a536-8a9d8bcb13b1","type":"DATASET","name":"WRITTEN DIRECTION DATA REPORT","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-10-12T20:48:50.166Z","last_verified_at":"2026-10-12T17:07:27.001Z","deprecated_at":null,"ranking_score":36,"last_ranked_at":"2026-10-10T11:35:06.431Z","last_seen_at":null,"last_validated_at":null,"last_uptime_at":"2026-10-07T20:55:31.514Z","search_vector":"'a':168B,178B,217B 'age':15B,18B,21B,66B,144B,147B,150B,195B 'aggreg':121B 'aggregated':250B 'an':187B 'and':192B,200B,208B,211B,229B 'bodi':54B 'body':183B 'by':176B 'care':108B,237B 'clinic':116B 'clinical':245B 'code':12B,62B,141B,191B 'cover':111B 'covering':240B 'data':3A,7B,40B,118B,132A,136B,169B,247B 'dataset':37B,93B,166B,222B 'date':32B,81B,161B,210B 'day':20B,70B 'days':149B,199B 'diagnost':11B,13B,30B,61B,77B,101B 'diagnostic':140B,142B,159B,190B,206B,230B 'direct':2A 'direction':131A 'each':184B 'event':9B,59B,117B,138B,188B,246B 'express':67B 'expressed':196B 'health':52B,92B,107B,124B,126C,181B,221B,236B,253B 'health-car':106B 'health-care':235B 'health-sector':51B,180B 'id':10B,60B,139B,189B 'in':145B,148B,151B,197B 'includ':57B 'includes':186B 'indic':125B 'indicators':254B 'inform':102B 'information':231B 'intend':94B 'intended':223B 'is':216B 'issu':34B,85B 'issue':163B,214B 'it':215B 'laboratori':27B,74B 'laboratory':156B,203B 'latvia':104B,233B 'latvian':50B,179B 'level':91B,220B 'month':23B,72B 'months':152B,201B 'name':14B,64B,143B,193B 'napatijumi':174B 'napātījumi':45B 'nation':90B 'national':219B 'national-level':89B,218B 'of':162B,213B,227B 'on':171B 'patient':65B,194B 'provid':38B 'provides':167B 'pskus':5B,48B,134B,177B 'public':123B,252B 'public-health':122B,251B 'publish':46B 'published':175B 'rather':119B,248B 'record':56B,185B 'referr':44B,99B 'referral':228B 'referrals':173B 'releas':6B 'release':135B 'report':4A,8B,41B,109B,133A,137B,170B 'reporting':238B 'result':28B,31B,75B,78B,160B,207B 'results':157B,204B 's':155B,234B 'sector':53B,182B 'sex':24B,73B,153B,202B 'statist':114B,129C 'statistics':243B 'style':115B,244B 'support':96B,225B 'system':110B,239B 'than':249B 'the':209B 'this':165B 'time':35B,83B,164B,212B 'to':224B 'track':97B 'tracking':226B 'v':25B,154B 'visual':29B,76B,158B,205B 'vital':113B,128C,242B 'vital-statist':112B,127C 'vital-statistics':241B 'within':103B,232B 'written':1A,43B,130A,172B 'year':17B,69B 'years':146B,198B","popularity_score":"0.0000","maintenance_score":"0.5000","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|written direction data report","upstream_ref":null,"content_changed_at":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","counts_as_coverage":true,"met":false,"reached":false,"criterion":"EXISTS (SELECT 1 FROM entry_field_links efl WHERE efl.entry_id = entries.id AND efl.identifier_id IS NOT NULL AND efl.value_status = 'match')"},{"level":"reproducible","level_index":6,"label":"Reproducible","meaning":"Snapshots and transformation evidence retained","evidence":"at least one retained evidence manifest (migration 078)","counts_as_coverage":true,"met":false,"reached":false,"criterion":"EXISTS (SELECT 1 FROM evidence_manifests em WHERE em.entry_id = entries.id)"},{"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 'per_item_proven' 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-10-12T22:48:41.564Z"},"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,"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-10-12T17:07:23.776Z","is_available":true,"last_http_status":200,"created_at":"2026-07-20T12:49:04.538Z","updated_at":"2026-10-12T17:07:23.776Z"}],"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},"undetermined":["commercial_use","redistribution","attribution_required","share_alike","personal_data_warning","cache_and_mirror"],"basis":"unverified","confidence":0.1,"confidence_tier":"low","source_text":null,"source_url":null,"reviewed_at":null},"license_raw":null,"latest_check":{"id":"a9707e63-6ce4-4e26-9743-fc0825774cab","entry_id":"91125495-26c5-431d-a536-8a9d8bcb13b1","status":"VERIFIED","last_checked_at":"2026-10-12T17:07:26.827Z","p50_latency_ms":4441,"p95_latency_ms":null,"last_error":null,"consecutive_failures":0,"created_at":"2026-06-24T18:59:46.377Z","updated_at":"2026-10-12T17:07:26.827Z","consecutive_successes":91,"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-10-12T17:07:26.827Z"},"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-10-07T06:23:09.696Z","run_id":"554cbe57-558a-4169-a8d9-6dd8143a39db","created_at":"2026-07-20T12:49:03.908Z","updated_at":"2026-10-07T06:23:09.696Z","license_raw":null,"license_id":null,"consecutive_failure_count":0,"last_error_at":null,"last_error_message":null,"previewable":true,"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":"3c16fa7c02d0aab5abc4c00dbf387779e837cc40a8a7246ec808ff682c1244b6","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":true,"live_basis":"This body was produced by executing the request.","created_at":"2026-10-12T22:48:41.598Z","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. Both are entry-scoped, because evidence_manifests is entry-shaped; a domain answer spanning several sources has no single entry and cannot be persisted through that path."}}