Skip to content
Alpha: see what works today →
Menu

Named question about record

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.

The query

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

Terms it reads

cascade:Record · cascade:leftOutBecauseOf · cascade:leftOutFor · cascade:leftOutReason · rdfs:label

Rules and decision notes that name it

No rule or decision note writes its path.

Its rows on Alex Rivera's pod

6 rows, as Alex Rivera's explorer shows them.

recordwhybecause
Allergy · Codeine · Meridian Health System · alg-codeine-1cascade:EnteredInErrorAtSource
Procedure · Echocardiography · Meridian Health System · proc-echo-1cascade:JudgedErroneousErroneous · the patient · 2027-04-02 · Echocardiography
Immunization · Tdap · unknown sourcecascade:NoPatient
Allergy · Amoxicillin · Meridian Health System · alg-amox-2cascade:PatientProfileNotClaimedPatient profile · Meridian Health System · first received 2027-02-10
Condition · Atopic dermatitis · Meridian Health System · cond-eczema-2cascade:PatientProfileNotClaimedPatient profile · Meridian Health System · first received 2027-02-10
Condition · Otitis media · Meridian Health System · cond-otitis-2cascade:PatientProfileNotClaimedPatient profile · Meridian Health System · first received 2027-02-10

queries/questions/record/Why it is in no view.rq on GitHub ↗