Named question about entry
Where it came from
For each member of an entry: when its current revision arrived, the import that brought it, and the document it was derived from, with each hospital that wrote or keeps that document and when it was retrieved. A record the person entered has no document.
The query
PREFIX cascade: <https://ns.cascadeprotocol.org/cascade#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX pav: <http://purl.org/pav/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?entry ?entryLabel ?record ?recordLabel ?arrived ?import ?importLabel ?document ?documentLabel ?hospital ?retrieved
WHERE {
?record ^cascade:entryMember ?entry ; cascade:currentRevision ?revision .
?revision prov:generatedAtTime ?arrived .
OPTIONAL { ?entry rdfs:label ?entryLabel }
OPTIONAL { ?record rdfs:label ?recordLabel }
OPTIONAL { ?revision prov:wasGeneratedBy ?import .
OPTIONAL { ?import rdfs:label ?importLabel } }
OPTIONAL { ?revision prov:wasDerivedFrom ?document .
OPTIONAL { ?document rdfs:label ?documentLabel }
OPTIONAL { ?document pav:retrievedOn ?retrieved }
OPTIONAL { ?document prov:wasAttributedTo/(rdfs:label|pav:hasCurrentVersion/foaf:name) ?hospital } }
}
ORDER BY ?entryLabel ?entry ?arrived ?recordLabel ?record ?document ?hospital ?retrieved
Terms it reads
cascade:currentRevision · cascade:entryMember · pav:hasCurrentVersion · pav:retrievedOn · prov:generatedAtTime · prov:wasAttributedTo · prov:wasDerivedFrom · prov:wasGeneratedBy · rdfs:label
Rules and decision notes that name it
No rule or decision note writes its path.
Its rows on Alex Rivera's pod
The first 10 of 21 rows, as Alex Rivera's explorer shows them. Every row of every question is in answers.json.
| entry | record | arrived | import | document | hospital | retrieved |
|---|---|---|---|---|---|---|
| Allergy entry · Latex | Allergy · Latex · Meridian Health System · alg-latex-1 | 2026-11-20T09:00:04Z | Apple Health export | Document · Meridian Health System · AllergyIntolerance/ | Meridian Health System | 2026-11-20T09:00:00Z |
| Allergy entry · Peanuts | Allergy · Peanuts · own entry | 2026-09-01T18:30:00Z | entered by Alex in the Cascade app | |||
| Allergy entry · Penicillin | Allergy · Penicillin G · Meridian Health System · alg-pcn-1 | 2026-09-01T10:00:04Z | Apple Health export | Document · Meridian Health System · AllergyIntolerance/ | Meridian Health System | 2026-09-01T10:00:00Z |
| Allergy entry · Penicillin | Allergy · Penicillin · Larkspur Valley Health · al-8237461 | 2026-10-14T15:42:00Z | Apple Health export | Document · Larkspur Valley Health · AllergyIntolerance/ | Larkspur Valley Health | 2026-10-14T15:40:00Z |
| Allergy entry · Penicillin | Allergy · Penicillin · Larkspur Valley Health · lv-alg-101 | 2027-03-18T12:00:04Z | Apple Health export | Document · Larkspur Valley Health · AllergyIntolerance/ | Larkspur Valley Health | 2027-03-18T12:00:00Z |
| Allergy entry · Sulfamethoxazole | Allergy · Sulfamethoxazole · Larkspur Valley Health · al-8237462 | 2026-10-14T15:42:00Z | Apple Health export | Document · Larkspur Valley Health · AllergyIntolerance/ | Larkspur Valley Health | 2026-10-14T15:40:00Z |
| Allergy entry · Sulfamethoxazole | Allergy · Sulfamethoxazole · Meridian Health System · alg-sulfa-1 | 2026-11-20T09:00:04Z | Apple Health export | Document · Meridian Health System · AllergyIntolerance/ | Meridian Health System | 2026-11-20T09:00:00Z |
| Allergy entry · Sulfamethoxazole | Allergy · Sulfamethoxazole · Larkspur Valley Health · lv-alg-102 | 2027-03-18T12:00:04Z | Apple Health export | Document · Larkspur Valley Health · AllergyIntolerance/ | Larkspur Valley Health | 2027-03-18T12:00:00Z |
| Condition entry · Acute bronchitis · 2026-08-12 | Condition · Acute bronchitis · Meridian Health System · cond-bronch-1 | 2026-11-20T09:00:04Z | Apple Health export | Document · Meridian Health System · Condition/ | Meridian Health System | 2026-11-20T09:00:00Z |
| Condition entry · Asthma · 2008-09-01 | Condition · Asthma · Larkspur Valley Health · pr-30018 | 2026-10-14T15:42:00Z | Apple Health export | Document · Larkspur Valley Health · Condition/ | Larkspur Valley Health | 2026-10-14T15:40:00Z |