Skip to content
Alpha: see what works today →
Menu

The vocabulary's tests

The newest run on main of the tests of cascade-vocabulary, read as a tree of package, capability and situation, each with what it is for and each case linked to its source. Failures come first within a capability, and the levels that hold one are open.

All 3772 cases pass · commit c2d3ad1 · · 225.90 s · the run 3769 passed 3 skipped

pytest over the shapes, queries, kits and features. For an agent: cascade-vocabulary.ctrf.json.

The vocabulary's own tests: what its queries, shapes, terms, vectors, fixtures, features, kits and people are held to, beside the rules a runtime runs. Each heading names the files it is about.

Glossary
ACMG
the American College of Medical Genetics and Genomics, whose five classes for a variant run from benign to pathogenic.
act (acts)
one thing done to a pod that writes files to it: an import, an entry session, a connection to a hospital's server, or a run of the matcher. prov:Activity
adapter (adapters)
the program that converts an export into records; `import` loads it on first use.
base address (base addresses)
the address of a hospital's server, under which each of its records has its own; a server and its records are named from it once it is normalised.
blank node
a node in a set of statements that has no IRI, only a name that holds within one reading of them, so it cannot be named the same way twice.
C-CDA
Consolidated Clinical Document Architecture: HL7's standard for the XML summary documents patient portals hand out.
canonical form
a set of statements written one fixed way (the W3C's RDFC-1.0), so that the same statements always give the same bytes and so the same hash.
ClinVar
the public archive, kept by the US National Library of Medicine, of how laboratories classify variants, from benign to pathogenic; one of the reference tables. cascade:VariantClassifications
ClinVar ID (ClinVar IDs)
the number ClinVar gives one variant, which a pod holds as `clinvarVariationId`.
clock
the time a device believes it is; a writer's clock can run behind or ahead of the real time, and the revisions it stamps then show it.
code IRI (code IRIs)
the IRI a code gets: its code system's stem, then the code, percent-encoded.
code system (code systems)
a published list of codes for one kind of thing, such as RxNorm for medicines, LOINC for lab tests and SNOMED CT for clinical findings.
coding (codings)
one code from one code system, as a record states it.
comparison (comparisons)
a query the matcher runs to find records that are one thing; a rule list names each by its path under `queries/matcher/`.
concept (concepts)
one value of a fixed list the vocabulary declares, such as "Likely pathogenic", with its own IRI and the names it goes by.
content vector (content vectors)
a naming vector whose input is a file: the name is a hash of the file's statements in canonical form, or of a document's bytes.
derivation (derivations)
a query whose answer a runtime adds to a pod's derived state, such as the one that says which version of a record is current.
derived state
what the derivations and one lens add to a pod's files: statements worked out from them, which the views and questions read.
dispense (dispenses)
a pharmacy's record of handing over a medication, apart from the prescription it fills.
download (downloads)
a file of a person's records as a hospital's server or portal gave it, before any import: FHIR resources in JSON, or a C-CDA document.
engine (engines)
a program that runs SPARQL; the tests run every query on two, Oxigraph and rdflib.
example (examples)
one scenario of a feature: a few lines beginning Given, When or Then, which a runtime runs.
feature (features)
a file of rules and examples in Gherkin, the plain-text format Cucumber reads; the rules of a pod are written as features.
FHIR
Fast Healthcare Interoperability Resources: HL7's standard for health records as JSON. https://hl7.org/fhir/R4/
fixture (fixtures)
a small hand-made pod under `tests/fixtures/`, with a manifest of the rows that queries give over it; each shows one behaviour.
flatten (flattened)
to write a list as its count and then its members in sorted order, so that a query takes the list as plain values.
focus node (focus nodes)
in SHACL, a thing a shape is checked against.
graph (graphs)
a set of statements read together as one, such as the statements of a file.
group (groups)
in SPARQL, the patterns between one pair of braces.
HGVS
the Human Genome Variation Society's standard way to write a variant, such as `NM_000249.4:c.2042C>T`.
HL7
Health Level Seven, the body that publishes FHIR, C-CDA and the code systems they use.
initial binding
a value an engine is handed for a query's variable before it runs, such as ?record; an engine that cannot take one is given the same rows as a VALUES block written into the query's text.
IRI (IRIs)
a web-style identifier, such as `https://ns.cascadeprotocol.org/cascade#Record`; every term and every record is named by one.
join (joins, joined)
in a query, to put two patterns together on a variable they share, so a value found by one is looked for in the other.
judgment (judgments, judge, judges, judged)
a conclusion about records, made by a person or by a machine. cascade:Judgment
kind (kinds)
of record: what a record is, such as an allergy or a lab result; `queries/derivations/records.rq` lists them. Of question: `entry`, `record`, `judgment` or `profile`, the one thing a question outside `pod` is about.
kit (kits)
a story and the exports it uses, which the vocabulary carries for testing, such as `alex-rivera`.
label (labels)
a tag a GitHub repository puts on its issues to group them, such as `red-main`.
layout
`runtime/pod-layout.ttl`: the file that says where in a pod each class of thing is kept.
lens (lenses)
a choice of which judgments count when a question is answered: `everyday` is the default, and `export` is stricter, for records sent elsewhere.
literal (literals)
a value written as text in a statement, such as a number, a date or a name, as against an IRI, which names a thing.
manifest (manifests)
a Turtle file listing tests in the W3C's test vocabulary: for a fixture, each query and the rows it must give; for the shape cases, each file and what validating it reports.
matcher (matchers)
the part of a runtime that compares a pod's records and writes a Same for those its rules find to be one thing, such as one allergy reported by two sources. cascade:CascadeMatcher
member (members)
one thing that a group of things holds: a code of a panel, a concept of a list, a record of an entry.
named question (named questions)
a query the vocabulary carries under a name, such as `pod/My active allergies`.
namespace (namespaces)
the common beginning of a vocabulary's IRIs, such as `https://ns.cascadeprotocol.org/cascade#`.
naming rule (naming rules)
a query the vocabulary publishes that gives the name of a thing from what it is made from, such as a record's name from its address on a server.
naming vector (naming vectors)
a worked example of one naming rule under `tests/vectors/naming/`: its inputs and the name they give.
ontology file (ontology files)
a Turtle file under `ontologies/` that declares terms.
Oxigraph
one of the two engines the tests run every query on, with rdflib; a runtime may use either.
page template (page templates)
the address of a code's page on its publisher's site, with `{code}` where the code goes; an app fills it to link a code.
pathogenic
causing disease: the strongest of the ACMG classes for a variant, with "Likely pathogenic" just below it and "Benign" at the other end.
person (people)
one of the made-up patients under `people/`: a `person.json`, and the files each hospital holds about them.
phrase (phrases)
the wording of a Given, a When or a Then, with its parameters in braces; `runtime/steps.md` lists every one a feature may use.
placeholder (placeholders)
a stand-in name a query gives a view entry, `urn:cascade:entry:` and a hash, until a runtime writes the entry's real name.
placement (placements)
one line of the layout: a class of thing and the file or folder a pod keeps it in.
planted case (planted cases)
a difficulty put into a kit's data on purpose, numbered such as P7, with a rule and an example that show how a pod handles it.
pod (pods)
one person's records, and what that person has said about them, kept as files in one folder.
position (positions)
a derivation's place in the order a runtime runs them, a number the root crate gives it.
prefix (prefixes)
a short name a file declares for a namespace, such as `cascade:`.
property (properties)
a named link from a thing to a value or to another thing, such as `cascade:workflowStatus`; a statement is a thing, a property and a value.
prose
the comment a query file opens with, saying what its rows are; the site shows it beside the query.
PROV
the W3C's vocabulary for saying who made a thing, when and from what.
pull (pulls, pulled)
one fetch of a person's records from a hospital's server into a pod.
pull request (pull requests)
a proposed change to a GitHub repository, which is merged once it has been checked.
rdflib
one of the two engines the tests run every query on, with Oxigraph; a runtime may use either.
record (records)
one thing said about a person's health, such as an allergy, a medication or a lab result. cascade:Record
reference implementation
`tests/naming.py`: one function for each naming rule, which the vectors are worked out by and other implementations are compared with.
reference tables (reference table)
public code lists, such as RxNorm for medicines, that tell a runtime when two codes mean one thing. cascade:ReferenceSeries
review status
ClinVar's statement of how well a classification is supported, such as `criteria provided, multiple submitters, no conflicts`. cascade:clinvarReviewStatus
revise (revises, revised, revising)
of a table version, to follow an earlier version of its series and take its place for readers; a first version revises none.
root crate
`ro-crate-metadata.json`, the file at the vocabulary's root that lists its files in the RO-Crate format.
row (rows)
one line of a table: in a reference table, one statement of what a code maps to; in the answer to a query, one set of values it returns.
row shape (row shapes)
the shape a table kind names for its rows: what one row of that kind must state.
rule (rules)
a numbered requirement in the vocabulary that every runtime must meet, such as A14 in `runtime/arrivals.feature`; a heading on this page links the rules its API reaches.
rule list (rule lists)
the vocabulary's list of what the matcher compares, each line naming a query and the table kind it reads; it has versions, as a reference table has. cascade:RuleListRow
runtime (runtimes)
software that reads and writes pods as the vocabulary requires.
sandbox story (sandbox stories)
a made-up patient at a demo hospital whose records were written to show one outcome, such as a lab result that falls after a medication starts, with that outcome written down beside them.
saved output
the records an adapter made of a kit's download, kept in the kit beside the download.
scripted input
the files an example or a kit starts from before anything runs: a person's downloads and entries, and any pod files it begins with.
section (sections)
a part of a C-CDA document with a title, such as Allergies: text for a person to read, and coded statements.
series
one of the reference tables across its versions, such as RxNorm's product ingredients. cascade:ReferenceSeries
server (servers)
a hospital's or portal's computer that hands out a person's records over the web, each at an address.
server vector (server vectors)
a worked example of a naming rule for a server or a record pulled from one: its inputs and the name they give.
set hash (set hashes)
one hash of all the files a pod holds, made so that adding or removing a file updates it without reading the rest.
severity
how serious a result of a shape is, which the shape fixes: a violation, a warning or an information.
shape case (shape cases)
a small Turtle file under `tests/shape-cases/`, valid or broken in one way, with what validating it reports.
shapes
the vocabulary's requirements on what a record, a judgment or a file of a pod must state, written in SHACL, the W3C language for checking data. https://www.w3.org/TR/shacl/
snapshot (snapshots)
the set of files a pod held as one act left it, which names the snapshot before it as a git commit names its parent. cascade:Snapshot
source address (source addresses)
the web address a record was fetched from on a server, kept on the record as `cascade:sourceUrl`; its name is made from it.
SPARQL
the W3C query language for data written as statements, as Turtle writes them. https://www.w3.org/TR/sparql11-query/
stem (stems)
the beginning of every code IRI of one code system, such as `http://snomed.info/id/`; the vocabulary declares one for each.
sub-select (sub-selects)
a SELECT written inside another query's group.
superclass (superclasses)
a class that another class is a kind of: every `cascade:PatientProfile` is also a `prov:Entity`.
symmetric property (symmetric properties)
a term declared to hold both ways: if A is the same as B, B is the same as A.
system URI (system URIs)
the URI by which FHIR and C-CDA name a code system, such as `http://loinc.org`; a source states a code with it.
table kind (table kinds)
what a reference table's rows say, such as product ingredients or vaccine groups; the vocabulary declares each kind. cascade:TableKind
table version (table versions)
one release of a series of the reference tables, named from the series, the version it revises and its rows.
term (terms)
one word the vocabulary defines, named by an IRI, a web-style identifier such as `https://ns.cascadeprotocol.org/cascade#allergenName`.
triple (triples)
one statement: a subject, a property and a value.
Turtle
a W3C text format for writing statements in the vocabulary's terms. https://www.w3.org/TR/turtle/
variant (variants)
a difference in one of a person's genes from the reference sequence, as a genetic test reports it. cascade:GeneticVariantFinding
vector (vectors)
a worked example kept in a file, with the answer a runtime or an adapter must give for it, such as the naming, snapshot, code and row vectors here.
view (views)
a pod's records of one kind, such as medications, as its judgments leave them: one line for each thing however many sources reported it. A named question such as `pod/My medication history` returns a view's rows. cascade:View
view entry (view entries, entry, entries)
one thing in a view, such as one medication or one lab result: the records that are one thing, shown as one. A row names it in `entry`, by an IRI that ends in `#` and 64 hexadecimal digits. cascade:inEntry
vocabulary (vocabularies)
cascade-vocabulary, the project that defines the words health data is written in, the requirements every pod meets, and a set of ready-made questions. https://ns.cascadeprotocol.org/cascade#
Build and packaging 171 passed 2 skipped