Not shown
Not every record a source sends ends up in a view. Nothing is deleted to hide it: the record stays in the pod, exactly as it arrived, and the derivations leave it out of every entry. When the reason no longer holds, the next build shows it again.
Why it is in no view
A record no entry joins is hidden, never deleted. Each reason the derivations left it out for is a row, with the thing that reason rests on, where there is one.
| ?record | ?why | ?because |
|---|---|---|
| Allergy · Codeine · Meridian Health System · alg-codeine-1 Turtle | cascade:EnteredInErrorAtSource | |
| Procedure · Echocardiography · Meridian Health System · proc-echo-1 Turtle | cascade:JudgedErroneous | Erroneous · the patient · 2027-04-02 · Echocardiography Turtle |
| Immunization · Tdap · unknown source Turtle | cascade:NoPatient | |
| Allergy · Amoxicillin · Meridian Health System · alg-amox-2 Turtle | cascade:PatientProfileNotClaimed | Patient profile · Meridian Health System · first received 2027-02-10 |
| Condition · Atopic dermatitis · Meridian Health System · cond-eczema-2 Turtle | cascade:PatientProfileNotClaimed | Patient profile · Meridian Health System · first received 2027-02-10 |
| Condition · Otitis media · Meridian Health System · cond-otitis-2 Turtle | cascade:PatientProfileNotClaimed | Patient profile · Meridian Health System · first received 2027-02-10 |
6 rows
The query: queries/questions/record/Why it is in no view.rq on GitHub
PREFIX cascade: <https://ns.cascadeprotocol.org/cascade#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?record ?recordLabel ?why ?because ?becauseLabel
WHERE {
?record a cascade:Record ; cascade:leftOutFor ?leftOut .
?leftOut cascade:leftOutReason ?why .
OPTIONAL { ?leftOut cascade:leftOutBecauseOf ?because }
OPTIONAL { ?leftOut cascade:leftOutBecauseOf ?because . ?because rdfs:label ?becauseLabel }
OPTIONAL { ?record rdfs:label ?recordLabel }
}
ORDER BY ?why ?recordLabel ?record ?because
The terms it uses: cascade:Record, cascade:leftOutFor, cascade:leftOutReason, cascade:leftOutBecauseOf, rdfs:label.
Run it yourself, from the runtime's root:
npm run ask -- alex-rivera "record/Why it is in no view"
Or in GraphDB, open the saved query record/Why it is in no view in the repository alex-rivera.