Skip to content
Alpha: see what works today →
Menu

Named question about record

What each version says

A version is named by a hash of its content, so two arrivals saying the same thing share one version. Each row is one statement of one version, as its file states it: the name and date the derivations copy onto it are left out.

The query

PREFIX cascade: <https://ns.cascadeprotocol.org/cascade#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT DISTINCT ?record ?recordLabel ?version ?versionLabel ?field ?value ?valueLabel
WHERE {
  ?revision cascade:revisionOf ?record ; cascade:version ?version .
  ?version ?field ?value .
  FILTER (?field NOT IN (prov:specializationOf, rdfs:label, cascade:displayName, cascade:displayDate))
  OPTIONAL { ?record rdfs:label ?recordLabel }
  OPTIONAL { ?version rdfs:label ?versionLabel }
  OPTIONAL { ?value rdfs:label ?valueLabel }
}
ORDER BY ?recordLabel ?record ?version ?field ?value

Terms it reads

cascade:displayDate · cascade:displayName · cascade:revisionOf · cascade:version · prov:specializationOf · 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 219 rows, as Alex Rivera's explorer shows them. Every row of every question is in answers.json.

recordversionfieldvalue
Allergy · Amoxicillin · Meridian Health System · alg-amox-2Allergy version · Amoxicillin · active · alg-amox-2 · first received 2027-02-10cascade:allergenCodehttps://ns.cascadeprotocol.org/codes/rxnorm/723
Allergy · Amoxicillin · Meridian Health System · alg-amox-2Allergy version · Amoxicillin · active · alg-amox-2 · first received 2027-02-10cascade:allergenNameAmoxicillin
Allergy · Amoxicillin · Meridian Health System · alg-amox-2Allergy version · Amoxicillin · active · alg-amox-2 · first received 2027-02-10cascade:allergyCategorymedication
Allergy · Amoxicillin · Meridian Health System · alg-amox-2Allergy version · Amoxicillin · active · alg-amox-2 · first received 2027-02-10cascade:allergyCriticalitylow
Allergy · Amoxicillin · Meridian Health System · alg-amox-2Allergy version · Amoxicillin · active · alg-amox-2 · first received 2027-02-10cascade:allergyTypeallergy
Allergy · Amoxicillin · Meridian Health System · alg-amox-2Allergy version · Amoxicillin · active · alg-amox-2 · first received 2027-02-10cascade:clinicalStatusactive
Allergy · Amoxicillin · Meridian Health System · alg-amox-2Allergy version · Amoxicillin · active · alg-amox-2 · first received 2027-02-10cascade:patientPatient profile · Meridian Health System · first received 2027-02-10
Allergy · Amoxicillin · Meridian Health System · alg-amox-2Allergy version · Amoxicillin · active · alg-amox-2 · first received 2027-02-10cascade:reactionManifestationTextRash
Allergy · Amoxicillin · Meridian Health System · alg-amox-2Allergy version · Amoxicillin · active · alg-amox-2 · first received 2027-02-10cascade:verificationStatusconfirmed
Allergy · Codeine · Meridian Health System · alg-codeine-1Allergy version · Codeine · active · alg-codeine-1 · first received 2026-09-01cascade:allergenCodehttps://ns.cascadeprotocol.org/codes/rxnorm/2670

queries/questions/record/What each version says.rq on GitHub ↗