Skip to content
Alpha: see what works today →
Menu

Named question about profile

Which records name it

A record names its patient through its current version's cascade:patient. Each hospital names its own profile for the person.

The query

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

SELECT ?profile ?profileLabel ?record ?recordLabel
WHERE {
  ?record pav:hasCurrentVersion/cascade:patient ?profile .
  OPTIONAL { ?profile rdfs:label ?profileLabel }
  OPTIONAL { ?record rdfs:label ?recordLabel }
}
ORDER BY ?profileLabel ?profile ?recordLabel ?record

Terms it reads

pav:hasCurrentVersion · 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 26 rows, as Alex Rivera's explorer shows them. Every row of every question is in answers.json.

profilerecord
Patient profile · Larkspur Valley Health · first received 2026-10-14Allergy · Penicillin · Larkspur Valley Health · al-8237461
Patient profile · Larkspur Valley Health · first received 2026-10-14Allergy · Sulfamethoxazole · Larkspur Valley Health · al-8237462
Patient profile · Larkspur Valley Health · first received 2026-10-14Condition · Asthma · Larkspur Valley Health · pr-30018
Patient profile · Larkspur Valley Health · first received 2026-10-14Condition · Hypertension · Larkspur Valley Health · pr-30017
Patient profile · Larkspur Valley Health · first received 2026-10-14Immunization · Influenza, seasonal · Larkspur Valley Health · im-5501
Patient profile · Larkspur Valley Health · first received 2026-10-14Procedure · Colonoscopy · Larkspur Valley Health · px-55120
Patient profile · Larkspur Valley Health · first received 2027-03-18Allergy · Penicillin · Larkspur Valley Health · lv-alg-101
Patient profile · Larkspur Valley Health · first received 2027-03-18Allergy · Sulfamethoxazole · Larkspur Valley Health · lv-alg-102
Patient profile · Larkspur Valley Health · first received 2027-03-18Condition · Asthma · Larkspur Valley Health · lv-cond-202
Patient profile · Larkspur Valley Health · first received 2027-03-18Condition · Essential hypertension · Larkspur Valley Health · lv-cond-201

queries/questions/profile/Which records name it.rq on GitHub ↗