Skip to content
Alpha: see what works today →
Menu

View

clinical/medications.ttl

https://pod.priya-natarajan.example/clinical/medications.ttl

A view is a file the build writes. An app reads it to show a list, and never needs to know about records, revisions or judgments. Nobody edits a view: delete it and the build writes the same file again from the pod's records and judgments. Below are the files that state it, the query that wrote it, and every entry it lists.

Which file states each thing

The store loads each file twice: into the default graph, which the other questions read, and into a graph named by its address, which GRAPH ?file reads. A file states a thing when it says something about it, or names it as the value of a statement: a patient profile has no file of its own, so the files that name it are where it is stated. Named marks a row for a file that names the thing, and rebuilt a view or the labels, which the build writes. Files the build did not write come first, and among them the file a thing arrived in, if it has one.

Only the rows whose ?thing is this one.

?file?named?rebuilt
settings/privateTypeIndex.ttltruefalse
clinical/medications.ttl pagefalsetrue

2 rows

The query: queries/questions/pod/Which file states each thing.rq on GitHub
PREFIX cascade: <https://ns.cascadeprotocol.org/cascade#>
PREFIX pim: <http://www.w3.org/ns/pim/space#>

SELECT DISTINCT ?thing ?file ?named ?rebuilt
WHERE {
  { { SELECT DISTINCT ?file ?thing
      WHERE {
        ?owner pim:storage ?root .
        GRAPH ?file { ?thing ?property ?value }
        FILTER (isIRI(?thing) && STRSTARTS(STR(?file), STR(?root)))
      } }
    BIND (false AS ?named)
    BIND (EXISTS { ?file a cascade:View } AS ?rebuilt) }
  UNION
  { { SELECT DISTINCT ?file ?thing
      WHERE {
        ?owner pim:storage ?root .
        GRAPH ?file { ?subject ?property ?thing }
        FILTER (isIRI(?thing) && STRSTARTS(STR(?file), STR(?root)))
      } }
    BIND (true AS ?named)
    BIND (EXISTS { ?file a cascade:View } AS ?rebuilt) }
}
ORDER BY ?thing ?rebuilt ?named ?file

The terms it uses: pim:storage, cascade:View.

Run it yourself, from the runtime's root:

npm run ask -- priya-natarajan "pod/Which file states each thing"

It prints the rows for every thing; this block keeps those whose ?thing is https://pod.priya-natarajan.example/clinical/medications.ttl.

Or in GraphDB, open the saved query pod/Which file states each thing in the repository priya-natarajan.

medications

Each entry takes the name, every RxNorm code, every NDC code, the code the source chose, the status and end date of the member chosen for status, the start of use and the day the prescription was written of the members chosen for each, the dosage text of its lead, and every intent a member states, so an entry joining a prescription and a list entry says both. It also says the lifecycle class of that status (cascade:lifecycle), so an app reads whether the medication is still taken without reading the status. Each member's current values are a node of the view of their own, named after the entry and the member, which says the member they came from, with the dosage text that member states and what it was given for: each condition's record it names (cascade:reasonCondition) and each code of its reason, whether in a system the vocabulary lists (cascade:reasonCode) or in another (cascade:reasonCodeInOtherSystem). An entry whose lead states no dosage text shows the one of the member the derivations chose (cascade:dosageFrom): none when no member states one. It shows the narrative text of its lead (what the lead's source wrote for it, such as a stop reason), and each member's node its own: an entry whose lead states none shows none, and the member that does shows it there. A time its source wrote short of the second keeps the node saying so (cascade:PaddedDateTime), named after the entry or the member's values and -padded-, so the view never shows a padded time as exact.

It wrote clinical/medications.ttl, 123 statements, after the derivations of the everyday lens had run.

The query: queries/views/medications.rq on GitHub
PREFIX cascade: <https://ns.cascadeprotocol.org/cascade#>
PREFIX pav: <http://purl.org/pav/>

CONSTRUCT {
  ?entry a cascade:PrescribedOrReportedMedication ;
    cascade:drugName ?name ;
    cascade:rxNormCode ?code ;
    cascade:ndcCode ?ndc ;
    cascade:userSelectedCode ?selected ;
    cascade:workflowStatus ?status ;
    cascade:lifecycle ?lifecycle ;
    cascade:dosageInstructionText ?dosageInstructionText ;
    cascade:narrativeText ?narrativeText ;
    cascade:medicationUseStartDate ?started ;
    cascade:prescriptionWrittenDate ?written ;
    cascade:medicationUseEndDate ?end ;
    cascade:prescribedOrReported ?intent ;
    cascade:leadMember ?lead ;
    cascade:statusFrom ?statusFrom ;
    cascade:entryMember ?record .
  ?entry cascade:memberCurrentValues ?memberValues .
  ?memberValues cascade:valuesOfMember ?member ;
    cascade:drugName ?memberDrugName ;
    cascade:rxNormCode ?memberRxNormCode ;
    cascade:ndcCode ?memberNdcCode ;
    cascade:userSelectedCode ?memberUserSelectedCode ;
    cascade:workflowStatus ?memberWorkflowStatus ;
    cascade:dosageInstructionText ?memberDosage ;
    cascade:narrativeText ?memberNarrativeText ;
    cascade:medicationUseStartDate ?memberMedicationUseStartDate ;
    cascade:prescriptionWrittenDate ?memberPrescriptionWrittenDate ;
    cascade:medicationUseEndDate ?memberMedicationUseEndDate ;
    cascade:prescribedOrReported ?memberPrescribedOrReported ;
    cascade:reasonCondition ?memberReasonCondition ;
    cascade:reasonCode ?memberReasonCode ;
    cascade:reasonCodeInOtherSystem ?memberReasonCodeInOtherSystem .
  ?entry cascade:paddedDateTime ?startedPadded .
  ?startedPadded cascade:paddedDateTimeProperty cascade:medicationUseStartDate ; cascade:timeAsWritten ?startedWritten .
  ?entry cascade:paddedDateTime ?writtenPadded .
  ?writtenPadded cascade:paddedDateTimeProperty cascade:prescriptionWrittenDate ; cascade:timeAsWritten ?writtenWritten .
  ?entry cascade:paddedDateTime ?endPadded .
  ?endPadded cascade:paddedDateTimeProperty cascade:medicationUseEndDate ; cascade:timeAsWritten ?endWritten .
  ?memberValues cascade:paddedDateTime ?memberPadded .
  ?memberPadded cascade:paddedDateTimeProperty ?memberPaddedProperty ; cascade:timeAsWritten ?memberWritten .
}
WHERE {
  { ?record a cascade:PrescribedOrReportedMedication ; cascade:inEntry ?entry .
    ?entry cascade:leadMember ?lead .
    OPTIONAL { ?lead pav:hasCurrentVersion/cascade:drugName ?name }
    OPTIONAL { ?lead pav:hasCurrentVersion/cascade:rxNormCode ?code }
    OPTIONAL { ?lead pav:hasCurrentVersion/cascade:ndcCode ?ndc }
    OPTIONAL { ?lead pav:hasCurrentVersion/cascade:userSelectedCode ?selected }
    OPTIONAL { ?lead pav:hasCurrentVersion/cascade:dosageInstructionText ?leadDosage }
    OPTIONAL { ?entry cascade:dosageFrom/pav:hasCurrentVersion/cascade:dosageInstructionText ?fromDosage }
    BIND (COALESCE(?leadDosage, ?fromDosage) AS ?dosageInstructionText)
    OPTIONAL { ?lead pav:hasCurrentVersion/cascade:narrativeText ?narrativeText }
    OPTIONAL { ?record pav:hasCurrentVersion/cascade:prescribedOrReported ?intent }
    OPTIONAL { ?entry cascade:statusFrom ?statusFrom .
               ?statusFrom pav:hasCurrentVersion/cascade:workflowStatus ?status }
    OPTIONAL { ?entry cascade:statusLifecycle ?lifecycle }
    OPTIONAL { ?entry cascade:statusFrom/pav:hasCurrentVersion/cascade:medicationUseEndDate ?end }
    OPTIONAL { ?entry cascade:medicationUseStartDateFrom/pav:hasCurrentVersion/cascade:medicationUseStartDate ?started }
    OPTIONAL { ?entry cascade:prescriptionWrittenDateFrom/pav:hasCurrentVersion/cascade:prescriptionWrittenDate ?written }
    OPTIONAL { ?entry cascade:medicationUseStartDateFrom/pav:hasCurrentVersion/cascade:paddedDateTime ?startedPaddedAt .
               ?startedPaddedAt cascade:paddedDateTimeProperty ?startedPaddedProperty ; cascade:timeAsWritten ?startedWritten
               FILTER (?startedPaddedProperty = cascade:medicationUseStartDate) }
    BIND (IF(BOUND(?startedWritten), IRI(CONCAT(STR(?entry), "-padded-medicationUseStartDate")), 1/0) AS ?startedPadded)
    OPTIONAL { ?entry cascade:prescriptionWrittenDateFrom/pav:hasCurrentVersion/cascade:paddedDateTime ?writtenPaddedAt .
               ?writtenPaddedAt cascade:paddedDateTimeProperty ?writtenPaddedProperty ; cascade:timeAsWritten ?writtenWritten
               FILTER (?writtenPaddedProperty = cascade:prescriptionWrittenDate) }
    BIND (IF(BOUND(?writtenWritten), IRI(CONCAT(STR(?entry), "-padded-prescriptionWrittenDate")), 1/0) AS ?writtenPadded)
    OPTIONAL { ?entry cascade:statusFrom/pav:hasCurrentVersion/cascade:paddedDateTime ?endPaddedAt .
               ?endPaddedAt cascade:paddedDateTimeProperty ?endPaddedProperty ; cascade:timeAsWritten ?endWritten
               FILTER (?endPaddedProperty = cascade:medicationUseEndDate) }
    BIND (IF(BOUND(?endWritten), IRI(CONCAT(STR(?entry), "-padded-medicationUseEndDate")), 1/0) AS ?endPadded) }
  UNION
  { ?member a cascade:PrescribedOrReportedMedication ; cascade:inEntry ?entry ; pav:hasCurrentVersion ?memberVersion .
    BIND (IRI(CONCAT(STR(?entry), "-", SHA256(STR(?member)))) AS ?memberValues)
    OPTIONAL { ?memberVersion cascade:drugName ?memberDrugName }
    OPTIONAL { ?memberVersion cascade:rxNormCode ?memberRxNormCode }
    OPTIONAL { ?memberVersion cascade:ndcCode ?memberNdcCode }
    OPTIONAL { ?memberVersion cascade:userSelectedCode ?memberUserSelectedCode }
    OPTIONAL { ?memberVersion cascade:workflowStatus ?memberWorkflowStatus }
    OPTIONAL { ?memberVersion cascade:dosageInstructionText ?memberDosage }
    OPTIONAL { ?memberVersion cascade:narrativeText ?memberNarrativeText }
    OPTIONAL { ?memberVersion cascade:medicationUseStartDate ?memberMedicationUseStartDate }
    OPTIONAL { ?memberVersion cascade:prescriptionWrittenDate ?memberPrescriptionWrittenDate }
    OPTIONAL { ?memberVersion cascade:medicationUseEndDate ?memberMedicationUseEndDate }
    OPTIONAL { ?memberVersion cascade:prescribedOrReported ?memberPrescribedOrReported }
    OPTIONAL { ?memberVersion cascade:reasonCondition ?memberReasonCondition }
    OPTIONAL { ?memberVersion cascade:reasonCode ?memberReasonCode }
    OPTIONAL { ?memberVersion cascade:reasonCodeInOtherSystem ?memberReasonCodeInOtherSystem }
    OPTIONAL { ?memberVersion cascade:paddedDateTime ?memberPaddedAt .
               ?memberPaddedAt cascade:paddedDateTimeProperty ?memberPaddedProperty ; cascade:timeAsWritten ?memberWritten }
    BIND (IF(BOUND(?memberWritten), IRI(CONCAT(STR(?memberValues), "-padded-", STRAFTER(STR(?memberPaddedProperty), "#"))), 1/0)
          AS ?memberPadded) }
}

The terms it uses: cascade:PrescribedOrReportedMedication, cascade:drugName, cascade:rxNormCode, cascade:ndcCode, cascade:userSelectedCode, cascade:workflowStatus, cascade:lifecycle, cascade:dosageInstructionText, cascade:narrativeText, cascade:medicationUseStartDate, cascade:prescriptionWrittenDate, cascade:medicationUseEndDate, cascade:prescribedOrReported, cascade:leadMember, cascade:statusFrom, cascade:entryMember, cascade:memberCurrentValues, cascade:valuesOfMember, cascade:reasonCondition, cascade:reasonCode, cascade:reasonCodeInOtherSystem, cascade:paddedDateTime, cascade:paddedDateTimeProperty, cascade:timeAsWritten, cascade:inEntry, pav:hasCurrentVersion, cascade:dosageFrom, cascade:statusLifecycle, cascade:medicationUseStartDateFrom, cascade:prescriptionWrittenDateFrom.

Which view lists each kind

An app finds a Solid pod's data through its type index: each registration names a type and the file that lists things of that type. Here each of those files is a view, and the entries are the things it lists. A view is never edited by hand; the build writes it from the records and the judgments.

Only the rows whose ?view is this one.

1 row

The query: queries/questions/pod/Which view lists each kind.rq on GitHub
PREFIX cascade: <https://ns.cascadeprotocol.org/cascade#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX solid: <http://www.w3.org/ns/solid/terms#>

SELECT ?title ?type ?view (COUNT(DISTINCT ?entry) AS ?entries)
WHERE {
  ?registration a solid:TypeRegistration ; solid:forClass ?type ; solid:instance ?view ; dct:title ?title .
  OPTIONAL { ?entry a ?type ; cascade:entryMember [] }
}
GROUP BY ?title ?type ?view
ORDER BY ?title ?view

The terms it uses: solid:TypeRegistration, solid:forClass, solid:instance, dct:title, cascade:entryMember.

Run it yourself, from the runtime's root:

npm run ask -- priya-natarajan "pod/Which view lists each kind"

It prints the rows for every view; this block keeps those whose ?view is https://pod.priya-natarajan.example/clinical/medications.ttl.

Or in GraphDB, open the saved query pod/Which view lists each kind in the repository priya-natarajan.

What it shows

What each entry shows: every value its view states of it and every value its members' current versions state of the fields the view shows, each with From, the member whose current version states it, and Lead, whether that member is the entry's lead (cascade:leadMember), whose values come first. An entry is what an app shows: one allergy, one condition, one vaccination; no merged record is stored, so the view holds each member's current values as a node of its own (cascade:memberCurrentValues) and this reads the view alone. The view takes the entry's name and codes from its lead, and its status and dates from the members the derivations chose for them (cascade:statusFrom, cascade:dateFrom and, for a medication, cascade:medicationUseStartDateFrom, cascade:prescriptionWrittenDateFrom and cascade:dosageFrom, and for an allergy cascade:allergyCategoryFrom and cascade:onsetDateFrom). A value no member states, such as the highest criticality among them, has no From. A padded time is shown as the time, and a reference range as its text, its bounds being nodes of the view of their own; the node saying a time was written short of the second is no value of its own.

Only the rows whose ?view is this one.

?entry?field?value?from?lead
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01rdf:typeprescribed or reported medication cascade:PrescribedOrReportedMedication
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01dosage instruction text cascade:dosageInstructionTextTake 1 tablet by mouth once daily.Medication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · medrx-amlodipine-1 Turtletrue
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01drug name cascade:drugNameamlodipine 5 MG Oral TabletMedication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · medrx-amlodipine-1 Turtletrue
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01drug name cascade:drugNameamlodipine 5 MG Oral TabletMedication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtlefalse
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01entry member cascade:entryMemberMedication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · medrx-amlodipine-1 Turtle
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01entry member cascade:entryMemberMedication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtle
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01lead member cascade:leadMember termMedication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · medrx-amlodipine-1 Turtle
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01lifecycle cascade:lifecyclecascade:MedicationActive
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01medication use start date cascade:medicationUseStartDate2025-04-01Medication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtlefalse
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01narrative text cascade:narrativeTextamlodipine 5 MG Oral Tablet Take 1 tablet by mouth once daily. April 1, 2025 ActiveMedication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtlefalse
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01prescribed or reported cascade:prescribedOrReportedprescribedMedication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · medrx-amlodipine-1 Turtletrue
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01prescribed or reported cascade:prescribedOrReportedreportedUseMedication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtlefalse
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01prescription written date cascade:prescriptionWrittenDate2025-04-01Medication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · medrx-amlodipine-1 Turtletrue
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01RxNorm code cascade:rxNormCodeRxNorm 197361Medication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · medrx-amlodipine-1 Turtletrue
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01RxNorm code cascade:rxNormCodeRxNorm 197361Medication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtlefalse
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01status from cascade:statusFrom termMedication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · medrx-amlodipine-1 Turtle
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01workflow status cascade:workflowStatusactiveMedication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · medrx-amlodipine-1 Turtletrue
Medication entry · amlodipine 5 MG Oral Tablet · 2025-04-01workflow status cascade:workflowStatusactiveMedication · amlodipine 5 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtlefalse
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15rdf:typeprescribed or reported medication cascade:PrescribedOrReportedMedication
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15drug name cascade:drugNamefluticasone propionate 50 MCG/ACTUAT Nasal SprayMedication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-08-12 Turtletrue
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15drug name cascade:drugNamefluticasone propionate 50 MCG/ACTUAT Nasal SprayMedication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-05-20 Turtlefalse
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15entry member cascade:entryMemberMedication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-05-20 Turtle
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15entry member cascade:entryMemberMedication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-08-12 Turtle
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15lead member cascade:leadMember termMedication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-08-12 Turtle
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15lifecycle cascade:lifecyclecascade:MedicationStopped
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15medication use start date cascade:medicationUseStartDate2024-10-15Medication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-08-12 Turtletrue
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15medication use start date cascade:medicationUseStartDate2024-10-15Medication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-05-20 Turtlefalse
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15narrative text cascade:narrativeTextfluticasone propionate 50 MCG/ACTUAT Nasal Spray: 1 spray in each nostril daily, from October 15, 2024; completedMedication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-08-12 Turtletrue
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15narrative text cascade:narrativeTextfluticasone propionate 50 MCG/ACTUAT Nasal Spray: 1 spray in each nostril daily, from October 15, 2024Medication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-05-20 Turtlefalse
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15prescribed or reported cascade:prescribedOrReportedreportedUseMedication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-08-12 Turtletrue
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15prescribed or reported cascade:prescribedOrReportedreportedUseMedication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-05-20 Turtlefalse
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15RxNorm code cascade:rxNormCodeRxNorm 1797907Medication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-08-12 Turtletrue
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15RxNorm code cascade:rxNormCodeRxNorm 1797907Medication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-05-20 Turtlefalse
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15status from cascade:statusFrom termMedication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-08-12 Turtle
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15workflow status cascade:workflowStatuscompletedMedication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-08-12 Turtletrue
Medication entry · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · 2024-10-15workflow status cascade:workflowStatusactiveMedication · fluticasone propionate 50 MCG/ACTUAT Nasal Spray · Fernhill Family Clinic · received 2025-05-20 Turtlefalse
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15rdf:typeprescribed or reported medication cascade:PrescribedOrReportedMedication
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15dosage instruction text cascade:dosageInstructionTextTake 1 tablet by mouth once daily.Medication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · medrx-lisinopril-1 Turtlefalse
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15drug name cascade:drugNamelisinopril 10 MG Oral TabletMedication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtletrue
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15drug name cascade:drugNamelisinopril 10 MG Oral TabletMedication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · medrx-lisinopril-1 Turtlefalse
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15entry member cascade:entryMemberMedication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · medrx-lisinopril-1 Turtle
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15entry member cascade:entryMemberMedication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtle
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15lead member cascade:leadMember termMedication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtle
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15lifecycle cascade:lifecyclecascade:MedicationActive
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15medication use start date cascade:medicationUseStartDate2023-06-15Medication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtletrue
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15narrative text cascade:narrativeTextlisinopril 10 MG Oral Tablet Take 1 tablet by mouth once daily. June 15, 2023 ActiveMedication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtletrue
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15prescribed or reported cascade:prescribedOrReportedreportedUseMedication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtletrue
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15prescribed or reported cascade:prescribedOrReportedprescribedMedication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · medrx-lisinopril-1 Turtlefalse
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15prescription written date cascade:prescriptionWrittenDate2023-06-15Medication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · medrx-lisinopril-1 Turtlefalse
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15RxNorm code cascade:rxNormCodeRxNorm 314076Medication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtletrue
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15RxNorm code cascade:rxNormCodeRxNorm 314076Medication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · medrx-lisinopril-1 Turtlefalse
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15status from cascade:statusFrom termMedication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtle
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15workflow status cascade:workflowStatusactiveMedication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · received 2025-04-03 Turtletrue
Medication entry · lisinopril 10 MG Oral Tablet · 2023-06-15workflow status cascade:workflowStatusactiveMedication · lisinopril 10 MG Oral Tablet · Kestrel Harbor Hospital · medrx-lisinopril-1 Turtlefalse
Medication entry · loratadine 10 MG Oral Tabletrdf:typeprescribed or reported medication cascade:PrescribedOrReportedMedication
Medication entry · loratadine 10 MG Oral Tabletdrug name cascade:drugNameloratadine 10 MG Oral TabletMedication · loratadine 10 MG Oral Tablet · own entry Turtletrue
Medication entry · loratadine 10 MG Oral Tabletdrug name cascade:drugNameClaritin 10 MG Oral TabletMedication · Claritin 10 MG Oral Tablet · Fernhill Family Clinic · received 2025-05-20 Turtlefalse
Medication entry · loratadine 10 MG Oral Tabletdrug name cascade:drugNameClaritin 10 MG Oral TabletMedication · Claritin 10 MG Oral Tablet · Fernhill Family Clinic · received 2025-08-12 Turtlefalse
Medication entry · loratadine 10 MG Oral Tabletentry member cascade:entryMemberMedication · loratadine 10 MG Oral Tablet · own entry Turtle
Medication entry · loratadine 10 MG Oral Tabletentry member cascade:entryMemberMedication · Claritin 10 MG Oral Tablet · Fernhill Family Clinic · received 2025-05-20 Turtle
Medication entry · loratadine 10 MG Oral Tabletentry member cascade:entryMemberMedication · Claritin 10 MG Oral Tablet · Fernhill Family Clinic · received 2025-08-12 Turtle
Medication entry · loratadine 10 MG Oral Tabletlead member cascade:leadMember termMedication · loratadine 10 MG Oral Tablet · own entry Turtle
Medication entry · loratadine 10 MG Oral Tabletlifecycle cascade:lifecyclecascade:MedicationActive
Medication entry · loratadine 10 MG Oral Tabletnarrative text cascade:narrativeTextClaritin 10 MG Oral Tablet: 1 tablet daily as needed; start date not recordedMedication · Claritin 10 MG Oral Tablet · Fernhill Family Clinic · received 2025-05-20 Turtlefalse
Medication entry · loratadine 10 MG Oral Tabletnarrative text cascade:narrativeTextClaritin 10 MG Oral Tablet: 1 tablet daily as needed; start date not recordedMedication · Claritin 10 MG Oral Tablet · Fernhill Family Clinic · received 2025-08-12 Turtlefalse
Medication entry · loratadine 10 MG Oral Tabletprescribed or reported cascade:prescribedOrReportedreportedUseMedication · loratadine 10 MG Oral Tablet · own entry Turtletrue
Medication entry · loratadine 10 MG Oral Tabletprescribed or reported cascade:prescribedOrReportedreportedUseMedication · Claritin 10 MG Oral Tablet · Fernhill Family Clinic · received 2025-05-20 Turtlefalse
Medication entry · loratadine 10 MG Oral Tabletprescribed or reported cascade:prescribedOrReportedreportedUseMedication · Claritin 10 MG Oral Tablet · Fernhill Family Clinic · received 2025-08-12 Turtlefalse
Medication entry · loratadine 10 MG Oral TabletRxNorm code cascade:rxNormCodeRxNorm 311372Medication · loratadine 10 MG Oral Tablet · own entry Turtletrue
Medication entry · loratadine 10 MG Oral TabletRxNorm code cascade:rxNormCodeRxNorm 206805Medication · Claritin 10 MG Oral Tablet · Fernhill Family Clinic · received 2025-05-20 Turtlefalse
Medication entry · loratadine 10 MG Oral TabletRxNorm code cascade:rxNormCodeRxNorm 206805Medication · Claritin 10 MG Oral Tablet · Fernhill Family Clinic · received 2025-08-12 Turtlefalse
Medication entry · loratadine 10 MG Oral Tabletstatus from cascade:statusFrom termMedication · Claritin 10 MG Oral Tablet · Fernhill Family Clinic · received 2025-08-12 Turtle
Medication entry · loratadine 10 MG Oral Tabletworkflow status cascade:workflowStatusactiveMedication · loratadine 10 MG Oral Tablet · own entry Turtletrue
Medication entry · loratadine 10 MG Oral Tabletworkflow status cascade:workflowStatusactiveMedication · Claritin 10 MG Oral Tablet · Fernhill Family Clinic · received 2025-05-20 Turtlefalse
Medication entry · loratadine 10 MG Oral Tabletworkflow status cascade:workflowStatusactiveMedication · Claritin 10 MG Oral Tablet · Fernhill Family Clinic · received 2025-08-12 Turtlefalse

75 rows

The query: queries/questions/entry/What it shows.rq on GitHub
PREFIX cascade: <https://ns.cascadeprotocol.org/cascade#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT DISTINCT ?entry ?entryLabel ?view ?field ?value ?valueLabel ?from ?fromLabel ?lead
WHERE {
  { GRAPH ?view { ?entry cascade:entryMember [] ; cascade:leadMember ?leader ; cascade:memberCurrentValues ?values .
                  ?values cascade:valuesOfMember ?from ; ?field ?value .
                  FILTER (?field NOT IN (cascade:valuesOfMember, cascade:paddedDateTime, cascade:referenceRangeLow, cascade:referenceRangeHigh)) }
    BIND (?from = ?leader AS ?lead)
    OPTIONAL { ?from rdfs:label ?fromLabel }
    OPTIONAL { ?entry rdfs:label ?entryLabel }
    OPTIONAL { ?value rdfs:label ?valueLabel } }
  UNION
  { GRAPH ?view { ?entry cascade:entryMember [] ; ?field ?value
                  FILTER (?field NOT IN (cascade:memberCurrentValues, cascade:paddedDateTime, cascade:referenceRangeLow, cascade:referenceRangeHigh))
                  FILTER NOT EXISTS { ?entry cascade:memberCurrentValues ?held . ?held ?field ?value } }
    OPTIONAL { ?entry rdfs:label ?entryLabel }
    OPTIONAL { ?value rdfs:label ?valueLabel } }
}
ORDER BY ?entryLabel ?entry ?field DESC(?lead) STR(?value) ?from

The terms it uses: cascade:entryMember, cascade:leadMember, cascade:memberCurrentValues, cascade:valuesOfMember, cascade:paddedDateTime, cascade:referenceRangeLow, cascade:referenceRangeHigh, rdfs:label.

Run it yourself, from the runtime's root:

npm run ask -- priya-natarajan "entry/What it shows"

It prints the rows for every view; this block keeps those whose ?view is https://pod.priya-natarajan.example/clinical/medications.ttl.

Or in GraphDB, open the saved query entry/What it shows in the repository priya-natarajan.