# The Cascade vocabulary, https://ns.cascadeprotocol.org/cascade#: every term a Cascade pod file carries or a name in it
# is computed from.
#
# Licensed Apache-2.0 AND CC-BY-4.0, as NOTICE says. A term copied from another vocabulary carries that vocabulary's
# licence as its dct:license.

@prefix cascade: <https://ns.cascadeprotocol.org/cascade#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix oa: <http://www.w3.org/ns/oa#> .
@prefix obo: <http://purl.obolibrary.org/obo/> .
@prefix org: <http://www.w3.org/ns/org#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix pav: <http://purl.org/pav/> .
@prefix pim: <http://www.w3.org/ns/pim/space#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix semapv: <https://w3id.org/semapv/vocab/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix solid: <http://www.w3.org/ns/solid/terms#> .
@prefix sssom: <https://w3id.org/sssom/> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://ns.cascadeprotocol.org/cascade#> a owl:Ontology ;
    rdfs:label "Cascade vocabulary"@en ;
    dct:license <https://spdx.org/licenses/Apache-2.0> , <https://spdx.org/licenses/CC-BY-4.0> .

# The person, the pod and its views

cascade:PatientProfile a owl:Class ;
    rdfs:label "patient profile"@en ;
    rdfs:comment "The person a pod is about, as one source describes them, as FHIR's Patient or a C-CDA document's recordTarget/patientRole: each version holds that source's name, date of birth, administrative gender and death."@en ;
    rdfs:subClassOf prov:Entity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/patient-definitions.html#Patient> .

cascade:dateOfBirth a owl:DatatypeProperty ;
    rdfs:label "date of birth"@en ;
    rdfs:comment "Of a version of a patient profile, the person's date of birth, as FHIR's Patient.birthDate or C-CDA's patient/birthTime, typed by the precision the source wrote it to: a year an xsd:gYear, a year and month an xsd:gYearMonth, a day an xsd:date, a time an xsd:dateTime."@en ;
    rdfs:domain cascade:PatientProfile ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/patient-definitions.html#Patient.birthDate> .

cascade:sourceRecordId a owl:DatatypeProperty ;
    rdfs:label "source record ID"@en ;
    rdfs:comment "Of a record, the identifier its source gave it: FHIR's Resource.id; the first id of a C-CDA entry's statement, as its root and extension joined by a colon, or its root alone where it has no extension. A source that gives none leaves it absent."@en ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/resource-definitions.html#Resource.id> .

cascade:entryMember a owl:ObjectProperty ;
    rdfs:label "entry member"@en ;
    rdfs:comment "Of an entry in a view, a record it shows, one for each member: the records a Same judgment joins, or the one record an entry stands for alone. The inverse of cascade:inEntry. It states no domain, because an entry is typed only by its kind and no class is every view's entry."@en ;
    rdfs:range cascade:Record ;
    rdfs:subPropertyOf prov:wasDerivedFrom .

cascade:PodManifest a owl:Class ;
    rdfs:label "pod manifest"@en ;
    rdfs:comment "The pod's description of itself, in manifest.ttl, written by the runtime that built it: its title, when it was created, and the activity and software that built it, with the snapshot that activity used and the hash of what it read."@en ;
    rdfs:subClassOf dcat:Dataset , prov:Entity .

cascade:buildInputsHash a owl:DatatypeProperty ;
    rdfs:label "build inputs hash"@en ;
    rdfs:comment "Of the activity that built a pod's views, a hash of everything it read: the pod's files it read, the derivations, queries and layout it ran, what the tables it was read with hold of the versions the pod files, and the runtime that ran it."@en ;
    rdfs:domain prov:Activity ;
    rdfs:range xsd:string .

foaf:givenName a owl:DatatypeProperty ;
    rdfs:isDefinedBy <http://xmlns.com/foaf/0.1/> ;
    dct:source <http://xmlns.com/foaf/spec/20140114.rdf> ;
    dct:license <http://creativecommons.org/licenses/by/1.0/> .

foaf:familyName a owl:DatatypeProperty ;
    rdfs:isDefinedBy <http://xmlns.com/foaf/0.1/> ;
    dct:source <http://xmlns.com/foaf/spec/20140114.rdf> ;
    dct:license <http://creativecommons.org/licenses/by/1.0/> .

foaf:name a owl:DatatypeProperty ;
    rdfs:isDefinedBy <http://xmlns.com/foaf/0.1/> ;
    dct:source <http://xmlns.com/foaf/spec/20140114.rdf> ;
    dct:license <http://creativecommons.org/licenses/by/1.0/> .

# The person; decisions/the-person.md

cascade:administrativeGender a owl:DatatypeProperty ;
    rdfs:label "administrative gender"@en ;
    rdfs:comment "Of a version of a patient profile, the gender the person is considered to have for administration and record keeping, as FHIR's Patient.gender holds it, or a C-CDA administrativeGenderCode as C-CDA on FHIR's concept map maps it into FHIR's codes. It is not the person's sex, which no term holds yet."@en ;
    rdfs:domain cascade:PatientProfile ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/patient-definitions.html#Patient.gender> .

cascade:deceased a owl:DatatypeProperty ;
    rdfs:label "deceased"@en ;
    rdfs:comment "Of a version of a patient profile, whether its source says the person has died: true where either element of FHIR's Patient.deceased[x], or C-CDA's sdtc:deceasedInd or sdtc:deceasedTime, says so; false where the source says they have not. Absent, the source says nothing either way."@en ;
    rdfs:domain cascade:PatientProfile ;
    rdfs:range xsd:boolean ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/patient-definitions.html#Patient.deceased_x_> .

cascade:dateOfDeath a owl:DatatypeProperty ;
    rdfs:label "date of death"@en ;
    rdfs:comment "Of a version of a patient profile, when the person died, as FHIR's Patient.deceasedDateTime or C-CDA's sdtc:deceasedTime gives it."@en ;
    rdfs:domain cascade:PatientProfile ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/patient-definitions.html#Patient.deceased_x_> .

# Allergies, conditions, vaccinations and lab results

cascade:AllergyOrIntolerance a owl:Class ;
    rdfs:label "allergy or intolerance"@en ;
    rdfs:comment "A substance the person is allergic to or cannot tolerate, as FHIR's AllergyIntolerance or a C-CDA Allergy - Intolerance Observation: the substance, the reactions it causes, its type, category, criticality and severity, its clinical and verification status, and its onset."@en ;
    rdfs:subClassOf prov:Entity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/allergyintolerance-definitions.html#AllergyIntolerance> .

cascade:ProblemOrDiagnosis a owl:Class ;
    rdfs:label "problem or diagnosis"@en ;
    rdfs:comment "A condition the person has or had, an item of a problem list or a diagnosis made at an encounter, as FHIR's Condition or a C-CDA Problem Observation inside a Problem Concern Act: its name and codes, its category, its clinical and verification status, and when it began and ended."@en ;
    rdfs:subClassOf prov:Entity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/condition-definitions.html#Condition> .

cascade:Vaccination a owl:Class ;
    rdfs:label "vaccination"@en ;
    rdfs:comment "A vaccine given to the person, or recorded as not given, as FHIR's Immunization or a C-CDA Immunization Activity: the vaccine's name and CVX code, when it was given, its lot, dose, route and site, and its status."@en ;
    rdfs:subClassOf prov:Entity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/immunization-definitions.html#Immunization> .

cascade:allergenName a owl:DatatypeProperty ;
    rdfs:label "allergen name"@en ;
    rdfs:comment "Of a version of an allergy or intolerance, the substance as the source names it, as FHIR's AllergyIntolerance.code, its text or else its first coding's display, or a C-CDA allergy's participant playingEntity, its code's original text, its name or its code's displayName."@en ;
    rdfs:domain cascade:AllergyOrIntolerance ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/allergyintolerance-definitions.html#AllergyIntolerance.code> .

cascade:allergenCode a owl:ObjectProperty ;
    rdfs:label "allergen code"@en ;
    rdfs:comment "Of a version of an allergy or intolerance, a code for the substance, as a coding of FHIR's AllergyIntolerance.code or a C-CDA allergy's playingEntity code and its translations: a code IRI, one for each coding the source gave in a system with an IRI form, such as RxNorm, SNOMED CT or UNII."@en ;
    rdfs:domain cascade:AllergyOrIntolerance ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/allergyintolerance-definitions.html#AllergyIntolerance.code> .

cascade:reactionManifestationText a owl:DatatypeProperty ;
    rdfs:label "reaction manifestation text"@en ;
    rdfs:comment "Of a version of an allergy or intolerance, a sign or symptom of a reaction to it as the source wrote it, as the text of FHIR's AllergyIntolerance.reaction.manifestation or a C-CDA Reaction Observation's value displayName, one for each manifestation of each reaction."@en ;
    rdfs:domain cascade:AllergyOrIntolerance ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/allergyintolerance-definitions.html#AllergyIntolerance.reaction.manifestation> .

cascade:reactionManifestationCode a owl:ObjectProperty ;
    rdfs:label "reaction manifestation code"@en ;
    rdfs:comment "Of a version of an allergy or intolerance, a code for a sign or symptom of a reaction to it, as a SNOMED CT coding of FHIR's AllergyIntolerance.reaction.manifestation or a C-CDA Reaction Observation's value: a code IRI, one for each manifestation of each reaction."@en ;
    rdfs:domain cascade:AllergyOrIntolerance ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/allergyintolerance-definitions.html#AllergyIntolerance.reaction.manifestation> .

cascade:allergySeverity a owl:DatatypeProperty ;
    rdfs:label "allergy severity"@en ;
    rdfs:comment "Of a version of an allergy or intolerance, how severe its reaction was: mild, moderate or severe, as FHIR's AllergyIntolerance.reaction.severity of the first reaction, or a C-CDA Severity Observation's SNOMED CT code, of the allergy or else of its first reaction, mapped into those codes."@en ;
    rdfs:domain cascade:AllergyOrIntolerance ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/allergyintolerance-definitions.html#AllergyIntolerance.reaction.severity> .

cascade:allergyCategory a owl:DatatypeProperty ;
    rdfs:label "allergy category"@en ;
    rdfs:comment "Of a version of an allergy or intolerance, what kind of substance causes it: food, medication, environment or biologic, as the first of FHIR's AllergyIntolerance.category, or mapped from the SNOMED CT code of a C-CDA allergy's value."@en ;
    rdfs:domain cascade:AllergyOrIntolerance ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/allergyintolerance-definitions.html#AllergyIntolerance.category> .

cascade:onsetDate a owl:DatatypeProperty ;
    rdfs:label "onset date"@en ;
    rdfs:comment "Of a version of an allergy or intolerance or of a condition, when it began, as FHIR's AllergyIntolerance.onsetDateTime or Condition.onsetDateTime, or a C-CDA observation's effectiveTime, its value or else its low, typed by the precision the source wrote it to. An onset given as an age, a period or a string is not held."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:ProblemOrDiagnosis cascade:AllergyOrIntolerance ) ] ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/allergyintolerance-definitions.html#AllergyIntolerance.onset_x_> , <https://hl7.org/fhir/R4/condition-definitions.html#Condition.onset_x_> .

cascade:addedNoteText a owl:DatatypeProperty ;
    rdfs:label "added note text"@en ;
    rdfs:comment "Of a version of an allergy or intolerance, a condition, a vaccination or a lab result, the text of one note a person added to it, as FHIR's note, one for each note. The text a source wrote for the record itself is cascade:narrativeText."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:LaboratoryTestResult cascade:ProblemOrDiagnosis cascade:AllergyOrIntolerance cascade:Vaccination ) ] ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/allergyintolerance-definitions.html#AllergyIntolerance.note> , <https://hl7.org/fhir/R4/condition-definitions.html#Condition.note> , <https://hl7.org/fhir/R4/immunization-definitions.html#Immunization.note> , <https://hl7.org/fhir/R4/observation-definitions.html#Observation.note> .

cascade:conditionName a owl:DatatypeProperty ;
    rdfs:label "condition name"@en ;
    rdfs:comment "Of a version of a condition, its name as the source wrote it, as FHIR's Condition.code, its text or else its first coding's display, or a C-CDA Problem Observation's value, its original text or its displayName."@en ;
    rdfs:domain cascade:ProblemOrDiagnosis ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/condition-definitions.html#Condition.code> .

cascade:clinicalStatus a owl:DatatypeProperty ;
    rdfs:label "clinical status"@en ;
    rdfs:comment "Of a version of an allergy or intolerance or of a condition, whether it is active now, as the code of FHIR's AllergyIntolerance.clinicalStatus or Condition.clinicalStatus: for an allergy active, inactive or resolved; for a condition also recurrence, relapse or remission. From C-CDA, an Allergy or Problem Status Observation's SNOMED CT code, or failing one its concern act's statusCode, mapped into those codes."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:AllergyOrIntolerance cascade:ProblemOrDiagnosis ) ] ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/allergyintolerance-definitions.html#AllergyIntolerance.clinicalStatus> , <https://hl7.org/fhir/R4/condition-definitions.html#Condition.clinicalStatus> .

cascade:workflowStatus a owl:DatatypeProperty ;
    rdfs:label "workflow status"@en ;
    rdfs:comment "Of a version, where the act or statement it records stands, as the status code FHIR gives the resource it is: Immunization.status, Procedure.status, Observation.status, MedicationRequest.status, MedicationStatement.status, MedicationDispense.status, DiagnosticReport.status or DocumentReference.status. Each kind's shape lists its codes. From C-CDA, an entry's statusCode mapped into them, or not-done for a vaccination or procedure the entry negates."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:Vaccination cascade:MedicalProcedure cascade:LaboratoryTestResult
        cascade:PrescribedOrReportedMedication cascade:GeneticVariantFinding cascade:VariantInterpretation
        cascade:DiagnosticReport cascade:ClinicalNoteOrDocument cascade:MedicationDispense ) ] ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/immunization-definitions.html#Immunization.status> , <https://hl7.org/fhir/R4/procedure-definitions.html#Procedure.status> , <https://hl7.org/fhir/R4/observation-definitions.html#Observation.status> , <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.status> , <https://hl7.org/fhir/R4/medicationstatement-definitions.html#MedicationStatement.status> , <https://hl7.org/fhir/R4/medicationdispense-definitions.html#MedicationDispense.status> , <https://hl7.org/fhir/R4/diagnosticreport-definitions.html#DiagnosticReport.status> , <https://hl7.org/fhir/R4/documentreference-definitions.html#DocumentReference.status> .

cascade:conditionCode a owl:ObjectProperty ;
    rdfs:label "condition code"@en ;
    rdfs:comment "Of a version of a condition, a code the source gave for it, as a coding of FHIR's Condition.code or a C-CDA Problem Observation's value and its translations: a code IRI, one for each such coding in a code system cascade:CodeSystem names, whichever the system is: ICD-10-CM, SNOMED CT, ICD-9-CM. A code in a system no cascade:CodeSystem names is a cascade:conditionCodeInOtherSystem."@en ;
    rdfs:domain cascade:ProblemOrDiagnosis ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/condition-definitions.html#Condition.code> .

cascade:conditionCodeInOtherSystem a owl:DatatypeProperty ;
    rdfs:label "condition code in another system"@en ;
    rdfs:comment "Of a version of a condition, a code the source gave for it in a system the vocabulary lists no IRI form for, as a literal typed by its Coding.system URI, as cascade:testCodeInOtherSystem is. A code in a system it does list one for, such as ICD-10-CM, ICD-9-CM or SNOMED CT, is a cascade:conditionCode IRI instead."@en ;
    rdfs:domain cascade:ProblemOrDiagnosis ;
    rdfs:range rdfs:Literal ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/condition-definitions.html#Condition.code> , <https://hl7.org/fhir/R4/datatypes-definitions.html#Coding.system> .

cascade:vaccineName a owl:DatatypeProperty ;
    rdfs:label "vaccine name"@en ;
    rdfs:comment "Of a version of a vaccination, the vaccine's name as the source wrote it, as FHIR's Immunization.vaccineCode, its text or else its first coding's display, or a C-CDA Immunization Activity's manufacturedMaterial code, its original text or its displayName."@en ;
    rdfs:domain cascade:Vaccination ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/immunization-definitions.html#Immunization.vaccineCode> .

cascade:vaccineCode a owl:ObjectProperty ;
    rdfs:label "vaccine code"@en ;
    rdfs:comment "Of a version of a vaccination, the vaccine's CVX code, as a coding of FHIR's Immunization.vaccineCode or a C-CDA manufacturedMaterial code or its translation: a code IRI."@en ;
    rdfs:domain cascade:Vaccination ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/immunization-definitions.html#Immunization.vaccineCode> .

cascade:vaccinationOccurrenceTime a owl:DatatypeProperty ;
    rdfs:label "vaccination occurrence time"@en ;
    rdfs:comment "Of a version of a vaccination, when the vaccine was given, as FHIR's Immunization.occurrenceDateTime or a C-CDA Immunization Activity's effectiveTime, its value or else its low, typed by the precision the source wrote it to."@en ;
    rdfs:domain cascade:Vaccination ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/immunization-definitions.html#Immunization.occurrence_x_> .

cascade:vaccineLotNumber a owl:DatatypeProperty ;
    rdfs:label "vaccine lot number"@en ;
    rdfs:comment "Of a version of a vaccination, the lot number of the vaccine given, as FHIR's Immunization.lotNumber or a C-CDA manufacturedMaterial's lotNumberText."@en ;
    rdfs:domain cascade:Vaccination ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/immunization-definitions.html#Immunization.lotNumber> .

cascade:vaccineDoseQuantityText a owl:DatatypeProperty ;
    rdfs:label "vaccine dose quantity text"@en ;
    rdfs:comment "Of a version of a vaccination, the amount of vaccine given, as FHIR's Immunization.doseQuantity or a C-CDA doseQuantity: its value and unit as one string, 0.5 mL, or its value alone where it has no unit."@en ;
    rdfs:domain cascade:Vaccination ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/immunization-definitions.html#Immunization.doseQuantity> .

cascade:vaccinationRouteText a owl:DatatypeProperty ;
    rdfs:label "vaccination route text"@en ;
    rdfs:comment "Of a version of a vaccination, how the vaccine entered the body, as the source names it: FHIR's Immunization.route, its text or else its first coding's display, or a C-CDA routeCode's displayName."@en ;
    rdfs:domain cascade:Vaccination ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/immunization-definitions.html#Immunization.route> .

cascade:vaccinationBodySiteText a owl:DatatypeProperty ;
    rdfs:label "vaccination body site text"@en ;
    rdfs:comment "Of a version of a vaccination, the body site the vaccine was given at, as the source names it: FHIR's Immunization.site, its text or else its first coding's display, or a C-CDA approachSiteCode's displayName."@en ;
    rdfs:domain cascade:Vaccination ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/immunization-definitions.html#Immunization.site> .

cascade:LaboratoryTestResult a owl:Class ;
    rdfs:label "laboratory test result"@en ;
    rdfs:comment "One result of a laboratory test, as a FHIR Observation in the laboratory category, or with no category and a LOINC code that is not a vital sign's, or a C-CDA Result Observation inside a Result Organizer: the test's name and codes, its value and unit, its reference range, the time it is about and its status. A vital sign is not one."@en ;
    rdfs:subClassOf prov:Entity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/observation-definitions.html#Observation> .

cascade:testName a owl:DatatypeProperty ;
    rdfs:label "test name"@en ;
    rdfs:comment "Of a version of a lab result, the test's name as the source wrote it, as FHIR's Observation.code, its text or else its first coding's display, or a C-CDA Result Observation's code, its original text or its displayName."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/observation-definitions.html#Observation.code> .

cascade:testCode a owl:ObjectProperty ;
    rdfs:label "test code"@en ;
    rdfs:comment "Of a version of a lab result, a LOINC or SNOMED CT code for its test, as a coding of FHIR's Observation.code or a C-CDA Result Observation's code and its translations: a code IRI, one for each. A code in another system is a cascade:testCodeInOtherSystem."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/observation-definitions.html#Observation.code> .

cascade:testCodeInOtherSystem a owl:DatatypeProperty ;
    rdfs:label "test code in another system"@en ;
    rdfs:comment "Of a version of a lab result, a code the source gave for its test in a system this kind has no property of its own for, as a literal typed by its Coding.system URI: the code as its lexical form, and as its datatype the URI cascade:codingSystemUri would hold, HL7 Terminology's preferred one where it registers one, else urn:oid: and the OID. One per coding, compared with sameTerm, never =. A LOINC or SNOMED CT code is a cascade:testCode IRI instead."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:range rdfs:Literal ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/observation-definitions.html#Observation.code> , <https://hl7.org/fhir/R4/datatypes-definitions.html#Coding.system> .

cascade:resultValueText a owl:DatatypeProperty ;
    rdfs:label "result value text"@en ;
    rdfs:comment "Of a version of a lab result, its value as one string, written only for a value that is words or a number the typed forms refuse: from FHIR, Observation.valueString or a valueCodeableConcept's text or first display, or the refused number written out; from C-CDA, a Result Observation's first value where it is an ST or a coded value, or the refused number as the document wrote it. A number the typed forms hold has no cascade:resultValueText: it is on the cascade:Quantity nodes cascade:resultValueKind says hold it."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/observation-definitions.html#Observation.value_x_> .

cascade:resultUnitText a owl:DatatypeProperty ;
    rdfs:label "result unit text"@en ;
    rdfs:comment "Of a version of a lab result, the unit of a number the typed forms refuse, as the source wrote it, beside that number in its cascade:resultValueText, and written only then: from FHIR, a valueQuantity's unit or else its code; from C-CDA, a PQ's or one-bound IVL_PQ's unit. A number the typed forms hold has no cascade:resultUnitText: its unit is its cascade:ucumUnit and cascade:unitText."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/observation-definitions.html#Observation.value_x_> .

cascade:referenceRangeText a owl:DatatypeProperty ;
    rdfs:label "reference range text"@en ;
    rdfs:comment "Of a version of a lab result, its first reference range as text, as FHIR's Observation.referenceRange or a C-CDA referenceRange's observationRange: the source's text for it, or else its bounds written out, low-high and the unit, >=low or <=high. The typed bounds of its normal range are cascade:referenceRangeLow and cascade:referenceRangeHigh."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/observation-definitions.html#Observation.referenceRange> .

cascade:resultClinicallyRelevantTime a owl:DatatypeProperty ;
    rdfs:label "result clinically relevant time"@en ;
    rdfs:comment "Of a version of a lab result, the time its value is about, as FHIR's Observation.effectiveDateTime, effectivePeriod start or effectiveInstant, or a C-CDA Result Observation's effectiveTime, its value or else its low, typed by the precision the source wrote it to. Not when the result was issued."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/observation-definitions.html#Observation.effective_x_> .

# Procedures and medications

cascade:MedicalProcedure a owl:Class ;
    rdfs:label "medical procedure"@en ;
    rdfs:comment "A procedure performed on the person, or recorded as not done, as FHIR's Procedure or a C-CDA Procedure Activity Procedure: its name and codes, when it was performed, and its status."@en ;
    rdfs:subClassOf prov:Entity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/procedure-definitions.html#Procedure> .

cascade:procedureName a owl:DatatypeProperty ;
    rdfs:label "procedure name"@en ;
    rdfs:comment "Of a version of a procedure, its name as the source wrote it, as FHIR's Procedure.code, its text or else its first coding's display, or a C-CDA procedure's code, its original text or its displayName."@en ;
    rdfs:domain cascade:MedicalProcedure ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/procedure-definitions.html#Procedure.code> .

cascade:procedureDate a owl:DatatypeProperty ;
    rdfs:label "procedure date"@en ;
    rdfs:comment "Of a version of a procedure, when it was performed, as FHIR's Procedure.performedDateTime or else the start of its performedPeriod, or a C-CDA procedure's effectiveTime, its value or else its low, typed by the precision the source wrote it to."@en ;
    rdfs:domain cascade:MedicalProcedure ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/procedure-definitions.html#Procedure.performed_x_> .

cascade:procedureCode a owl:ObjectProperty ;
    rdfs:label "procedure code"@en ;
    rdfs:comment "Of a version of a procedure, a code the source gave for it, as a coding of FHIR's Procedure.code or a C-CDA procedure's code and its translations: a code IRI, one for each such coding in a code system cascade:CodeSystem names, whichever the system is: SNOMED CT, CPT. A code in a system no cascade:CodeSystem names is a cascade:procedureCodeInOtherSystem."@en ;
    rdfs:domain cascade:MedicalProcedure ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/procedure-definitions.html#Procedure.code> .

cascade:procedureCodeInOtherSystem a owl:DatatypeProperty ;
    rdfs:label "procedure code in another system"@en ;
    rdfs:comment "Of a version of a procedure, a code the source gave for it in a system the vocabulary lists no IRI form for, such as HCPCS, ICD-10-PCS or CDT, as a literal typed by its Coding.system URI, as cascade:testCodeInOtherSystem is. A code in a system it does list one for, such as CPT, SNOMED CT or LOINC, is a cascade:procedureCode IRI instead."@en ;
    rdfs:domain cascade:MedicalProcedure ;
    rdfs:range rdfs:Literal ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/procedure-definitions.html#Procedure.code> , <https://hl7.org/fhir/R4/datatypes-definitions.html#Coding.system> .

cascade:verificationStatus a owl:DatatypeProperty ;
    rdfs:label "verification status"@en ;
    rdfs:comment "Of a version of an allergy or intolerance or of a condition, how certain the source is that it is real, as the code of FHIR's AllergyIntolerance.verificationStatus or Condition.verificationStatus, such as unconfirmed, confirmed or refuted. From C-CDA, refuted for a Problem Observation the entry negates, and otherwise absent."@en ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/allergyintolerance-definitions.html#AllergyIntolerance.verificationStatus> , <https://hl7.org/fhir/R4/condition-definitions.html#Condition.verificationStatus> .

cascade:allergyType a owl:DatatypeProperty ;
    rdfs:label "allergy type"@en ;
    rdfs:comment "Of a version of an allergy or intolerance, whether it is an allergy or an intolerance, as FHIR's AllergyIntolerance.type, or mapped from the SNOMED CT code of a C-CDA allergy's value."@en ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/allergyintolerance-definitions.html#AllergyIntolerance.type> .

cascade:allergyCriticality a owl:DatatypeProperty ;
    rdfs:label "allergy criticality"@en ;
    rdfs:comment "Of a version of an allergy or intolerance, how much harm a future reaction to it could do: low, high or unable-to-assess, as FHIR's AllergyIntolerance.criticality, or a C-CDA Criticality Observation's CRITL, CRITH or CRITU mapped into those codes."@en ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/allergyintolerance-definitions.html#AllergyIntolerance.criticality> .

cascade:conditionCategory a owl:DatatypeProperty ;
    rdfs:label "condition category"@en ;
    rdfs:comment "Of a version of a condition, whether it is an item of the person's problem list or a diagnosis made at an encounter: problem-list-item or encounter-diagnosis, as the first of FHIR's Condition.category, or mapped from the code of the C-CDA section that holds it."@en ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/condition-definitions.html#Condition.category> .

cascade:abatementDate a owl:DatatypeProperty ;
    rdfs:label "abatement date"@en ;
    rdfs:comment "Of a version of a condition, when it resolved or went into remission, as FHIR's Condition.abatementDateTime or the high of a C-CDA Problem Observation's effectiveTime, typed by the precision the source wrote it to."@en ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/condition-definitions.html#Condition.abatement_x_> .

cascade:PrescribedOrReportedMedication a owl:Class ;
    rdfs:label "prescribed or reported medication"@en ;
    rdfs:comment "A medication the person was prescribed or reports taking, as FHIR's MedicationRequest or MedicationStatement, or a C-CDA Medication Activity: the drug, its dosage, when its use started and ended, its status, and on every version whether it came from a prescription or from a list of what the person takes. A pharmacy's dispense is a cascade:MedicationDispense instead."@en ;
    rdfs:subClassOf prov:Entity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest> , <https://hl7.org/fhir/R4/medicationstatement-definitions.html#MedicationStatement> .

cascade:drugName a owl:DatatypeProperty ;
    rdfs:label "drug name"@en ;
    rdfs:comment "Of a version of a medication or a medication dispense, the drug's name as the source wrote it, as FHIR's medication[x], its concept's text or first coding's display, else the Medication it references or that reference's display; or a C-CDA manufacturedMaterial, its code's original text, its name or a displayName."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:PrescribedOrReportedMedication cascade:MedicationDispense ) ] ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.medication_x_> , <https://hl7.org/fhir/R4/medicationstatement-definitions.html#MedicationStatement.medication_x_> .

cascade:rxNormCode a owl:ObjectProperty ;
    rdfs:label "RxNorm code"@en ;
    rdfs:comment "Of a version of a medication or a medication dispense, an RxNorm code for the drug, as a coding of FHIR's medication[x] or of the Medication it references, or a C-CDA manufacturedMaterial code and its translations: a code IRI, one for each."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:PrescribedOrReportedMedication cascade:MedicationDispense ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.medication_x_> , <https://hl7.org/fhir/R4/medicationstatement-definitions.html#MedicationStatement.medication_x_> .

cascade:prescribedOrReported a owl:DatatypeProperty ;
    rdfs:label "prescribed or reported"@en ;
    rdfs:comment "Of every version of a medication, whether it came from a prescription or from a list of what the person takes: prescribed for a FHIR MedicationRequest not marked reported, or a C-CDA Medication Activity in INT mood; reportedUse for a FHIR MedicationStatement, a MedicationRequest marked reported, or a C-CDA Medication Activity in EVN mood."@en ;
    rdfs:domain cascade:PrescribedOrReportedMedication ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.reported_x_> .

cascade:dosageInstructionText a owl:DatatypeProperty ;
    rdfs:label "dosage instruction text"@en ;
    rdfs:comment "Of a version of a medication, how it is to be taken as the source wrote it in words, as the text of FHIR's first MedicationRequest.dosageInstruction or MedicationStatement.dosage, or a C-CDA Medication Free Text Sig. A dosage given as structured elements is a cascade:StructuredDosage."@en ;
    rdfs:domain cascade:PrescribedOrReportedMedication ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.dosageInstruction> , <https://hl7.org/fhir/R4/medicationstatement-definitions.html#MedicationStatement.dosage> .

cascade:medicationUseStartDate a owl:DatatypeProperty ;
    rdfs:label "medication use start date"@en ;
    rdfs:comment "Of a version of a medication, when the person started taking it, as FHIR's MedicationStatement.effectiveDateTime or effectivePeriod start, or a C-CDA Medication Activity's effectiveTime, its low or else its value, typed by the precision the source wrote it to. When a prescription was written is cascade:prescriptionWrittenDate."@en ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationstatement-definitions.html#MedicationStatement.effective_x_> .

cascade:medicationUseEndDate a owl:DatatypeProperty ;
    rdfs:label "medication use end date"@en ;
    rdfs:comment "Of a version of a medication, when the person stopped or is to stop taking it, as FHIR's MedicationStatement.effectivePeriod end or the high of a C-CDA Medication Activity's effectiveTime, typed by the precision the source wrote it to."@en ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationstatement-definitions.html#MedicationStatement.effective_x_> .

# What a record was given for; decisions/reasons.md

cascade:reasonCondition a owl:ObjectProperty ;
    rdfs:label "reason condition"@en ;
    rdfs:comment "Of a version of a medication, a procedure or a vaccination, a condition it was given or done for, as FHIR's reasonReference to a Condition or a C-CDA Indication whose id is that of a Problem Observation of the same document: the IRI of that condition's record, one for each the source named. It names a record, never a version, and may name a record no source of the pod sent. A reason given only as a code is a cascade:reasonCode."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:PrescribedOrReportedMedication cascade:MedicalProcedure cascade:Vaccination ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.reasonReference> , <https://hl7.org/fhir/R4/medicationstatement-definitions.html#MedicationStatement.reasonReference> , <https://hl7.org/fhir/R4/procedure-definitions.html#Procedure.reasonReference> , <https://hl7.org/fhir/R4/immunization-definitions.html#Immunization.reasonReference> .

cascade:reasonCode a owl:ObjectProperty ;
    rdfs:label "reason code"@en ;
    rdfs:comment "Of a version of a medication, a procedure or a vaccination, a code for why it was given or done, as a coding of FHIR's reasonCode or the value of a C-CDA Indication and its translations: a code IRI, one for each such coding in a code system cascade:CodeSystem names, whichever the system is: SNOMED CT, ICD-10-CM. A code in a system no cascade:CodeSystem names is a cascade:reasonCodeInOtherSystem; a condition's record the source names is a cascade:reasonCondition."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:PrescribedOrReportedMedication cascade:MedicalProcedure cascade:Vaccination ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.reasonCode> , <https://hl7.org/fhir/R4/medicationstatement-definitions.html#MedicationStatement.reasonCode> , <https://hl7.org/fhir/R4/procedure-definitions.html#Procedure.reasonCode> , <https://hl7.org/fhir/R4/immunization-definitions.html#Immunization.reasonCode> .

cascade:reasonCodeInOtherSystem a owl:DatatypeProperty ;
    rdfs:label "reason code in another system"@en ;
    rdfs:comment "Of a version of a medication, a procedure or a vaccination, a code for why it was given or done in a system the vocabulary lists no IRI form for, as a literal typed by its Coding.system URI, as cascade:testCodeInOtherSystem is. A code in a system it does list one for, such as SNOMED CT or ICD-10-CM, is a cascade:reasonCode IRI instead."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:PrescribedOrReportedMedication cascade:MedicalProcedure cascade:Vaccination ) ] ;
    rdfs:range rdfs:Literal ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.reasonCode> , <https://hl7.org/fhir/R4/datatypes-definitions.html#Coding.system> .

# Genetic variants and their interpretations

cascade:GeneticVariantFinding a owl:Class ;
    rdfs:label "genetic variant finding"@en ;
    rdfs:comment "A genetic variant found in the person, as a FHIR Observation coded LOINC 69548-6: its HGVS coding DNA expression, its ClinVar Variation ID and its gene. What the variant means is a cascade:VariantInterpretation of it."@en ;
    rdfs:subClassOf prov:Entity .

cascade:hgvsCodingDnaExpression a owl:DatatypeProperty ;
    rdfs:label "HGVS coding DNA expression"@en ;
    rdfs:comment "Of a version of a genetic variant finding, the variant as an HGVS expression on a coding DNA reference sequence: the sequence with its version (NM_, NG_, XM_, NC_ or LRG_), a colon, c. and the change, as a FHIR variant Observation's component coded LOINC 48004-6. One at most."@en ;
    rdfs:domain cascade:GeneticVariantFinding ;
    rdfs:range xsd:string .

cascade:clinvarVariationId a owl:DatatypeProperty ;
    rdfs:label "ClinVar variation ID"@en ;
    rdfs:comment "Of a version of a genetic variant finding, its ClinVar Variation ID, the number of its VCV accession without the prefix, leading zeros or version, as a FHIR variant Observation's component coded LOINC 81252-9 or ClinVar's VariationID. One at most."@en ;
    rdfs:domain cascade:GeneticVariantFinding ;
    rdfs:range xsd:string .

cascade:geneSymbol a owl:DatatypeProperty ;
    rdfs:label "gene symbol (HGNC approved)"@en ;
    rdfs:comment "Of a version of a genetic variant finding, the HGNC approved symbol of the gene it is in, as the HGNC coding's display of a FHIR variant Observation's component coded LOINC 48018-6. One at most."@en ;
    rdfs:domain cascade:GeneticVariantFinding ;
    rdfs:range xsd:string .

cascade:VariantInterpretation a owl:Class ;
    rdfs:label "variant interpretation"@en ;
    rdfs:comment "A classification of what a genetic variant means for the person's health, by a lab's report, as a FHIR Observation coded diagnostic-implication: its ACMG/AMP class, the variant it interprets, the condition it is for, its evidence codes and when it was made. Two calls on one variant are two records; neither replaces the other."@en ;
    rdfs:subClassOf prov:Entity .

cascade:subjectVariant a owl:ObjectProperty ;
    rdfs:label "subject variant"@en ;
    rdfs:comment "Of a version of a variant interpretation, the genetic variant finding it interprets, by that record's IRI, never a version's: from FHIR, as FHIR's derivedFrom, the one variant Observation it names. One at most."@en ;
    rdfs:domain cascade:VariantInterpretation ;
    rdfs:range cascade:GeneticVariantFinding ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/observation-definitions.html#Observation.derivedFrom> .

cascade:acmgClassification a owl:ObjectProperty ;
    rdfs:label "ACMG/AMP classification"@en ;
    rdfs:comment "Of a version of a variant interpretation, its class on the ACMG/AMP 2015 five-tier scale: cascade:Pathogenic, cascade:LikelyPathogenic, cascade:UncertainSignificance, cascade:LikelyBenign or cascade:Benign, as a FHIR interpretation's component coded LOINC 53037-8, its LOINC answer mapped. One at most."@en ;
    rdfs:domain cascade:VariantInterpretation ;
    rdfs:range skos:Concept .

cascade:variantInterpretationDate a owl:DatatypeProperty ;
    rdfs:label "variant interpretation date"@en ;
    rdfs:comment "Of a version of a variant interpretation, the day it was made, or the year or month where the source gives no day, with no time: as FHIR's Observation.issued or else its effective time. One at most."@en ;
    rdfs:domain cascade:VariantInterpretation ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/observation-definitions.html#Observation.issued> .

cascade:objectCondition a owl:ObjectProperty ;
    rdfs:label "object condition"@en ;
    rdfs:comment "Of a version of a variant interpretation, the condition its classification is for, by the IRI of a cascade:ProblemOrDiagnosis record in the same document, as the objectCondition of VA-spec's ACMG 2015 profile. One at most."@en ;
    rdfs:domain cascade:VariantInterpretation ;
    rdfs:range cascade:ProblemOrDiagnosis ;
    rdfs:seeAlso <https://github.com/ga4gh/va-spec/blob/11c4a3add0e4a9d0eef7e13f8ec9cb17346e9fa0/schema/va-spec/acmg-2015/profile-source.yaml> .

cascade:acmgEvidenceCode a owl:DatatypeProperty ;
    rdfs:label "ACMG evidence code"@en ;
    rdfs:comment "Of a version of a variant interpretation, one ACMG/AMP 2015 evidence criterion and its outcome, written as VA-spec's ACMG 2015 profile writes one, such as PM2, PS3_moderate or PS3_not_met, or no_criteria_met; one for each the source states."@en ;
    rdfs:domain cascade:VariantInterpretation ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://github.com/ga4gh/va-spec/blob/9d60508c0a7a1ccd79a6312a45b3618ee0121aec/schema/va-spec/acmg-2015-profile-source.yaml> .

# Reports, notes and documents; decisions/reports-and-notes.md

cascade:DiagnosticReport a owl:Class ;
    rdfs:label "diagnostic report"@en ;
    rdfs:comment "A report a source issued on a set of results, images or a study, as FHIR's DiagnosticReport, or a C-CDA Result Organizer as C-CDA on FHIR maps it to one: its code, its results as the result records' IRIs, its conclusion and its presented form. A report sent only as a document, such as a PDF, is a report all the same."@en ;
    rdfs:subClassOf prov:Entity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/diagnosticreport-definitions.html#DiagnosticReport> .

cascade:reportCode a owl:ObjectProperty ;
    rdfs:label "report code"@en ;
    rdfs:comment "Of a version of a report, what the report is, as FHIR's DiagnosticReport.code: a LOINC or SNOMED CT code IRI, one for each such coding the source gave."@en ;
    rdfs:domain cascade:DiagnosticReport ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/diagnosticreport-definitions.html#DiagnosticReport.code> .

cascade:reportCodeInOtherSystem a owl:DatatypeProperty ;
    rdfs:label "report code in another system"@en ;
    rdfs:comment "Of a version of a report, a code the source gave for it in a system other than LOINC and SNOMED CT, such as CPT or a lab's own, as a literal typed by its Coding.system URI, as cascade:testCodeInOtherSystem is. A LOINC or SNOMED CT code is a cascade:reportCode IRI instead."@en ;
    rdfs:domain cascade:DiagnosticReport ;
    rdfs:range rdfs:Literal ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/diagnosticreport-definitions.html#DiagnosticReport.code> , <https://hl7.org/fhir/R4/datatypes-definitions.html#Coding.system> .

cascade:reportName a owl:DatatypeProperty ;
    rdfs:label "report name"@en ;
    rdfs:comment "Of a version of a report, its name as the source wrote it: the text of FHIR's DiagnosticReport.code, else its first coding's display."@en ;
    rdfs:domain cascade:DiagnosticReport ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/diagnosticreport-definitions.html#DiagnosticReport.code> .

cascade:reportCategory a owl:DatatypeProperty ;
    rdfs:label "report category"@en ;
    rdfs:comment "Of a version of a report, the service or discipline that made it, as FHIR's DiagnosticReport.category: one literal for each coding the source gave, its code typed by its Coding.system URI, as \"LAB\"^^<http://terminology.hl7.org/CodeSystem/v2-0074>, a LOINC category included, since no table joins a category."@en ;
    rdfs:domain cascade:DiagnosticReport ;
    rdfs:range rdfs:Literal ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/diagnosticreport-definitions.html#DiagnosticReport.category> .

cascade:reportEffectiveTime a owl:DatatypeProperty ;
    rdfs:label "report effective time"@en ;
    rdfs:comment "Of a version of a report, the time its results are about, as FHIR's DiagnosticReport.effective[x]: the effectiveDateTime, or the start of the effectivePeriod; never when it was issued."@en ;
    rdfs:domain cascade:DiagnosticReport ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/diagnosticreport-definitions.html#DiagnosticReport.effective_x_> .

cascade:reportIssuedTime a owl:DatatypeProperty ;
    rdfs:label "report issued time"@en ;
    rdfs:comment "Of a version of a report, when its source made this version of it available, as FHIR's DiagnosticReport.issued, an instant; never the time its results are about. A C-CDA Result Organizer states none."@en ;
    rdfs:domain cascade:DiagnosticReport ;
    rdfs:range xsd:dateTime ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/diagnosticreport-definitions.html#DiagnosticReport.issued> .

cascade:reportConclusion a owl:DatatypeProperty ;
    rdfs:label "report conclusion"@en ;
    rdfs:comment "Of a version of a report, its summary or interpretation as the source wrote it, as FHIR's DiagnosticReport.conclusion."@en ;
    rdfs:domain cascade:DiagnosticReport ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/diagnosticreport-definitions.html#DiagnosticReport.conclusion> .

cascade:reportConclusionCode a owl:ObjectProperty ;
    rdfs:label "report conclusion code"@en ;
    rdfs:comment "Of a version of a report, a code for its conclusion, as FHIR's DiagnosticReport.conclusionCode: a code IRI, one for each coding of a listed system the source gave."@en ;
    rdfs:domain cascade:DiagnosticReport ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/diagnosticreport-definitions.html#DiagnosticReport.conclusionCode> .

cascade:ClinicalNoteOrDocument a owl:Class ;
    rdfs:label "clinical note or document"@en ;
    rdfs:comment "A note or document a source wrote about the person, as FHIR's DocumentReference, a C-CDA Note Activity, or a narrative-only C-CDA section whose code is a note type: its type, date and text. Not the kept source file, which is a prov:Entity under provenance/documents/."@en ;
    rdfs:subClassOf prov:Entity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/documentreference-definitions.html#DocumentReference> .

cascade:noteOrDocumentTypeCode a owl:ObjectProperty ;
    rdfs:label "note or document type code"@en ;
    rdfs:comment "Of a version of a note or document, what kind of note it is, as FHIR's DocumentReference.type, a C-CDA Note Activity's or section's code: a LOINC code IRI, one for each LOINC coding the source gave."@en ;
    rdfs:domain cascade:ClinicalNoteOrDocument ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/documentreference-definitions.html#DocumentReference.type> .

cascade:noteOrDocumentTypeCodeInOtherSystem a owl:DatatypeProperty ;
    rdfs:label "note or document type code in another system"@en ;
    rdfs:comment "Of a version of a note or document, a type the source gave in a system other than LOINC, as a literal typed by its Coding.system URI, as cascade:testCodeInOtherSystem is. A LOINC type is a cascade:noteOrDocumentTypeCode IRI instead."@en ;
    rdfs:domain cascade:ClinicalNoteOrDocument ;
    rdfs:range rdfs:Literal ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/documentreference-definitions.html#DocumentReference.type> , <https://hl7.org/fhir/R4/datatypes-definitions.html#Coding.system> .

cascade:noteOrDocumentTypeName a owl:DatatypeProperty ;
    rdfs:label "note or document type name"@en ;
    rdfs:comment "Of a version of a note or document, the name of its type as the source wrote it: the text of FHIR's DocumentReference.type, else its first coding's display, or a C-CDA code's displayName."@en ;
    rdfs:domain cascade:ClinicalNoteOrDocument ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/documentreference-definitions.html#DocumentReference.type> .

cascade:noteOrDocumentTitle a owl:DatatypeProperty ;
    rdfs:label "note or document title"@en ;
    rdfs:comment "Of a version of a note or document, its title as the source wrote it: FHIR's DocumentReference.description, or a C-CDA section's title."@en ;
    rdfs:domain cascade:ClinicalNoteOrDocument ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/documentreference-definitions.html#DocumentReference.description> .

cascade:noteOrDocumentContentStatus a owl:DatatypeProperty ;
    rdfs:label "note or document content status"@en ;
    rdfs:comment "Of a version of a note or document, how far its content is finished, as FHIR's DocumentReference.docStatus: one of CompositionStatus's preliminary, final, amended and entered-in-error. Not cascade:workflowStatus, which says whether the reference itself is current. A C-CDA note states none."@en ;
    rdfs:domain cascade:ClinicalNoteOrDocument ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/documentreference-definitions.html#DocumentReference.docStatus> , <https://hl7.org/fhir/R4/valueset-composition-status.html> .

cascade:noteOrDocumentDate a owl:DatatypeProperty ;
    rdfs:label "note or document date"@en ;
    rdfs:comment "Of a version of a note or document, when it was written, as FHIR's DocumentReference.date, a C-CDA Note Activity's author time, or, for the text of a section that no entry references, its document's effectiveTime."@en ;
    rdfs:domain cascade:ClinicalNoteOrDocument ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/documentreference-definitions.html#DocumentReference.date> .

cascade:narrativeTextAsTrimmedLines a owl:DatatypeProperty ;
    rdfs:label "narrative text as trimmed lines"@en ;
    rdfs:comment "Derived: of the current version of a note, document or report, its cascade:narrativeText as lines, each run of spaces, tabs and carriage returns in a line one space, each line trimmed and blank lines dropped, the lines joined by a line feed: the text the matcher's note rules compare, worked out once per version rather than in every comparison."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:DiagnosticReport cascade:ClinicalNoteOrDocument ) ] ;
    rdfs:range xsd:string .

cascade:noteOrDocumentMasterIdentifier a owl:DatatypeProperty ;
    rdfs:label "note or document master identifier"@en ;
    rdfs:comment "Of a version of a note or document, the identifier of the one version of the one document it is, as FHIR's DocumentReference.masterIdentifier, which FHIR maps to a CDA document's ClinicalDocument/id: a literal of the identifier's value typed by its system URI, by HL7's CDA-to-FHIR identifier mapping, as dct:identifier is for a lab result, or a plain string when no system is stated. A C-CDA note carries it only when it is the whole document, an unstructured document's body, never a section or a Note Activity, which are parts of one. Not dct:identifier, which holds a record's business identifiers, as DocumentReference.identifier would."@en ;
    rdfs:domain cascade:ClinicalNoteOrDocument ;
    rdfs:range rdfs:Literal ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/documentreference-definitions.html#DocumentReference.masterIdentifier> .

cascade:narrativeText a owl:DatatypeProperty ;
    rdfs:label "narrative text"@en ;
    rdfs:comment "Of a version of a record of any kind, the text its source wrote for it, as FHIR's DomainResource.text, markup removed, in document order. A note's or report's is the text of a C-CDA section that no entry references, else FHIR's text.div with its tags stripped or an inline text attachment's decoded text; any other kind's is the text its C-CDA statement's own text/reference points at, such as a procedure row's finding, a result's label or a medication's stop reason. A PDF's text is not read."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:AllergyOrIntolerance cascade:ProblemOrDiagnosis cascade:Vaccination
        cascade:MedicalProcedure cascade:LaboratoryTestResult cascade:PrescribedOrReportedMedication cascade:MedicationDispense
        cascade:GeneticVariantFinding cascade:VariantInterpretation cascade:DiagnosticReport cascade:ClinicalNoteOrDocument ) ] ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/domainresource-definitions.html#DomainResource.text> .

cascade:Attachment a owl:Class ;
    rdfs:label "attachment"@en ;
    rdfs:comment "One of the files a report or a note's source gave inline or by address, as FHIR's Attachment, a node of the version that states it, <version>#attachment-n, n its 1-based position in the source, hashed with the version. Its bytes stay in the kept document."@en ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/datatypes-definitions.html#Attachment> .

cascade:attachment a owl:ObjectProperty ;
    rdfs:label "attachment"@en ;
    rdfs:comment "Of a version of a report or a note, one file its source gave: FHIR's DiagnosticReport.presentedForm or DocumentReference.content.attachment, or a C-CDA ED, one node per attachment."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:DiagnosticReport cascade:ClinicalNoteOrDocument ) ] ;
    rdfs:range cascade:Attachment ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/diagnosticreport-definitions.html#DiagnosticReport.presentedForm> , <https://hl7.org/fhir/R4/documentreference-definitions.html#DocumentReference.content.attachment> .

cascade:attachmentContentType a owl:DatatypeProperty ;
    rdfs:label "attachment content type"@en ;
    rdfs:comment "Of an attachment, its media type as the source gave it, as FHIR's Attachment.contentType or a C-CDA ED's mediaType: application/pdf, text/plain."@en ;
    rdfs:domain cascade:Attachment ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/datatypes-definitions.html#Attachment.contentType> .

cascade:attachmentTitle a owl:DatatypeProperty ;
    rdfs:label "attachment title"@en ;
    rdfs:comment "Of an attachment, the label the source gave it, as FHIR's Attachment.title."@en ;
    rdfs:domain cascade:Attachment ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/datatypes-definitions.html#Attachment.title> .

cascade:attachmentUrl a owl:DatatypeProperty ;
    rdfs:label "attachment URL"@en ;
    rdfs:comment "Of an attachment, the address the source gave its bytes at, as FHIR's Attachment.url or a C-CDA ED's reference value, as written; absent for one given inline."@en ;
    rdfs:domain cascade:Attachment ;
    rdfs:range xsd:anyURI ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/datatypes-definitions.html#Attachment.url> .

# A pharmacy's dispense; decisions/medications.md

cascade:MedicationDispense a owl:Class ;
    rdfs:label "medication dispense"@en ;
    rdfs:comment "A supply of a medication a pharmacy prepared for the person or handed over to them, as FHIR's MedicationDispense: its drug, by the drug terms a medication's version uses, its status, the prescription it fills, when it was prepared and handed over, how much was dispensed and for how many days. A record of its own kind, never a medication record: a fill is evidence of use, not a course, and it reaches its course through cascade:authorizingPrescription."@en ;
    rdfs:subClassOf prov:Entity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationdispense-definitions.html#MedicationDispense> .

cascade:authorizingPrescription a owl:ObjectProperty ;
    rdfs:label "authorizing prescription"@en ;
    rdfs:comment "Of a version of a medication dispense, a prescription it was dispensed against, as FHIR's MedicationDispense.authorizingPrescription: the IRI of that prescription's medication record, one for each the source named. It may name a record no source of the pod sent."@en ;
    rdfs:domain cascade:MedicationDispense ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationdispense-definitions.html#MedicationDispense.authorizingPrescription> .

cascade:dispensePreparedTime a owl:DatatypeProperty ;
    rdfs:label "dispense prepared time"@en ;
    rdfs:comment "Of a version of a medication dispense, when the dispensed product was packaged and reviewed, as FHIR's MedicationDispense.whenPrepared; never when it was handed over."@en ;
    rdfs:domain cascade:MedicationDispense ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationdispense-definitions.html#MedicationDispense.whenPrepared> .

cascade:dispenseHandedOverTime a owl:DatatypeProperty ;
    rdfs:label "dispense handed over time"@en ;
    rdfs:comment "Of a version of a medication dispense, when the dispensed product was provided to the person or their representative, as FHIR's MedicationDispense.whenHandedOver."@en ;
    rdfs:domain cascade:MedicationDispense ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationdispense-definitions.html#MedicationDispense.whenHandedOver> .

cascade:dispenseQuantity a owl:ObjectProperty ;
    rdfs:label "dispense quantity"@en ;
    rdfs:comment "Of a version of a medication dispense, the amount of the medication dispensed, as FHIR's MedicationDispense.quantity: a cascade:Quantity <version>#dispense-quantity."@en ;
    rdfs:domain cascade:MedicationDispense ;
    rdfs:range cascade:Quantity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationdispense-definitions.html#MedicationDispense.quantity> .

cascade:dispenseDaysSupply a owl:ObjectProperty ;
    rdfs:label "dispense days supply"@en ;
    rdfs:comment "Of a version of a medication dispense, how long the amount dispensed is expected to last, as FHIR's MedicationDispense.daysSupply: a cascade:Quantity <version>#dispense-days-supply whose unit is a UCUM unit of time."@en ;
    rdfs:domain cascade:MedicationDispense ;
    rdfs:range cascade:Quantity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationdispense-definitions.html#MedicationDispense.daysSupply> .

# Records

cascade:sourceUrl a owl:ObjectProperty ;
    rdfs:label "source URL"@en ;
    rdfs:comment "A record's full address at its source: for a FHIR resource, its URL on its server; for a contained resource, its container's address, #, and its local id; for a C-CDA record, its HL7 identifier, urn:hl7ii:<root>:<extension>, or its root alone as urn:oid:<root> or urn:uuid:<root>, each character an IRI does not allow percent-encoded as UTF-8. Several records may share one, since a name takes inputs a source address does not. A record named from its document and its place in it, or with no usable identifier, has none."@en .

cascade:patient a owl:ObjectProperty ;
    rdfs:label "patient"@en ;
    rdfs:comment "Who a version is about: the source's patient record, or the subject itself when the pod's person entered it."@en .

cascade:ndcCode a owl:ObjectProperty ;
    rdfs:label "NDC code"@en ;
    rdfs:comment "An NDC the source gave, as the cascade:NDC IRI: Cascade's 11-digit form, so an adapter normalises FHIR's 10-digit hyphenated form into it."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:PrescribedOrReportedMedication cascade:MedicationDispense ) ] .

cascade:medicationCodeInOtherSystem a owl:DatatypeProperty ;
    rdfs:label "medication code in another system"@en ;
    rdfs:comment "Of a version of a medication, a code the source gave for the drug in a system this kind has no property of its own for, such as a formulary's or SNOMED CT, as a literal typed by its Coding.system URI, as cascade:testCodeInOtherSystem is. An RxNorm or NDC code is a cascade:rxNormCode or cascade:ndcCode IRI instead."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:PrescribedOrReportedMedication cascade:MedicationDispense ) ] ;
    rdfs:range rdfs:Literal ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.medication_x_> , <https://hl7.org/fhir/R4/medicationstatement-definitions.html#MedicationStatement.medication_x_> , <https://hl7.org/fhir/R4/medicationdispense-definitions.html#MedicationDispense.medication_x_> , <https://hl7.org/fhir/R4/medication-definitions.html#Medication.code> , <https://hl7.org/fhir/R4/datatypes-definitions.html#Coding.system> .

cascade:prescriptionWrittenDate a owl:DatatypeProperty ;
    rdfs:label "prescription written date"@en ;
    rdfs:comment "Of a version of a prescribed medication, when the prescription was written, as FHIR's MedicationRequest.authoredOn: never the start of use."@en ;
    rdfs:domain cascade:PrescribedOrReportedMedication ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.authoredOn> .

cascade:medicationRequestIntent a owl:DatatypeProperty ;
    rdfs:label "medication request intent"@en ;
    rdfs:comment "Of a version of a prescribed medication, how far the source's request goes, as FHIR's MedicationRequest.intent: one of proposal, plan, order, original-order, reflex-order, filler-order, instance-order, option. Read only on a prescribed version; absent where the source gave none, as every C-CDA source does."@en ;
    rdfs:domain cascade:PrescribedOrReportedMedication ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.intent> , <https://hl7.org/fhir/R4/valueset-medicationrequest-intent.html> .

cascade:courseOfTherapyType a owl:DatatypeProperty ;
    rdfs:label "course of therapy type"@en ;
    rdfs:comment "Of a version of a prescribed medication, the overall pattern of its use the source gave, as FHIR's MedicationRequest.courseOfTherapyType: continuous (expected to go on beyond this order unless explicitly stopped), acute (only for this order, not expected to be renewed) or seasonal, the code of http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy; absent where the source gave none or a code of another system."@en ;
    rdfs:domain cascade:PrescribedOrReportedMedication ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.courseOfTherapyType> , <https://hl7.org/fhir/R4/codesystem-medicationrequest-course-of-therapy.html> .

cascade:numberOfRepeatsAllowed a owl:DatatypeProperty ;
    rdfs:label "number of repeats allowed"@en ;
    rdfs:comment "Of a version of a prescribed medication, how many times it may be dispensed after the first, as FHIR's MedicationRequest.dispenseRequest.numberOfRepeatsAllowed (refills): 3 repeats is 4 fills, and 0 says no refill, which differs from none stated."@en ;
    rdfs:domain cascade:PrescribedOrReportedMedication ;
    rdfs:range xsd:integer ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.dispenseRequest.numberOfRepeatsAllowed> .

cascade:expectedSupplyDuration a owl:ObjectProperty ;
    rdfs:label "expected supply duration"@en ;
    rdfs:comment "Of a version of a prescribed medication, how long one fill is expected to last, as FHIR's MedicationRequest.dispenseRequest.expectedSupplyDuration (the days' supply): a cascade:Quantity <version>#expected-supply-duration whose unit is a UCUM unit of time."@en ;
    rdfs:domain cascade:PrescribedOrReportedMedication ;
    rdfs:range cascade:Quantity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.dispenseRequest.expectedSupplyDuration> .

cascade:dispenseRequestValidityPeriodStart a owl:DatatypeProperty ;
    rdfs:label "dispense request validity period start"@en ;
    rdfs:comment "Of a version of a prescribed medication, the earliest the prescription may first be filled, the start of FHIR's MedicationRequest.dispenseRequest.validityPeriod; never the start of use."@en ;
    rdfs:domain cascade:PrescribedOrReportedMedication ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.dispenseRequest.validityPeriod> .

cascade:dispenseRequestValidityPeriodEnd a owl:DatatypeProperty ;
    rdfs:label "dispense request validity period end"@en ;
    rdfs:comment "Of a version of a prescribed medication, the last the prescription may be filled, the end of FHIR's MedicationRequest.dispenseRequest.validityPeriod (its stale date); never the end of use."@en ;
    rdfs:domain cascade:PrescribedOrReportedMedication ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.dispenseRequest.validityPeriod> .

cascade:StructuredDosage a owl:Class ;
    rdfs:label "structured dosage"@en ;
    rdfs:comment "One of the dosages a medication's source gave as structured elements, as FHIR's Dosage, a node of the version that states it, <version>#dosage-n, n its 1-based position in the source, hashed with the version."@en ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/dosage-definitions.html#Dosage> .

cascade:structuredDosage a owl:ObjectProperty ;
    rdfs:label "structured dosage"@en ;
    rdfs:comment "Of a version of a medication, one dosage its source gave as structured elements, from FHIR's MedicationRequest.dosageInstruction or MedicationStatement.dosage, one per dosage; its text stays the version's cascade:dosageInstructionText."@en ;
    rdfs:domain cascade:PrescribedOrReportedMedication ;
    rdfs:range cascade:StructuredDosage ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.dosageInstruction> , <https://hl7.org/fhir/R4/medicationstatement-definitions.html#MedicationStatement.dosage> .

cascade:dosageDoseQuantity a owl:ObjectProperty ;
    rdfs:label "dosage dose quantity"@en ;
    rdfs:comment "Of a structured dosage, the amount of the medication per dose, as FHIR's Dosage.doseAndRate.doseQuantity: a cascade:Quantity <version>#dosage-n-dose-quantity. A dose given as a range is not carried."@en ;
    rdfs:domain cascade:StructuredDosage ;
    rdfs:range cascade:Quantity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/dosage-definitions.html#Dosage.doseAndRate.dose_x_> .

cascade:dosageRepeatFrequency a owl:DatatypeProperty ;
    rdfs:label "dosage repeat frequency"@en ;
    rdfs:comment "Of a structured dosage, how many times it is taken within each cascade:dosageRepeatPeriod, as FHIR's Dosage.timing.repeat.frequency: 3 in 1 day is three times a day."@en ;
    rdfs:domain cascade:StructuredDosage ;
    rdfs:range xsd:integer ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/datatypes-definitions.html#Timing.repeat.frequency> .

cascade:dosageRepeatPeriod a owl:DatatypeProperty ;
    rdfs:label "dosage repeat period"@en ;
    rdfs:comment "Of a structured dosage, the length of time over which its cascade:dosageRepeatFrequency repeats, in its cascade:dosageRepeatPeriodUnit, as FHIR's Dosage.timing.repeat.period."@en ;
    rdfs:domain cascade:StructuredDosage ;
    rdfs:range xsd:decimal ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/datatypes-definitions.html#Timing.repeat.period> .

cascade:dosageRepeatPeriodUnit a owl:DatatypeProperty ;
    rdfs:label "dosage repeat period unit"@en ;
    rdfs:comment "Of a structured dosage, the unit of its cascade:dosageRepeatPeriod, as FHIR's Dosage.timing.repeat.periodUnit: one of the seven codes of FHIR's UnitsOfTime, s, min, h, d, wk, mo and a, each a UCUM unit of time."@en ;
    rdfs:domain cascade:StructuredDosage ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/datatypes-definitions.html#Timing.repeat.periodUnit> , <https://hl7.org/fhir/R4/valueset-units-of-time.html> .

cascade:dosageBoundsPeriodStart a owl:DatatypeProperty ;
    rdfs:label "dosage bounds period start"@en ;
    rdfs:comment "Of a structured dosage, the first day its schedule runs, the start of FHIR's Dosage.timing.repeat.boundsPeriod."@en ;
    rdfs:domain cascade:StructuredDosage ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/datatypes-definitions.html#Timing.repeat.bounds_x_> .

cascade:dosageBoundsPeriodEnd a owl:DatatypeProperty ;
    rdfs:label "dosage bounds period end"@en ;
    rdfs:comment "Of a structured dosage, the last day its schedule runs, the end of FHIR's Dosage.timing.repeat.boundsPeriod."@en ;
    rdfs:domain cascade:StructuredDosage ;
    rdfs:range [ a rdfs:Datatype ; owl:unionOf ( xsd:gYear xsd:gYearMonth xsd:date xsd:dateTime ) ] ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/datatypes-definitions.html#Timing.repeat.bounds_x_> .

cascade:dosageRouteCode a owl:ObjectProperty ;
    rdfs:label "dosage route code"@en ;
    rdfs:comment "Of a structured dosage, how the medication enters the body, as FHIR's Dosage.route, a SNOMED CT code IRI, one for each SNOMED CT coding the source gave."@en ;
    rdfs:domain cascade:StructuredDosage ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/dosage-definitions.html#Dosage.route> .

cascade:dosageRouteCodeInOtherSystem a owl:DatatypeProperty ;
    rdfs:label "dosage route code in another system"@en ;
    rdfs:comment "Of a structured dosage, a route code the source gave in a system other than SNOMED CT, such as the NCI Thesaurus's SPL routes, as a literal typed by its Coding.system URI, as cascade:medicationCodeInOtherSystem is. A SNOMED CT route is a cascade:dosageRouteCode IRI instead."@en ;
    rdfs:domain cascade:StructuredDosage ;
    rdfs:range rdfs:Literal ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/dosage-definitions.html#Dosage.route> , <https://hl7.org/fhir/R4/datatypes-definitions.html#Coding.system> .

cascade:userSelectedCode a owl:ObjectProperty ;
    rdfs:label "user selected code"@en ;
    rdfs:comment "The one code among the version's codes that the source marked as the one it chose, as FHIR's Coding.userSelected does; absent when the source marked none."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:PrescribedOrReportedMedication cascade:MedicationDispense ) ] .

cascade:Revision a owl:Class ;
    rdfs:label "revision"@en ;
    rdfs:comment "That, at its prov:generatedAtTime, a record came to say a version, after each revision it prov:wasRevisionOf, the record's heads as the writer held them, generated by an import and derived from a document."@en ;
    rdfs:subClassOf prov:Entity .

cascade:answeredAsOf a owl:DatatypeProperty ;
    rdfs:label "answered as of"@en ;
    rdfs:comment "The instant a source answered as of: its records as they stood then. Not when the document was made, nor when it arrived."@en ;
    rdfs:range xsd:dateTime ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc7089#section-2.1.1> .

cascade:answersForRecordClass a owl:ObjectProperty ;
    rdfs:label "answers for record class"@en ;
    rdfs:comment "Of a document, a class of record its source answered a search for, for the document's patient: the document holds every record that search returned, as of its cascade:answeredAsOf, else its pav:retrievedOn. A document that states neither this nor cascade:refusedForRecordClass for a class does not say where it looked for records of it."@en ;
    rdfs:range owl:Class .

cascade:refusedForRecordClass a owl:ObjectProperty ;
    rdfs:label "refused for record class"@en ;
    rdfs:comment "Of a document, a class of record its source refused a search for, for the document's patient: the source answered the search with no rows it stands behind: a page answered 400, 403 or 404, as FHIR's failed search; a page after the first answered 410, an expired paging link; or a page holding a record that is not the patient's, or names no patient, of which nothing is kept. Any other failure ends the pull instead of refusing the search. The document may hold only part of what that search would have returned (a refusal after the first page keeps the earlier pages), and says nothing of the rest."@en ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/http.html#search> ;
    rdfs:range owl:Class .

cascade:observedAsOf a owl:DatatypeProperty ;
    rdfs:label "observed as of"@en ;
    rdfs:comment "Of a revision, when its source was observed saying its state: the first there is of its document's cascade:answeredAsOf, the document's pav:retrievedOn, the source's own change time the revision carries as pav:lastUpdateOn, and the start of the act that generated it. For an entry, the session's start."@en ;
    rdfs:domain cascade:Revision ;
    rdfs:range xsd:dateTime .

cascade:revisionOf a owl:ObjectProperty ;
    rdfs:label "revision of"@en ;
    rdfs:comment "The record a revision is of, exactly one."@en ;
    rdfs:domain cascade:Revision .

cascade:version a owl:ObjectProperty ;
    rdfs:label "version"@en ;
    rdfs:comment "The version a revision says its record came to hold, exactly one."@en ;
    rdfs:domain cascade:Revision .

cascade:Record a owl:Class ;
    rdfs:label "record"@en ;
    rdfs:comment "Derived: a thing the pod holds revisions and versions of, whatever its kind."@en .

cascade:recordKind a owl:DatatypeProperty ;
    rdfs:label "record kind"@en ;
    rdfs:comment "Derived: the word for the record's kind, one for each type of record."@en ;
    rdfs:domain cascade:Record ;
    rdfs:range xsd:string .

cascade:statusOnlyFromDocuments a owl:DatatypeProperty ;
    rdfs:label "status only from documents"@en ;
    rdfs:comment "Derived: whether the record's kind takes a status only from a member translated from a document, never from one the person entered."@en ;
    rdfs:domain cascade:Record ;
    rdfs:range xsd:boolean .

cascade:displayName a owl:DatatypeProperty ;
    rdfs:label "display name"@en ;
    rdfs:comment "Derived: the version's name, copied from the property its kind names things with."@en .

cascade:displayDate a owl:DatatypeProperty ;
    rdfs:label "display date"@en ;
    rdfs:comment "Derived: the version's date, copied from the property its kind dates things with, if it has one."@en .

cascade:currentRevision a owl:ObjectProperty ;
    rdfs:label "current revision"@en ;
    rdfs:comment "Derived: the revision of a record the ladder picks from its cascade:currentRevisionCandidate revisions: of those no other is cascade:laterInAncestryThan, the greatest cascade:observedAsOf, then the least IRI. Never written to a pod file."@en ;
    rdfs:range cascade:Revision .

cascade:laterInAncestryThan a owl:ObjectProperty ;
    rdfs:label "later in ancestry than"@en ;
    rdfs:comment "Derived: of two candidates for one record's current revision, both derived from live pulls of one source, this one's act's snapshot descends from that one's. A live pull is a document with a pav:retrievedOn and no cascade:answeredAsOf; two are of one source when both name one transmitter agent, or neither names one."@en ;
    rdfs:domain cascade:Revision ;
    rdfs:range cascade:Revision .

cascade:currentRevisionCandidate a owl:ObjectProperty ;
    rdfs:label "current revision candidate"@en ;
    rdfs:comment "Derived: a revision of the record still in the running once the ladder's first three steps have removed what they remove: no Erroneous that stands names it (cascade:revisionJudgedErroneousBy); no Before that stands, outside a cycle among the record's revisions, places it before another revision of the record no such Erroneous names; and of what is left, it carries the latest source change time, pav:lastUpdateOn, or carries none."@en ;
    rdfs:range cascade:Revision .

cascade:revisionJudgedErroneousBy a owl:ObjectProperty ;
    rdfs:label "revision judged erroneous by"@en ;
    rdfs:comment "Derived: a person's Erroneous that stands names this revision: no activity invalidates it, and no judgment that stands replaces it."@en ;
    rdfs:domain cascade:Revision ;
    rdfs:range cascade:Judgment .

cascade:judgedBefore a owl:ObjectProperty ;
    rdfs:label "judged before"@en ;
    rdfs:comment "Derived: a person's Before that stands places this revision before that one: no activity invalidates it, and no judgment that stands replaces it."@en ;
    rdfs:domain cascade:Revision ;
    rdfs:range cascade:Revision .

cascade:judgedBeforeRevisionOfSameRecord a owl:ObjectProperty ;
    rdfs:label "judged before revision of same record"@en ;
    rdfs:comment "Derived: cascade:judgedBefore between two revisions of one record."@en ;
    rdfs:subPropertyOf cascade:judgedBefore ;
    rdfs:domain cascade:Revision ;
    rdfs:range cascade:Revision .

cascade:Subject a owl:Class ;
    rdfs:label "subject"@en ;
    rdfs:comment "The person a pod is about: only a name, never versioned, holding no data."@en .

cascade:AuthorRole a prov:Role ;
    rdfs:label "author role"@en ;
    rdfs:comment "The part a party played in writing a document: HL7's provenance participant type author, which defines a code and no concept IRI."@en ;
    rdfs:seeAlso <http://terminology.hl7.org/CodeSystem/provenance-participant-type> .

cascade:CustodianRole a prov:Role ;
    rdfs:label "custodian role"@en ;
    rdfs:comment "The part a party played in keeping a document, accountable for its true copy: HL7's provenance participant type custodian, which defines a code and no concept IRI, and the CDA participation type CST of HL7 v3's ParticipationType, which a C-CDA custodian carries."@en ;
    rdfs:seeAlso <http://terminology.hl7.org/CodeSystem/provenance-participant-type> , <http://terminology.hl7.org/CodeSystem/v3-ParticipationType> .

cascade:TransmitterRole a prov:Role ;
    rdfs:label "transmitter role"@en ;
    rdfs:comment "The part a party played in fetching and delivering a document: US Core's provenance agent type transmitter, which defines a code and no concept IRI."@en ;
    rdfs:seeAlso <http://hl7.org/fhir/us/core/CodeSystem/us-core-provenance-participant-type> .

cascade:ReferenceSeries a owl:Class ;
    rdfs:label "reference series"@en ;
    rdfs:comment "A versioned reference table or rule set a machine applies; each of its versions is a prov:specializationOf it."@en ;
    rdfs:subClassOf prov:Entity .

pav:version a owl:DatatypeProperty ;
    rdfs:label "Version"@en ;
    rdfs:isDefinedBy <http://purl.org/pav/> ;
    rdfs:range xsd:string ;
    dct:source <https://github.com/pav-ontology/pav/blob/1aff4569e1e14fc1c6c3ee6654c9101e06a4c655/pav.rdf> ;
    dct:license <http://www.apache.org/licenses/LICENSE-2.0> .

rdfs:label a rdf:Property ;
    rdfs:label "label"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2000/01/rdf-schema#> ;
    rdfs:domain rdfs:Resource ;
    rdfs:range rdfs:Literal ;
    dct:source <https://www.w3.org/TR/2014/REC-rdf-schema-20140225/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

pav:hasCurrentVersion a owl:ObjectProperty ;
    rdfs:label "Has current version"@en ;
    rdfs:isDefinedBy <http://purl.org/pav/> ;
    rdfs:subPropertyOf pav:hasVersion ;
    dct:source <https://github.com/pav-ontology/pav/blob/1aff4569e1e14fc1c6c3ee6654c9101e06a4c655/pav.rdf> ;
    dct:license <http://www.apache.org/licenses/LICENSE-2.0> .

pav:lastUpdateOn a owl:DatatypeProperty ;
    rdfs:label "Last updated on"@en ;
    rdfs:isDefinedBy <http://purl.org/pav/> ;
    rdfs:range xsd:dateTime ;
    dct:source <https://github.com/pav-ontology/pav/blob/1aff4569e1e14fc1c6c3ee6654c9101e06a4c655/pav.rdf> ;
    dct:license <http://www.apache.org/licenses/LICENSE-2.0> .

pav:retrievedFrom a owl:ObjectProperty ;
    rdfs:label "Retrieved from"@en ;
    rdfs:isDefinedBy <http://purl.org/pav/> ;
    rdfs:subPropertyOf prov:wasDerivedFrom ;
    dct:source <https://github.com/pav-ontology/pav/blob/1aff4569e1e14fc1c6c3ee6654c9101e06a4c655/pav.rdf> ;
    dct:license <http://www.apache.org/licenses/LICENSE-2.0> .

pav:retrievedOn a owl:DatatypeProperty ;
    rdfs:label "Retrieved on"@en ;
    rdfs:isDefinedBy <http://purl.org/pav/> ;
    rdfs:range xsd:dateTime ;
    dct:source <https://github.com/pav-ontology/pav/blob/1aff4569e1e14fc1c6c3ee6654c9101e06a4c655/pav.rdf> ;
    dct:license <http://www.apache.org/licenses/LICENSE-2.0> .

prov:Activity a owl:Class ;
    rdfs:label "Activity" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:AgentInfluence a owl:Class ;
    rdfs:label "AgentInfluence" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:subClassOf prov:Influence ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:Association a owl:Class ;
    rdfs:label "Association" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:subClassOf prov:AgentInfluence ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:Collection a owl:Class ;
    rdfs:label "Collection" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:subClassOf prov:Entity ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:Entity a owl:Class ;
    rdfs:label "Entity" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:Influence a owl:Class ;
    rdfs:label "Influence" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:Person a owl:Class ;
    rdfs:label "Person" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:subClassOf prov:Agent ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:Plan a owl:Class ;
    rdfs:label "Plan" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:subClassOf prov:Entity ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:SoftwareAgent a owl:Class ;
    rdfs:label "SoftwareAgent" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:subClassOf prov:Agent ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:agent a owl:ObjectProperty ;
    rdfs:label "agent" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:AgentInfluence ;
    rdfs:range prov:Agent ;
    rdfs:subPropertyOf prov:influencer ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:generated a owl:ObjectProperty ;
    rdfs:label "generated" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Activity ;
    rdfs:range prov:Entity ;
    rdfs:subPropertyOf prov:influenced ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:generatedAtTime a owl:DatatypeProperty ;
    rdfs:label "generatedAtTime" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Entity ;
    rdfs:range xsd:dateTime ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:hadMember a owl:ObjectProperty ;
    rdfs:label "hadMember" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Collection ;
    rdfs:range prov:Entity ;
    rdfs:subPropertyOf prov:wasInfluencedBy ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:hadPlan a owl:ObjectProperty ;
    rdfs:label "hadPlan" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Association ;
    rdfs:range prov:Plan ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:hadRole a owl:ObjectProperty ;
    rdfs:label "hadRole" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Influence , [ a owl:Class ; owl:unionOf ( prov:Association prov:InstantaneousEvent ) ] ;
    rdfs:range prov:Role ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:qualifiedAssociation a owl:ObjectProperty ;
    rdfs:label "qualifiedAssociation" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Activity ;
    rdfs:range prov:Association ;
    rdfs:subPropertyOf prov:qualifiedInfluence ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:specializationOf a owl:AnnotationProperty , owl:ObjectProperty ;
    rdfs:label "specializationOf" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Entity ;
    rdfs:range prov:Entity ;
    rdfs:subPropertyOf prov:alternateOf ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:startedAtTime a owl:DatatypeProperty ;
    rdfs:label "startedAtTime" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Activity ;
    rdfs:range xsd:dateTime ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:used a owl:ObjectProperty ;
    rdfs:label "used" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Activity ;
    rdfs:range prov:Entity ;
    rdfs:subPropertyOf prov:wasInfluencedBy ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:wasAssociatedWith a owl:ObjectProperty ;
    rdfs:label "wasAssociatedWith" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Activity ;
    rdfs:range prov:Agent ;
    rdfs:subPropertyOf prov:wasInfluencedBy ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:wasDerivedFrom a owl:ObjectProperty ;
    rdfs:label "wasDerivedFrom" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Entity ;
    rdfs:range prov:Entity ;
    rdfs:subPropertyOf prov:wasInfluencedBy ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:wasGeneratedBy a owl:ObjectProperty ;
    rdfs:label "wasGeneratedBy" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Entity ;
    rdfs:range prov:Activity ;
    rdfs:subPropertyOf prov:wasInfluencedBy ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:wasInfluencedBy a owl:ObjectProperty ;
    rdfs:label "wasInfluencedBy" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( prov:Activity prov:Agent prov:Entity ) ] ;
    rdfs:range [ a owl:Class ; owl:unionOf ( prov:Activity prov:Agent prov:Entity ) ] ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:wasInformedBy a owl:ObjectProperty ;
    rdfs:label "wasInformedBy" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Activity ;
    rdfs:range prov:Activity ;
    rdfs:subPropertyOf prov:wasInfluencedBy ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:wasRevisionOf a owl:AnnotationProperty , owl:ObjectProperty ;
    rdfs:label "wasRevisionOf" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Entity ;
    rdfs:range prov:Entity ;
    rdfs:subPropertyOf prov:wasDerivedFrom ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:wasAttributedTo a owl:ObjectProperty ;
    rdfs:label "wasAttributedTo" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Entity ;
    rdfs:range prov:Agent ;
    rdfs:subPropertyOf prov:wasInfluencedBy ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

prov:invalidated a owl:ObjectProperty ;
    rdfs:label "invalidated" ;
    rdfs:isDefinedBy <http://www.w3.org/ns/prov-o#> ;
    rdfs:domain prov:Activity ;
    rdfs:range prov:Entity ;
    rdfs:subPropertyOf prov:influenced ;
    dct:source <https://www.w3.org/ns/prov-o-20130430> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

cascade:View a owl:Class ;
    rdfs:label "view"@en ;
    rdfs:comment "A file the view queries build from the pod's records and judgments: deleting it loses nothing, and rerunning them rebuilds it. It says which reference versions it was built with by prov:wasDerivedFrom."@en ;
    rdfs:subClassOf prov:Entity .

cascade:countsUnderLens a owl:DatatypeProperty ;
    rdfs:label "counts under lens"@en ;
    rdfs:comment "Derived: the judgment counts under the lens the build used."@en ;
    rdfs:domain cascade:Judgment ;
    rdfs:range xsd:boolean .

cascade:membersJoinedByCurrentTableVersion a owl:ObjectProperty ;
    rdfs:label "members joined by current table version"@en ;
    rdfs:comment "Derived: the current version of a series the matcher's judgment used another version of, whose rows the query the current rule list runs for the judgment's rule joins its members by, one of them to each of the others (M7)."@en ;
    rdfs:domain cascade:Judgment ;
    rdfs:range prov:Entity .

cascade:lapsed a owl:DatatypeProperty ;
    rdfs:label "lapsed"@en ;
    rdfs:comment "Derived: the judgment is a matcher's Same that does not count because a reference version it used has a newer current one whose rows do not join its members, nothing retracts it, and no judgment not itself retracted replaces it (dct:replaces)."@en ;
    rdfs:domain cascade:Judgment ;
    rdfs:range xsd:boolean .

cascade:leftOutFor a owl:ObjectProperty ;
    rdfs:label "left out for"@en ;
    rdfs:comment "Derived: one reason no view shows the record, in this build."@en ;
    rdfs:domain cascade:Record .

cascade:leftOutReason a owl:ObjectProperty ;
    rdfs:label "left out reason"@en ;
    rdfs:comment "Derived: which of the reasons a record can be left out for this one is, a concept of cascade:LeftOutReasons."@en ;
    rdfs:range skos:Concept .

cascade:LeftOutReasons a skos:ConceptScheme ;
    rdfs:label "left out reasons"@en ;
    rdfs:comment "The reasons the derivations leave a record out of every view, as its cascade:leftOutReason."@en .

cascade:leftOutBecauseOf a owl:ObjectProperty ;
    rdfs:label "left out because of"@en ;
    rdfs:comment "Derived: the thing a reason for leaving a record out rests on, where it rests on one."@en .

cascade:EnteredInErrorAtSource a skos:Concept ;
    skos:inScheme cascade:LeftOutReasons ;
    skos:prefLabel "entered-in-error at its source"@en .

cascade:RefutedAtSource a skos:Concept ;
    skos:inScheme cascade:LeftOutReasons ;
    skos:prefLabel "refuted at its source"@en .

cascade:JudgedErroneous a skos:Concept ;
    skos:inScheme cascade:LeftOutReasons ;
    skos:prefLabel "judged erroneous"@en .

cascade:ImportJudgedErroneous a skos:Concept ;
    skos:inScheme cascade:LeftOutReasons ;
    skos:prefLabel "the import that brought it was judged erroneous"@en .

cascade:PatientProfileNotClaimed a skos:Concept ;
    skos:inScheme cascade:LeftOutReasons ;
    skos:prefLabel "its patient profile has no counting About"@en .

cascade:PatientProfileJudgedNotAbout a skos:Concept ;
    skos:inScheme cascade:LeftOutReasons ;
    skos:prefLabel "its patient profile has a counting NotAbout"@en .

cascade:PatientProfileJudgedBothAboutAndNotAbout a skos:Concept ;
    skos:inScheme cascade:LeftOutReasons ;
    skos:prefLabel "its patient profile has a counting NotAbout and a person's About that stands against it"@en .

cascade:NoPatient a skos:Concept ;
    skos:inScheme cascade:LeftOutReasons ;
    skos:prefLabel "it names no patient"@en .

cascade:inEntry a owl:ObjectProperty ;
    rdfs:label "in entry"@en ;
    rdfs:comment "Derived: the view entry the record belongs to in this build."@en .

cascade:leadMember a owl:ObjectProperty ;
    rdfs:label "lead member"@en ;
    rdfs:comment "Derived: the member an entry shows first: of its cascade:leadMemberCandidate members, the one whose current revision has the greatest cascade:observedAsOf, then the least IRI."@en .

cascade:leadMemberCandidate a owl:ObjectProperty ;
    rdfs:label "lead member candidate"@en ;
    rdfs:comment "Derived: a member of the entry still in the running for its lead. Of the members, those the person entered if there are any; less each whose current revision a Before that stands, outside a cycle, places before another such member's; and of what is left, those whose current revision carries the latest source change time, pav:lastUpdateOn, or carries none."@en .

cascade:statusFrom a owl:ObjectProperty ;
    rdfs:label "status from"@en ;
    rdfs:comment "Derived: the member whose status the entry shows."@en .

cascade:dateFrom a owl:ObjectProperty ;
    rdfs:label "date from"@en ;
    rdfs:comment "Derived: the member whose date the entry shows."@en .

cascade:medicationUseStartDateFrom a owl:ObjectProperty ;
    rdfs:label "medication use start date from"@en ;
    rdfs:comment "Derived: the member whose start of use a medication entry shows."@en .

cascade:prescriptionWrittenDateFrom a owl:ObjectProperty ;
    rdfs:label "prescription written date from"@en ;
    rdfs:comment "Derived: the member whose prescription's written date a medication entry shows."@en .

cascade:dosageFrom a owl:ObjectProperty ;
    rdfs:label "dosage from"@en ;
    rdfs:comment "Derived: the member whose dosage text a medication entry shows when its lead states none."@en .

cascade:onsetDateFrom a owl:ObjectProperty ;
    rdfs:label "onset date from"@en ;
    rdfs:comment "Derived: the member whose onset date an allergy entry shows when its lead states none, chosen among the members that state one; derived for every entry whose members state an onset date, and read by the allergies view."@en .

cascade:allergyCategoryFrom a owl:ObjectProperty ;
    rdfs:label "allergy category from"@en ;
    rdfs:comment "Derived: the member whose category an allergy entry shows when its lead states none, chosen among the members that state one."@en .

cascade:memberCurrentValues a owl:ObjectProperty ;
    rdfs:label "member current values"@en ;
    rdfs:comment "Derived: one member's current values as the entry's view holds them, a node of the view named after the entry and the member (N13): it names the member (cascade:valuesOfMember) and states what that member's current version states of the fields the view shows, so the view holds every member's values and the member each came from."@en .

cascade:valuesOfMember a owl:ObjectProperty ;
    rdfs:label "values of member"@en ;
    rdfs:comment "Derived: the member of an entry whose current version states the values this node of its view holds."@en .

cascade:topCriticality a owl:DatatypeProperty ;
    rdfs:label "top criticality"@en ;
    rdfs:comment "Derived: the most severe criticality a member states."@en ;
    rdfs:range xsd:string .

cascade:Placement a owl:Class ;
    rdfs:label "placement"@en ;
    rdfs:comment "One entry of a pod's layout: where a runtime files things. It names a file (solid:instance), a folder (solid:instanceContainer), or the property whose value's folder the thing goes in (cascade:filedWith). A thing is placed by cascade:filedWith first, then by an entry whose cascade:forSubjectsOf it states, then by its solid:forClass alone; a thing stating the properties of two such entries is placed by the one for prov:invalidated over the one for prov:used, so a retraction that used a release is filed with the retractions; a file that says it is a cascade:View is placed only by the entries at or under the views folder."@en .

cascade:subfolderPrefixLength a owl:DatatypeProperty ;
    rdfs:label "subfolder prefix length"@en ;
    rdfs:comment "How many leading characters of a file's name make the subfolder of the placement's folder it is filed in."@en ;
    rdfs:domain cascade:Placement ;
    rdfs:range xsd:integer .

cascade:filedWith a owl:ObjectProperty ;
    rdfs:label "filed with"@en ;
    rdfs:comment "The property whose value is filed in the folder the thing goes in, when the thing states it."@en ;
    rdfs:domain cascade:Placement .

cascade:forSubjectsOf a owl:ObjectProperty ;
    rdfs:label "for subjects of"@en ;
    rdfs:comment "Narrows the placement's class to the things that state this property."@en ;
    rdfs:domain cascade:Placement .

cascade:writtenByQueryPath a owl:DatatypeProperty ;
    rdfs:label "written by query path"@en ;
    rdfs:comment "The path under queries/ of the query that writes the placement's file."@en ;
    rdfs:domain cascade:Placement ;
    rdfs:range xsd:string .

cascade:writtenAlways a owl:DatatypeProperty ;
    rdfs:label "written always"@en ;
    rdfs:comment "Whether the build writes the placement's view at every build, rather than once the pod holds a record of its class."@en ;
    rdfs:domain cascade:Placement ;
    rdfs:range xsd:boolean .

cascade:holdsRecords a owl:DatatypeProperty ;
    rdfs:label "holds records"@en ;
    rdfs:comment "Whether the placement's folder holds the records of its class, each with its versions and revisions, which an import files and a pod's records are read from."@en ;
    rdfs:domain cascade:Placement ;
    rdfs:range xsd:boolean .

cascade:storesBytes a owl:DatatypeProperty ;
    rdfs:label "stores bytes"@en ;
    rdfs:comment "Whether the placement's folder holds documents' own bytes, each file named by the SHA-256 of its bytes in lowercase hex, rather than RDF."@en ;
    rdfs:domain cascade:Placement ;
    rdfs:range xsd:boolean .

cascade:holdsFilesInArchivesOfMediaType a owl:ObjectProperty ;
    rdfs:label "holds files in archives of media type"@en ;
    rdfs:comment "That the placement's folder holds archives of the pod's files, and the media type of those archives, by the IRI of its IANA registration."@en ;
    rdfs:domain cascade:Placement ;
    rdfs:range dct:MediaType .

cascade:holdsRequirementsForReadingAPod a owl:DatatypeProperty ;
    rdfs:label "holds requirements for reading a pod"@en ;
    rdfs:comment "Whether the placement's folder holds what a runtime must be able to do to read the pod whole, a file for each requirement, so that a runtime that cannot meet one refuses the pod rather than read part of it."@en ;
    rdfs:domain cascade:Placement ;
    rdfs:range xsd:boolean .

cascade:RequirementForReadingAPod a owl:Class ;
    rdfs:label "requirement for reading a pod"@en ;
    rdfs:comment "Something a runtime must be able to do to read a pod that dct:requires it, as git's repository format extensions are: a runtime that cannot do it refuses the pod, naming it, where it would otherwise read only part of the pod."@en .

cascade:ReadingFilesHeldInArchives a owl:NamedIndividual , cascade:RequirementForReadingAPod ;
    rdfs:label "reading files held in archives"@en ;
    rdfs:comment "Reading a pod's files from the archives in the folder runtime/pod-layout.ttl gives cascade:holdsFilesInArchivesOfMediaType as well as at their own paths, which a pod whose host keeps any file in an archive requires."@en .

solid:forClass a rdf:Property ;
    rdfs:label "registry class"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/solid/terms#> ;
    dct:source <https://github.com/solid/vocab/blob/b2ec12c354ead0df5c9526479bda69f0bd4e9acd/solid-terms.ttl> ;
    dct:license <https://creativecommons.org/publicdomain/zero/1.0/> .

solid:instance a rdf:Property ;
    rdfs:label "instance"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/solid/terms#> ;
    dct:source <https://github.com/solid/vocab/blob/b2ec12c354ead0df5c9526479bda69f0bd4e9acd/solid-terms.ttl> ;
    dct:license <https://creativecommons.org/publicdomain/zero/1.0/> .

solid:instanceContainer a rdf:Property ;
    rdfs:label "instance container"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/solid/terms#> ;
    dct:source <https://github.com/solid/vocab/blob/b2ec12c354ead0df5c9526479bda69f0bd4e9acd/solid-terms.ttl> ;
    dct:license <https://creativecommons.org/publicdomain/zero/1.0/> .

pim:storage a rdf:Property ;
    rdfs:label "storage"@en ;
    rdfs:range pim:Storage ;
    rdfs:isDefinedBy <http://www.w3.org/ns/pim/space#> ;
    dct:source <http://www.w3.org/ns/pim/space> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

pim:ConfigurationFile a rdfs:Class ;
    rdfs:isDefinedBy <http://www.w3.org/ns/pim/space#> ;
    rdfs:subClassOf <http://www.w3.org/2006/gen/ont#InformationResource> ;
    dct:source <http://www.w3.org/ns/pim/space> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

# A lab result's value, unit and reference range, typed; decisions/quantities.md

cascade:Quantity a owl:Class ;
    rdfs:label "quantity"@en ;
    rdfs:comment "A number a source stated, with its comparator and its unit, as a node of the version that states it, named by the version's IRI, # and its role (value, numerator, denominator, range-low, range-high, reference-low, reference-high) and hashed with it."@en ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/datatypes.html#Quantity> .

cascade:decimalValue a owl:DatatypeProperty ;
    rdfs:label "decimal value"@en ;
    rdfs:comment "The number as an xsd:decimal in XSD's canonical form, for comparing, sorting and bounds: no exponent, no leading zero but the one before a point, no trailing zero after it, no point when it is a whole number, and no sign on zero. A number the source wrote with an exponent is written out in full."@en ;
    rdfs:domain cascade:Quantity ;
    rdfs:range xsd:decimal ;
    rdfs:seeAlso <https://www.w3.org/TR/xmlschema11-2/#decimal> .

cascade:writtenValue a owl:DatatypeProperty ;
    rdfs:label "written value"@en ;
    rdfs:comment "The number exactly as the source wrote it, its precision and any exponent kept: 6.80 is not written 6.8."@en ;
    rdfs:domain cascade:Quantity ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/datatypes.html#decimal> .

cascade:quantityComparator a owl:DatatypeProperty ;
    rdfs:label "quantity comparator"@en ;
    rdfs:comment "That the number is a bound and not the value: <, <=, >= or >, read as the actual value is less than, at most, at least or more than the number. A quantity with none is the value itself."@en ;
    rdfs:domain cascade:Quantity ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/valueset-quantity-comparator.html> .

cascade:ucumUnit a owl:DatatypeProperty ;
    rdfs:label "UCUM unit"@en ;
    rdfs:comment "The unit as a code of UCUM's case-sensitive form, exactly as the source wrote it, its case and its {annotations} kept; written only where the source says its unit is one."@en ;
    rdfs:domain cascade:Quantity ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://ucum.org/ucum> .

cascade:unitText a owl:DatatypeProperty ;
    rdfs:label "unit text"@en ;
    rdfs:comment "The unit as the source shows it to a reader, which need not be a UCUM code."@en ;
    rdfs:domain cascade:Quantity ;
    rdfs:range xsd:string .

cascade:resultValueKind a owl:ObjectProperty ;
    rdfs:label "result value kind"@en ;
    rdfs:comment "Which of the kinds in cascade:ResultValueKinds a lab result's value is, and so which properties hold it."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:range skos:Concept .

cascade:ResultValueKinds a skos:ConceptScheme ;
    rdfs:label "result value kinds"@en ;
    rdfs:comment "The five kinds of value a lab result has, the set FHIR's Observation.value[x], CDA's data types and openEHR's DV_ types agree on. A value a source left out for a reason is no kind."@en ;
    skos:hasTopConcept cascade:QuantityResultValue , cascade:RatioResultValue , cascade:RangeResultValue , cascade:CodedResultValue ,
        cascade:TextResultValue .

cascade:QuantityResultValue a skos:Concept ;
    skos:inScheme cascade:ResultValueKinds ;
    skos:prefLabel "quantity" ;
    skos:definition "A number, with any comparator and unit, in the cascade:Quantity cascade:resultQuantity names."@en .

cascade:RatioResultValue a skos:Concept ;
    skos:inScheme cascade:ResultValueKinds ;
    skos:prefLabel "ratio" ;
    skos:definition "A numerator and a denominator, each a cascade:Quantity: a titre 1:64 is one, its parts with no unit."@en .

cascade:RangeResultValue a skos:Concept ;
    skos:inScheme cascade:ResultValueKinds ;
    skos:prefLabel "range" ;
    skos:definition "A low bound, a high bound or both, each a cascade:Quantity with no comparator, both bounds inside the range."@en .

cascade:CodedResultValue a skos:Concept ;
    skos:inScheme cascade:ResultValueKinds ;
    skos:prefLabel "coded" ;
    skos:definition "An answer from a code system, as the code's IRI, one cascade:resultValueCode for each coding the source gave."@en .

cascade:TextResultValue a skos:Concept ;
    skos:inScheme cascade:ResultValueKinds ;
    skos:prefLabel "text" ;
    skos:definition "Words, in cascade:resultValueText, which no rule compares: two spellings of one finding are not one value."@en .

cascade:resultQuantity a owl:ObjectProperty ;
    rdfs:label "result quantity"@en ;
    rdfs:comment "Of a lab result whose value is a quantity, that quantity, <version>#value."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:range cascade:Quantity .

cascade:resultRatioNumerator a owl:ObjectProperty ;
    rdfs:label "result ratio numerator"@en ;
    rdfs:comment "Of a lab result whose value is a ratio, its numerator, <version>#numerator."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:range cascade:Quantity .

cascade:resultRatioDenominator a owl:ObjectProperty ;
    rdfs:label "result ratio denominator"@en ;
    rdfs:comment "Of a lab result whose value is a ratio, its denominator, <version>#denominator."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:range cascade:Quantity .

cascade:resultValueRangeLow a owl:ObjectProperty ;
    rdfs:label "result value range low"@en ;
    rdfs:comment "Of a lab result whose value is a range, its low bound, <version>#range-low."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:range cascade:Quantity .

cascade:resultValueRangeHigh a owl:ObjectProperty ;
    rdfs:label "result value range high"@en ;
    rdfs:comment "Of a lab result whose value is a range, its high bound, <version>#range-high."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:range cascade:Quantity .

cascade:resultValueCode a owl:ObjectProperty ;
    rdfs:label "result value code"@en ;
    rdfs:comment "Of a lab result whose value is coded, the answer's code IRI, one for each coding the source gave in a code system cascade:CodeSystem names."@en ;
    rdfs:domain cascade:LaboratoryTestResult .

cascade:referenceRangeLow a owl:ObjectProperty ;
    rdfs:label "reference range low"@en ;
    rdfs:comment "The low bound of the one reference range the source marks normal, or of its only one, <version>#reference-low; with no low bound the range is everything up to its high one."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:range cascade:Quantity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/observation-definitions.html#Observation.referenceRange.low> .

cascade:referenceRangeHigh a owl:ObjectProperty ;
    rdfs:label "reference range high"@en ;
    rdfs:comment "The high bound of the one reference range the source marks normal, or of its only one, <version>#reference-high; with no high bound the range is everything from its low one."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:range cascade:Quantity ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/observation-definitions.html#Observation.referenceRange.high> .

cascade:resultInterpretationCode a owl:ObjectProperty ;
    rdfs:label "result interpretation code"@en ;
    rdfs:comment "Of a lab result, a flag its source gave it, such as high, low or abnormal, as a code IRI of cascade:ObservationInterpretation: one for each such coding the source gave, so a result flagged both H and A holds both. It is the source's flag, never one inferred from the value and the reference range."@en ;
    rdfs:domain cascade:LaboratoryTestResult ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/observation-definitions.html#Observation.interpretation> .

# A time written short of the second, and a value absent for a stated reason; decisions/partial-dates-and-absent-reasons.md

cascade:PaddedDateTime a owl:Class ;
    rdfs:label "padded date-time"@en ;
    rdfs:comment "That one of a version's times was written by its source to the hour or the minute, and is held as an xsd:dateTime padded with zeros to the second, with no time zone where the source gave none: a node of the version, named by the version's IRI, #padded- and the local name of the property it is about, and hashed with it. The padded time sorts, compares and falls in a range as any xsd:dateTime does, and is never read as exact to the second: a query that needs its precision reads cascade:timeAsWritten. A year, a month or a day is no padded time, since its own type holds its precision."@en ;
    rdfs:seeAlso <https://hl7.org/fhir/us/ccda/en/mappingGuidance.html> .

cascade:paddedDateTime a owl:ObjectProperty ;
    rdfs:label "padded date-time"@en ;
    rdfs:comment "Of a version, the node saying that one of its times was written short of the second, one for each such property."@en ;
    rdfs:range cascade:PaddedDateTime .

cascade:paddedDateTimeProperty a owl:ObjectProperty ;
    rdfs:label "padded date-time property"@en ;
    rdfs:comment "The property of the version whose value is the padded time."@en ;
    rdfs:domain cascade:PaddedDateTime ;
    rdfs:range rdf:Property .

cascade:timeAsWritten a owl:DatatypeProperty ;
    rdfs:label "time as written"@en ;
    rdfs:comment "The time exactly as the source wrote it, every character kept: a CDA time to the hour, 2023053114, is written 2023053114, its offset too where it had one. How many digits it has is its precision."@en ;
    rdfs:domain cascade:PaddedDateTime ;
    rdfs:range xsd:string .

cascade:ValueAbsentForReason a owl:Class ;
    rdfs:label "value absent for a reason"@en ;
    rdfs:comment "That a version holds no value for one property because its source said why: a node of the version, named by the version's IRI, #absent- and the property's local name, and hashed with it. A version holds it only where it holds no value for that property. A value a source left out without a reason has none, since a pod read open-world takes a missing triple as nothing said."@en ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/extension-data-absent-reason.html> , <https://terminology.hl7.org/CodeSystem-v3-NullFlavor.html> .

cascade:valueAbsentForReason a owl:ObjectProperty ;
    rdfs:label "value absent for a reason"@en ;
    rdfs:comment "Of a version, the node saying why it holds no value for one property, one for each such property."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:PatientProfile cascade:AllergyOrIntolerance cascade:ProblemOrDiagnosis
        cascade:Vaccination cascade:MedicalProcedure cascade:PrescribedOrReportedMedication cascade:StructuredDosage
        cascade:MedicationDispense cascade:LaboratoryTestResult cascade:DiagnosticReport cascade:ClinicalNoteOrDocument ) ] ;
    rdfs:range cascade:ValueAbsentForReason .

cascade:absentValueProperty a owl:ObjectProperty ;
    rdfs:label "absent value property"@en ;
    rdfs:comment "The property the version holds no value for. A lab result's value, of whatever kind, is cascade:resultValueKind's: with no value there is no kind."@en ;
    rdfs:domain cascade:ValueAbsentForReason ;
    rdfs:range rdf:Property .

cascade:absentReasonCode a owl:ObjectProperty ;
    rdfs:label "absent reason code"@en ;
    rdfs:comment "Why the value is absent, as the source said it: the code's IRI in cascade:DataAbsentReason, as FHIR's dataAbsentReason or data-absent-reason extension gives it, or in cascade:NullFlavor, as CDA's nullFlavor gives it, one for each such coding the source gave. It is never mapped from one system into the other when written: a view that needs one list maps at read, and shows the source's own code where HL7's map has none."@en ;
    rdfs:domain cascade:ValueAbsentForReason .

# Reference tables and the matcher's rule list, as a runtime is given them; none of these is written to a pod

cascade:defaultTableVersion a owl:ObjectProperty ;
    rdfs:label "default table version"@en ;
    rdfs:comment "The version of the series a runtime uses until the pod names another as current."@en ;
    rdfs:domain cascade:ReferenceSeries ;
    rdfs:range prov:Entity .

cascade:RuleListRow a owl:Class ;
    rdfs:label "rule list row"@en ;
    rdfs:comment "One row of a version of the matcher's rule list: the matcher rule it runs, the justification it gives or, for a rule that files findings for review instead of judgments, the kind of finding it files, the classes of record it applies to, the comparison query it runs and the hash of that query's bytes, and the kind of table the query reads, if any. A row is a blank node of its version; the rule is the term it names."@en .

cascade:justifiedAs a owl:ObjectProperty ;
    rdfs:label "justified as"@en ;
    rdfs:comment "The justification a judgment the rule writes gives."@en ;
    rdfs:domain cascade:RuleListRow .

cascade:findingKind a owl:ObjectProperty ;
    rdfs:label "finding kind"@en ;
    rdfs:comment "Of a row whose rule files findings for review rather than judgments, the kind of cascade:FindingForReview it files for each pair its query gives, a concept of cascade:FindingForReviewKinds."@en ;
    rdfs:domain cascade:RuleListRow ;
    rdfs:range skos:Concept .

cascade:appliesToClass a owl:ObjectProperty ;
    rdfs:label "applies to class"@en ;
    rdfs:comment "A class of record the rule compares, as SHACL's sh:targetClass names a class."@en ;
    rdfs:domain cascade:RuleListRow ;
    rdfs:range owl:Class .

cascade:matcherRule a owl:ObjectProperty ;
    rdfs:label "matcher rule"@en ;
    rdfs:comment "The matcher rule a row of a rule list runs, or that a matcher judgment was made by: one of the cascade:MatcherRule terms of runtime/matcher.feature. A matcher judgment's name takes it."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:RuleListRow cascade:Judgment ) ] ;
    rdfs:range cascade:MatcherRule .

cascade:MatcherRule a owl:Class ;
    rdfs:label "matcher rule"@en ;
    rdfs:comment "One of the rules of runtime/matcher.feature, R1 and on, each a set of steps a matcher follows to compare two records and judge them the same or different, or to file a finding for review of them."@en ;
    rdfs:subClassOf prov:Plan .

cascade:queryPath a owl:DatatypeProperty ;
    rdfs:label "query path"@en ;
    rdfs:comment "The path under queries/ of the comparison query the rule runs."@en ;
    rdfs:domain cascade:RuleListRow ;
    rdfs:range xsd:string .

cascade:queryHash a owl:ObjectProperty ;
    rdfs:label "query hash"@en ;
    rdfs:comment "The ni:///sha-256; name of the bytes of the rule's query file; a run whose file does not hash to it is refused."@en ;
    rdfs:domain cascade:RuleListRow .

cascade:rowOfRuleListVersion a owl:ObjectProperty ;
    rdfs:label "row of rule list version"@en ;
    rdfs:comment "The rule list version a row belongs to, as a pod describes it: a version's description names each row <version>#<the rule term's local name>, with its cascade:matcherRule and cascade:queryHash, so a lens can compare the row for a matcher judgment's rule in two versions."@en ;
    rdfs:domain cascade:RuleListRow ;
    rdfs:range prov:Entity .

# Table kinds, their rows and the codes rows name

cascade:tableKind a owl:ObjectProperty ;
    rdfs:label "table kind"@en ;
    rdfs:comment "Of a series, the one kind of table its versions are; of a rule of the rule list, the kind whose rows its query reads. A runtime gives the query the current version of every series of that kind, each in the graph named by the version's IRI."@en ;
    rdfs:range cascade:TableKind .

cascade:TableKind a owl:Class ;
    rdfs:label "table kind"@en ;
    rdfs:comment "What a table's rows say, whatever source fills it: the shape every row conforms to and the property a row is found by. A row is a subject of a version's rows with every triple it is the subject of, and holds no blank node."@en .

cascade:rowShape a owl:ObjectProperty ;
    rdfs:label "row shape"@en ;
    rdfs:comment "The SHACL shape every subject of a version's rows conforms to."@en ;
    rdfs:domain cascade:TableKind .

cascade:foundBy a owl:ObjectProperty ;
    rdfs:label "found by"@en ;
    rdfs:comment "A property whose value is a code a row is found by, or cascade:RowSubject when the row is about the code itself, as its subject."@en ;
    rdfs:domain cascade:TableKind .

cascade:VaccineGroups a cascade:TableKind ;
    rdfs:label "vaccine groups"@en ;
    rdfs:comment "An SSSOM mapping kind: a vaccine code and a group it is a member of (obo:RO_0002350). A code in several groups has a row for each, and a group's own code is a member of itself."@en ;
    cascade:rowShape cascade:VaccineGroupRowShape ;
    cascade:foundBy owl:annotatedSource .

cascade:CodeNames a cascade:TableKind ;
    rdfs:label "code names"@en ;
    rdfs:comment "A code's names in SKOS, as its publisher gives them."@en ;
    cascade:rowShape cascade:CodeNameRowShape ;
    cascade:foundBy cascade:RowSubject ;
    cascade:readByAppPages true .

cascade:RetiredCodes a cascade:TableKind ;
    rdfs:label "retired codes"@en ;
    rdfs:comment "A retired code, with each replacement its publisher gives. A code that is not retired has no row; a mapping kind keeps a retired code's rows."@en ;
    cascade:rowShape cascade:RetiredCodeRowShape ;
    cascade:foundBy cascade:RowSubject ;
    cascade:readByAppPages true .

cascade:ProductIngredients a cascade:TableKind ;
    rdfs:label "product ingredients"@en ;
    rdfs:comment "An SSSOM mapping kind: an RxNorm concept and its active ingredient (obo:RO_0002248), its one ingredient or, with several, the multiple ingredient concept of exactly those. An ingredient has itself as its ingredient. A concept also has a row to each distinct precise ingredient RxNorm ties to it (cascade:hasPreciseIngredient). A version holding any precise ingredient row holds one for each concept whose RxNorm relations reach a precise ingredient, a brand name, a drug, a component and a dose form or dose form group version of one alike, so a concept such a version gives none holds its ingredient itself."@en ;
    cascade:rowShape cascade:ProductIngredientRowShape ;
    cascade:foundBy owl:annotatedSource .

cascade:hasPreciseIngredient a owl:ObjectProperty ;
    rdfs:label "has precise ingredient"@en ;
    rdfs:comment "Of an RxNorm concept, a precise ingredient (PIN) RxNorm ties to it: a component's or a brand name's has_precise_ingredient, a dose form's has_boss, or a drug's, a brand's or a dose form group's by way of those. The ingredient the PIN is a form of stays the concept's active ingredient (obo:RO_0002248)."@en ;
    dct:source <https://lhncbc.nlm.nih.gov/RxNav/APIs/api-RxNorm.getRelaTypes.html> .

cascade:BrandGenerics a cascade:TableKind ;
    rdfs:label "brand generics"@en ;
    rdfs:comment "An SSSOM mapping kind: a branded RxNorm concept and its generic."@en ;
    cascade:rowShape cascade:BrandGenericRowShape ;
    cascade:foundBy owl:annotatedSource .

cascade:DrugProducts a cascade:TableKind ;
    rdfs:label "drug products"@en ;
    rdfs:comment "A code that names one drug product, generic or branded, a clinical drug or a pack (RxNorm's SCD, SBD, GPCK and BPCK), with its term type as its publisher gives it. A code with no row is not known to name one product: an ingredient, a strength, a dose form, a brand name or a salt has none."@en ;
    cascade:rowShape cascade:DrugProductRowShape ;
    cascade:foundBy cascade:RowSubject .

cascade:termType a owl:DatatypeProperty ;
    rdfs:label "term type"@en ;
    rdfs:comment "Of a code, its term type as its publisher writes it; for RxNorm, the TTY of RXNCONSO."@en ;
    rdfs:range xsd:string .

cascade:CodeConversions a cascade:TableKind ;
    rdfs:label "code conversions"@en ;
    rdfs:comment "An SSSOM mapping kind: a retired code and each code in effect its publisher converts its data to, one dct:isReplacedBy row each, with its cardinality. The cardinality is counted along each conversion on the way, not over the table as SSSOM counts it: n:… when, at any step of the path from the retired code to the code in effect, the publisher gives the step's code anything but the step's own predecessor as a previous code, …:n when any code on the path before the end converts into more than one code, so a pure chain A to B to C is published as A to C as 1:1. A row of the earlier form, skos:exactMatch with no cardinality, is still read."@en ;
    cascade:rowShape cascade:CodeConversionRowShape ;
    cascade:foundBy owl:annotatedSource , owl:annotatedTarget .

cascade:VariantClassifications a cascade:TableKind ;
    rdfs:label "variant classifications"@en ;
    rdfs:comment "What a source such as ClinVar says of a variant: a row for each variation, found by its variation IRI and by each coding NM_ expression a submitter used or its ClinVar name holds, holding the aggregate germline classification and review status as concepts, the day it was last evaluated and how many submitters contribute. A join through these rows is identity and reads no classification. A version states the genes it covers (cascade:coversGene), so a page can tell a variant in a gene the series does not cover from a covered one the rows do not hold."@en ;
    cascade:rowShape cascade:VariantClassificationRowShape ;
    cascade:foundBy cascade:RowSubject , cascade:hgvsExpression ;
    cascade:readByAppPages true .

cascade:PanelMembers a cascade:TableKind ;
    rdfs:label "panel members"@en ;
    rdfs:comment "An SSSOM mapping kind: a LOINC panel and each member it directly has (obo:RO_0002351), both LOINC codes, with the member's place in the panel (cascade:panelSequence) and whether the panel requires it (cascade:observationRequiredInPanel) as LOINC gives them. A nested panel is a member of its parent and has its own members as rows of its own, so nesting is the rows, never a flattened tree. A member listed at two places in one panel is two rows. OMOP's relationship Panel contains is the same relation, and has no IRI. A row is found by its panel and by its member."@en ;
    cascade:rowShape cascade:PanelMemberRowShape ;
    cascade:foundBy owl:annotatedSource , owl:annotatedTarget ;
    cascade:readByAppPages true .

cascade:DrugClasses a cascade:TableKind ;
    rdfs:label "drug classes"@en ;
    rdfs:comment "An SSSOM mapping kind: an RxNorm code and a class it is in, one predicate for each relation: its established pharmacologic class (cascade:establishedPharmacologicClass), its mechanism of action (cascade:mechanismOfActionClass), its physiologic effect (cascade:physiologicEffectClass) or its chemical structure (cascade:chemicalStructureClass). The rows are FDA's (Authority FDASPL) as MED-RT indexes them, on an ingredient, a precise ingredient or a code outside the prescribable set; a class is a MED-RT code, and a chemical structure also a MeSH code."@en ;
    cascade:rowShape cascade:DrugClassRowShape ;
    cascade:foundBy owl:annotatedSource ;
    cascade:readByAppPages true .

cascade:ValueSetExpansions a cascade:TableKind ;
    rdfs:label "value set expansions"@en ;
    rdfs:comment "An SSSOM mapping kind: a value set's expansion as its publisher gives it, one row for each code it contains, the code's IRI a member of (obo:RO_0002350) the value set named by its canonical URL as an IRI, as VSAC names one http://cts.nlm.nih.gov/fhir/ValueSet/<OID>. A version is one expansion of one value set and names that value set (cascade:expandedValueSet), every row's target being it, so a rule cites \"checked this value set at this version, no member\" from the version alone, even when every code the expansion contains was left out. Its pav:version is the expansion's timestamp, or its identifier where the publisher gives no timestamp; the value set definition's own version is cascade:valueSetDefinitionVersion. The code systems' versions each member was listed under (contains.version) are not kept. A code in a system with no code IRI is left out, and the version counts what was left out (cascade:expansionMembersWithoutCodeIriLeftOutCount). A row is found by its code, which is how a pod's codes reach the value sets they are in."@en ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/valueset-definitions.html#ValueSet.expansion.contains> ;
    cascade:rowShape cascade:ValueSetExpansionRowShape ;
    cascade:foundBy owl:annotatedSource .

cascade:expandedValueSet a owl:ObjectProperty ;
    rdfs:label "expanded value set"@en ;
    rdfs:comment "Of a version of a value set expansions series, the value set it expands, by its canonical URL as an IRI exactly as the source's ValueSet.url gives it. Each row of the version has it as its target, so a version with no row still says which value set it checked."@en ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/valueset-definitions.html#ValueSet.url> .

cascade:valueSetDefinitionVersion a owl:DatatypeProperty ;
    rdfs:label "value set definition version"@en ;
    rdfs:comment "Of a version of a value set expansions series, the version of the value set's definition the expansion was computed from, as the source gives ValueSet.version. A version without it is of a value set whose source gives none."@en ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/valueset-definitions.html#ValueSet.version> ;
    rdfs:range xsd:string .

cascade:expansionMembersWithoutCodeIriLeftOutCount a owl:DatatypeProperty ;
    rdfs:label "expansion members without code IRI left out count"@en ;
    rdfs:comment "Of a version of a value set expansions series, how many codes the expansion contains that are in a system with no code IRI, and so have no row, as an eCQM expansion may list HCPCS codes. A version without it left none out."@en ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/valueset-definitions.html#ValueSet.expansion.contains.system> ;
    rdfs:range xsd:integer .

cascade:panelSequence a owl:DatatypeProperty ;
    rdfs:label "panel sequence"@en ;
    rdfs:comment "Of a panel member row, the member's SEQUENCE in the panel, as LOINC gives it in its PanelsAndForms file."@en ;
    rdfs:range xsd:integer .

cascade:observationRequiredInPanel a owl:DatatypeProperty ;
    rdfs:label "observation required in panel"@en ;
    rdfs:comment "Of a panel member row, whether the panel requires the member, as LOINC writes ObservationRequiredInPanel in its PanelsAndForms file (R, O, C, R-a, Rflx, Rflx-a). A row without it is a member LOINC gives no requirement for."@en ;
    rdfs:range xsd:string .

cascade:establishedPharmacologicClass a owl:ObjectProperty ;
    rdfs:label "established pharmacologic class"@en ;
    rdfs:comment "Of a drug, a class FDA lists it in by its established pharmacologic class, MED-RT's has_EPC."@en ;
    dct:source <https://lhncbc.nlm.nih.gov/RxNav/applications/RxClassIntro.html> .

cascade:mechanismOfActionClass a owl:ObjectProperty ;
    rdfs:label "mechanism of action class"@en ;
    rdfs:comment "Of a drug, a class naming how it acts, MED-RT's has_MoA."@en ;
    rdfs:seeAlso obo:NCIT_R124 ;
    dct:source <https://lhncbc.nlm.nih.gov/RxNav/applications/RxClassIntro.html> .

cascade:physiologicEffectClass a owl:ObjectProperty ;
    rdfs:label "physiologic effect class"@en ;
    rdfs:comment "Of a drug, a class naming what it does in the body, MED-RT's has_PE."@en ;
    rdfs:seeAlso obo:NCIT_R125 ;
    dct:source <https://lhncbc.nlm.nih.gov/RxNav/applications/RxClassIntro.html> .

cascade:chemicalStructureClass a owl:ObjectProperty ;
    rdfs:label "chemical structure class"@en ;
    rdfs:comment "Of a drug, a class naming its chemical structure, MED-RT's has_SC: a MED-RT code or a MeSH code."@en ;
    dct:source <https://lhncbc.nlm.nih.gov/RxNav/applications/RxClassIntro.html> .

cascade:readByAppPages a owl:DatatypeProperty ;
    rdfs:label "read by app pages"@en ;
    rdfs:comment "True when an app keeps a series of the kind, and packs it, though no rule of its rule list reads the kind: its pages read the rows. A kind that is neither named by a rule list nor marked is skipped."@en ;
    rdfs:domain cascade:TableKind ;
    rdfs:range xsd:boolean .

cascade:coversGene a owl:DatatypeProperty ;
    rdfs:label "covers gene"@en ;
    rdfs:comment "Of a version of a series of a kind that covers some genes, an HGNC approved symbol of a gene it covers, any number. A version without it covers no named gene, and a changed list of genes is a new version."@en ;
    rdfs:range xsd:string .

cascade:hgvsExpression a owl:ObjectProperty ;
    rdfs:label "HGVS expression"@en ;
    rdfs:comment "Of a variant classification row, a coding NM_ expression a submitter used for its variation, or the one its ClinVar name holds, as the cascade:HGVS IRI."@en .

cascade:clinvarClassification a owl:ObjectProperty ;
    rdfs:label "ClinVar classification"@en ;
    rdfs:comment "Of a variant classification row, a concept of cascade:ClinVarClassifications its aggregate germline classification parses to."@en ;
    rdfs:range skos:Concept .

cascade:clinvarReviewStatus a owl:ObjectProperty ;
    rdfs:label "ClinVar review status"@en ;
    rdfs:comment "Of a variant classification row, the concept of cascade:ClinVarReviewStatuses its review status is."@en ;
    rdfs:range skos:Concept .

cascade:lastEvaluated a owl:DatatypeProperty ;
    rdfs:label "last evaluated"@en ;
    rdfs:comment "Of a variant classification row, the day its newest submitter evaluated the variation. It is not the day the aggregate changed."@en ;
    rdfs:range xsd:date .

cascade:contributingSubmitterCount a owl:DatatypeProperty ;
    rdfs:label "contributing submitter count"@en ;
    rdfs:comment "Of a variant classification row, how many submissions contribute to its aggregate classification, from a release that lists them (SCVsForAggregateGermlineClassification)."@en ;
    rdfs:range xsd:integer .

cascade:submitterCount a owl:DatatypeProperty ;
    rdfs:label "submitter count"@en ;
    rdfs:comment "Of a variant classification row, how many submitters it has, as an older release counts them (NumberSubmitters), which includes any whose submission does not contribute. A row holds this or cascade:contributingSubmitterCount, so it says which count it has."@en ;
    rdfs:range xsd:integer .

cascade:RowSubject a rdf:Property ;
    rdfs:label "the row's subject"@en ;
    rdfs:comment "Not stated by any row: as a kind's cascade:foundBy, that each row is found by its own subject, the code it is about."@en .

cascade:CodeSystem a owl:Class ;
    rdfs:label "code system"@en ;
    rdfs:comment "A code system whose codes are IRIs of one form: its void:uriSpace, the IRI stem, followed by the code percent-encoded as SPARQL's ENCODE_FOR_URI does, every character but A-Z a-z 0-9 - _ . ~ as % and two upper-case hexadecimal digits of its UTF-8. Unlike R2RML's IRI-safe form (section 7.3), which leaves ucschar unencoded, it encodes every non-ASCII character; no code of a system here holds one, so the two agree on every code today. The stem is the owner's or a community registry's where one passes decisions/code-iris.md, and Cascade's own under https://ns.cascadeprotocol.org/codes/ otherwise; it is never the FHIR Coding.system URI, which cascade:codingSystemUri holds (https://hl7.org/fhir/R5/rdf.html#iri-stem). A stem the owner or HL7 Terminology registers later is recorded on the system beside its void:uriSpace and read as each code's skos:exactMatch; a code's IRI is never renamed. A record's code written as a literal joins a table as that IRI: the stem followed by the literal percent-encoded as ENCODE_FOR_URI does, so a literal of unreserved characters only is its own tail and NM_000249.4:c.2042C>T is https://ns.cascadeprotocol.org/codes/hgvs/NM_000249.4%3Ac.2042C%3ET."@en .

cascade:codingSystemUri a owl:DatatypeProperty ;
    rdfs:label "coding system URI"@en ;
    rdfs:comment "The code system's URI as FHIR's Coding.system names it, HL7 Terminology's preferred one. A reader writing FHIR takes Coding.system from it and Coding.code from a code IRI's tail after the void:uriSpace, percent-decoded."@en ;
    rdfs:domain cascade:CodeSystem ;
    rdfs:range xsd:anyURI ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/datatypes-definitions.html#Coding.system> .

cascade:codePageUrlTemplate a owl:DatatypeProperty ;
    rdfs:label "code page URL template"@en ;
    rdfs:comment "The address of each code's own page at the code system's publisher, as an RFC 6570 level 1 template whose only expression is {code}. {code} is the code as written, and expanding it by RFC 6570 simple expansion percent-encodes it as ENCODE_FOR_URI does, so it yields the same tail the code's IRI has after the void:uriSpace. A code system without one publishes no page per code."@en ;
    rdfs:domain cascade:CodeSystem ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://www.wikidata.org/wiki/Property:P1630> ;
    dct:source <https://www.rfc-editor.org/rfc/rfc6570> .

cascade:CVX a cascade:CodeSystem ;
    rdfs:label "CVX"@en ;
    rdfs:comment "The code as CDC writes it, leading zero kept and trailing spaces trimmed: 08, 141. A record coded 8 joins nothing."@en ;
    void:uriSpace "https://ns.cascadeprotocol.org/codes/cvx/" ;
    cascade:codingSystemUri "http://hl7.org/fhir/sid/cvx"^^xsd:anyURI .

cascade:RxNorm a cascade:CodeSystem ;
    rdfs:label "RxNorm"@en ;
    rdfs:comment "The RXCUI."@en ;
    void:uriSpace "https://ns.cascadeprotocol.org/codes/rxnorm/" ;
    cascade:codingSystemUri "http://www.nlm.nih.gov/research/umls/rxnorm"^^xsd:anyURI .

cascade:NDC a cascade:CodeSystem ;
    rdfs:label "NDC"@en ;
    rdfs:comment "The 11-digit HIPAA form, 5-4-2 with no hyphens, as RxNorm's RXNSAT gives it: Cascade's own space. FHIR's NDC code is the 10-digit hyphenated label code, so an NDC is normalised into this space."@en ;
    void:uriSpace "https://ns.cascadeprotocol.org/codes/ndc11/" ;
    cascade:codingSystemUri "http://hl7.org/fhir/sid/ndc"^^xsd:anyURI ;
    dct:source <https://hl7.org/fhir/R4/ndc.html> .

cascade:ICD10CM a cascade:CodeSystem ;
    rdfs:label "ICD-10-CM"@en ;
    rdfs:comment "The code as FHIR writes it."@en ;
    void:uriSpace "https://ns.cascadeprotocol.org/codes/icd10cm/" ;
    cascade:codingSystemUri "http://hl7.org/fhir/sid/icd-10-cm"^^xsd:anyURI .

cascade:SNOMEDCT a cascade:CodeSystem ;
    rdfs:label "SNOMED CT"@en ;
    rdfs:comment "The concept ID. snomed.info/sct is the code system's own URI and, with a module, names its editions; it never names a concept."@en ;
    void:uriSpace "http://snomed.info/id/" ;
    cascade:codingSystemUri "http://snomed.info/sct"^^xsd:anyURI ;
    dct:source <https://terminology.hl7.org/SNOMEDCT.html> .

cascade:LOINC a cascade:CodeSystem ;
    rdfs:label "LOINC"@en ;
    rdfs:comment "The LOINC code as LOINC writes it, with its check digit: 2823-3."@en ;
    void:uriSpace "http://loinc.org/rdf/" ;
    cascade:codePageUrlTemplate "https://loinc.org/{code}" ;
    cascade:codingSystemUri "http://loinc.org"^^xsd:anyURI ;
    dct:source <https://github.com/HL7/UTG/blob/18bfa0662fbf6c9f6f51922e46c534b00d987848/input/sourceOfTruth/external/v3/namingSystems/v3-loinc.xml> .

cascade:MEDRT a cascade:CodeSystem ;
    rdfs:label "MED-RT"@en ;
    rdfs:comment "The NUI as MED-RT writes it: N0000175562. Cascade's own space: neither VA, HL7 Terminology nor NCI EVS publishes an IRI per code."@en ;
    void:uriSpace "https://ns.cascadeprotocol.org/codes/medrt/" ;
    cascade:codingSystemUri "http://va.gov/terminology/medrt"^^xsd:anyURI ;
    dct:source <https://terminology.hl7.org/MEDRT.html> .

cascade:MeSH a cascade:CodeSystem ;
    rdfs:label "MeSH"@en ;
    rdfs:comment "A MeSH unique ID as NLM writes it: a concept M0006414, as MED-RT gives them, or a descriptor D004095."@en ;
    void:uriSpace "http://id.nlm.nih.gov/mesh/" ;
    cascade:codePageUrlTemplate "https://id.nlm.nih.gov/mesh/{code}.html" ;
    cascade:codingSystemUri "https://www.nlm.nih.gov/mesh"^^xsd:anyURI ;
    dct:source <https://terminology.hl7.org/CodeSystem-MSH.html> .

cascade:UNII a cascade:CodeSystem ;
    rdfs:label "UNII"@en ;
    rdfs:comment "The UNII as FDA's GSRS gives it."@en ;
    void:uriSpace "https://identifiers.org/unii:" ;
    cascade:codingSystemUri "http://fdasis.nlm.nih.gov"^^xsd:anyURI ;
    dct:source <https://hl7.org/fhir/R4/terminologies-systems.html> .

cascade:CPT a cascade:CodeSystem ;
    rdfs:label "CPT"@en ;
    rdfs:comment "The CPT code."@en ;
    void:uriSpace "https://ns.cascadeprotocol.org/codes/cpt/" ;
    cascade:codingSystemUri "http://www.ama-assn.org/go/cpt"^^xsd:anyURI ;
    dct:source <https://hl7.org/fhir/R4/terminologies-systems.html> .

cascade:ICD9CM a cascade:CodeSystem ;
    rdfs:label "ICD-9-CM"@en ;
    rdfs:comment "The code as FHIR writes it."@en ;
    void:uriSpace "https://ns.cascadeprotocol.org/codes/icd9cm/" ;
    cascade:codingSystemUri "http://hl7.org/fhir/sid/icd-9-cm"^^xsd:anyURI ;
    dct:source <https://hl7.org/fhir/R4/terminologies-systems.html> .

cascade:HGVS a cascade:CodeSystem ;
    rdfs:label "HGVS"@en ;
    rdfs:comment "A coding expression in its normal form: the reference sequence with its version, a colon and c., then the change, as NM_000249.4:c.2042C>T, with no gene in parentheses and no protein change. The code holds characters an IRI cannot, so it is percent-encoded: the colon is %3A and > is %3E. Only an NM_ expression is a key of a table."@en ;
    void:uriSpace "https://ns.cascadeprotocol.org/codes/hgvs/" ;
    cascade:codingSystemUri "http://varnomen.hgvs.org"^^xsd:anyURI ;
    dct:source <https://github.com/HL7/UTG/blob/18bfa0662fbf6c9f6f51922e46c534b00d987848/input/sourceOfTruth/external/v3/namingSystems/v3-hgvs.xml> .

cascade:ClinVar a cascade:CodeSystem ;
    rdfs:label "ClinVar"@en ;
    rdfs:comment "A ClinVar variation, by its VariationID: the digits, no leading zero, as 90011. The accession VCV000090011 is that number zero-padded and an SCV or RCV accession is not a variation."@en ;
    void:uriSpace "https://identifiers.org/clinvar:" ;
    cascade:codePageUrlTemplate "https://www.ncbi.nlm.nih.gov/clinvar/variation/{code}/" ;
    cascade:codingSystemUri "http://www.ncbi.nlm.nih.gov/clinvar"^^xsd:anyURI ;
    dct:source <https://github.com/HL7/UTG/blob/18bfa0662fbf6c9f6f51922e46c534b00d987848/input/sourceOfTruth/external/hta/namingSystems/clinVarV.xml> .

cascade:DataAbsentReason a cascade:CodeSystem ;
    rdfs:label "FHIR data absent reason"@en ;
    rdfs:comment "The code as FHIR writes it: unknown, asked-unknown, masked. Cascade's own space: HL7 Terminology, which publishes the system, registers no IRI stem for it, and Bioregistry names HL7's code systems, not their codes."@en ;
    void:uriSpace "https://ns.cascadeprotocol.org/codes/data-absent-reason/" ;
    cascade:codingSystemUri "http://terminology.hl7.org/CodeSystem/data-absent-reason"^^xsd:anyURI ;
    dct:source <https://terminology.hl7.org/CodeSystem-data-absent-reason.html> .

cascade:NullFlavor a cascade:CodeSystem ;
    rdfs:label "HL7 v3 NullFlavor"@en ;
    rdfs:comment "The code as CDA writes it in nullFlavor, upper case: NI, UNK, ASKU. Cascade's own space, as cascade:DataAbsentReason's is."@en ;
    void:uriSpace "https://ns.cascadeprotocol.org/codes/nullflavor/" ;
    cascade:codingSystemUri "http://terminology.hl7.org/CodeSystem/v3-NullFlavor"^^xsd:anyURI ;
    dct:source <https://terminology.hl7.org/CodeSystem-v3-NullFlavor.html> .

cascade:ObservationInterpretation a cascade:CodeSystem ;
    rdfs:label "HL7 v3 ObservationInterpretation"@en ;
    rdfs:comment "The code as FHIR's Observation.interpretation and C-CDA's interpretationCode write it, case kept: H, A, LL, >. A code holding < or > is percent-encoded, so > is %3E. C-CDA names the system by the OID 2.16.840.1.113883.5.83. Cascade's own space, as cascade:DataAbsentReason's is."@en ;
    void:uriSpace "https://ns.cascadeprotocol.org/codes/observationinterpretation/" ;
    cascade:codingSystemUri "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"^^xsd:anyURI ;
    dct:source <https://terminology.hl7.org/CodeSystem-v3-ObservationInterpretation.html> .

cascade:ClinVarClassifications a skos:ConceptScheme ;
    rdfs:label "ClinVar classifications"@en ;
    rdfs:comment "The values of ClinVar's aggregate germline classification, as it spells them. ClinVar joins ACMG terms with a slash and other terms with a semicolon, so a value is parsed into concepts, never matched whole. A renamed label is an alternative label of the concept it names."@en ;
    skos:hasTopConcept cascade:Pathogenic , cascade:LikelyPathogenic , cascade:UncertainSignificance , cascade:LikelyBenign , cascade:Benign ,
        cascade:ClinVarConflicting , cascade:ClinVarConflictingData , cascade:ClinVarEstablishedRiskAllele , cascade:ClinVarLikelyRiskAllele ,
        cascade:ClinVarUncertainRiskAllele , cascade:ClinVarDrugResponse , cascade:ClinVarRiskFactor , cascade:ClinVarAssociation ,
        cascade:ClinVarProtective , cascade:ClinVarConfersSensitivity , cascade:ClinVarAffects , cascade:ClinVarOther , cascade:ClinVarNotProvided ,
        cascade:ClinVarCombinationOnly , cascade:ClinVarNoClassificationsFromUnflaggedRecords , cascade:ClinVarNoClassificationForTheSingleVariant .

cascade:ClinVarReviewStatuses a skos:ConceptScheme ;
    rdfs:label "ClinVar review statuses"@en ;
    rdfs:comment "The values of ClinVar's review status, as it spells them. A value holds commas and is matched whole, never split."@en ;
    skos:hasTopConcept cascade:ClinVarPracticeGuideline , cascade:ClinVarExpertPanel , cascade:ClinVarMultipleSubmittersNoConflicts ,
        cascade:ClinVarConflictingClassifications , cascade:ClinVarSingleSubmitter , cascade:ClinVarNoAssertionCriteria ,
        cascade:ClinVarNoClassificationProvided , cascade:ClinVarNoClassificationForTheSingleVariant ,
        cascade:ClinVarNoClassificationsFromUnflaggedRecords .

cascade:Pathogenic a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "Pathogenic" ;
    skos:exactMatch <http://loinc.org/rdf/LA6668-3> .

cascade:LikelyPathogenic a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "Likely pathogenic" ;
    skos:exactMatch <http://loinc.org/rdf/LA26332-9> .

cascade:UncertainSignificance a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "Uncertain significance" ;
    skos:exactMatch <http://loinc.org/rdf/LA26333-7> .

cascade:LikelyBenign a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "Likely benign" ;
    skos:exactMatch <http://loinc.org/rdf/LA26334-5> .

cascade:Benign a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "Benign" ;
    skos:exactMatch <http://loinc.org/rdf/LA6675-8> .

cascade:ClinVarConflicting a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "Conflicting classifications of pathogenicity" ;
    skos:altLabel "Conflicting interpretations of pathogenicity" .

cascade:ClinVarConflictingData a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "conflicting data from submitters" .

cascade:ClinVarPathogenicLowPenetrance a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "Pathogenic, low penetrance" ;
    skos:broader cascade:Pathogenic .

cascade:ClinVarLikelyPathogenicLowPenetrance a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "Likely pathogenic, low penetrance" ;
    skos:broader cascade:LikelyPathogenic .

cascade:ClinVarVusHigh a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "VUS-high" ;
    skos:broader cascade:UncertainSignificance .

cascade:ClinVarVusMid a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "VUS-mid" ;
    skos:broader cascade:UncertainSignificance .

cascade:ClinVarVusLow a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "VUS-low" ;
    skos:broader cascade:UncertainSignificance .

cascade:ClinVarEstablishedRiskAllele a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "Established risk allele" .

cascade:ClinVarLikelyRiskAllele a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "Likely risk allele" .

cascade:ClinVarUncertainRiskAllele a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "Uncertain risk allele" .

cascade:ClinVarDrugResponse a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "drug response" .

cascade:ClinVarRiskFactor a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "risk factor" .

cascade:ClinVarAssociation a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "association" .

cascade:ClinVarProtective a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "protective" .

cascade:ClinVarConfersSensitivity a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "confers sensitivity" .

cascade:ClinVarAffects a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "Affects" .

cascade:ClinVarOther a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "other" .

cascade:ClinVarNotProvided a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "not provided" .

cascade:ClinVarCombinationOnly a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications ;
    skos:prefLabel "classified only as part of a combination" ;
    skos:notation "-" ;
    rdfs:comment "ClinVar writes a hyphen for a variation classified only in combination with another variant; the hyphen is the concept's notation and the whole value."@en .

cascade:ClinVarNoClassificationsFromUnflaggedRecords a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications , cascade:ClinVarReviewStatuses ;
    skos:prefLabel "no classifications from unflagged records" .

cascade:ClinVarNoClassificationForTheSingleVariant a skos:Concept ;
    skos:inScheme cascade:ClinVarClassifications , cascade:ClinVarReviewStatuses ;
    skos:prefLabel "no classification for the single variant" ;
    skos:altLabel "no interpretation for the single variant" .

cascade:ClinVarPracticeGuideline a skos:Concept ;
    skos:inScheme cascade:ClinVarReviewStatuses ;
    skos:prefLabel "practice guideline" .

cascade:ClinVarExpertPanel a skos:Concept ;
    skos:inScheme cascade:ClinVarReviewStatuses ;
    skos:prefLabel "reviewed by expert panel" .

cascade:ClinVarMultipleSubmittersNoConflicts a skos:Concept ;
    skos:inScheme cascade:ClinVarReviewStatuses ;
    skos:prefLabel "criteria provided, multiple submitters, no conflicts" .

cascade:ClinVarConflictingClassifications a skos:Concept ;
    skos:inScheme cascade:ClinVarReviewStatuses ;
    skos:prefLabel "criteria provided, conflicting classifications" ;
    skos:altLabel "criteria provided, conflicting interpretations" .

cascade:ClinVarSingleSubmitter a skos:Concept ;
    skos:inScheme cascade:ClinVarReviewStatuses ;
    skos:prefLabel "criteria provided, single submitter" .

cascade:ClinVarNoAssertionCriteria a skos:Concept ;
    skos:inScheme cascade:ClinVarReviewStatuses ;
    skos:prefLabel "no assertion criteria provided" .

cascade:ClinVarNoClassificationProvided a skos:Concept ;
    skos:inScheme cascade:ClinVarReviewStatuses ;
    skos:prefLabel "no classification provided" ;
    skos:altLabel "no assertion provided" .

skos:Concept a owl:Class ;
    rdfs:label "Concept"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core> ;
    dct:source <https://www.w3.org/TR/2009/REC-skos-reference-20090818/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

skos:ConceptScheme a owl:Class ;
    rdfs:label "Concept Scheme"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core> ;
    dct:source <https://www.w3.org/TR/2009/REC-skos-reference-20090818/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

skos:inScheme a owl:ObjectProperty ;
    rdfs:label "is in scheme"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core> ;
    dct:source <https://www.w3.org/TR/2009/REC-skos-reference-20090818/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

skos:hasTopConcept a owl:ObjectProperty ;
    rdfs:label "has top concept"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core> ;
    dct:source <https://www.w3.org/TR/2009/REC-skos-reference-20090818/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

skos:broader a owl:ObjectProperty ;
    rdfs:label "has broader"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core> ;
    dct:source <https://www.w3.org/TR/2009/REC-skos-reference-20090818/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

void:uriSpace a owl:DatatypeProperty ;
    rdfs:label "URI space"@en ;
    rdfs:isDefinedBy <http://rdfs.org/ns/void#> ;
    rdfs:domain void:Dataset ;
    rdfs:range rdfs:Literal ;
    dct:source <https://www.w3.org/TR/2011/NOTE-void-20110303/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

void:Dataset a owl:Class ;
    rdfs:label "dataset"@en ;
    rdfs:isDefinedBy <http://rdfs.org/ns/void#> ;
    dct:source <https://www.w3.org/TR/2011/NOTE-void-20110303/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

oa:Annotation a rdfs:Class ;
    rdfs:label "Annotation"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ;
    dct:source <https://www.w3.org/TR/2017/REC-annotation-vocab-20170223/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

oa:Motivation a rdfs:Class ;
    rdfs:label "Motivation"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ;
    rdfs:subClassOf skos:Concept ;
    dct:source <https://www.w3.org/TR/2017/REC-annotation-vocab-20170223/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

oa:ResourceSelection a rdfs:Class ;
    rdfs:label "ResourceSelection"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ;
    dct:source <https://www.w3.org/TR/2017/REC-annotation-vocab-20170223/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

oa:SpecificResource a rdfs:Class ;
    rdfs:label "SpecificResource"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ;
    rdfs:subClassOf oa:ResourceSelection ;
    dct:source <https://www.w3.org/TR/2017/REC-annotation-vocab-20170223/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

oa:Selector a rdfs:Class ;
    rdfs:label "Selector"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ;
    dct:source <https://www.w3.org/TR/2017/REC-annotation-vocab-20170223/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

oa:FragmentSelector a rdfs:Class ;
    rdfs:label "FragmentSelector"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ;
    rdfs:subClassOf oa:Selector ;
    dct:source <https://www.w3.org/TR/2017/REC-annotation-vocab-20170223/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

oa:XPathSelector a rdfs:Class ;
    rdfs:label "XPathSelector"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ;
    rdfs:subClassOf oa:Selector ;
    dct:source <https://www.w3.org/TR/2017/REC-annotation-vocab-20170223/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

oa:refinedBy a rdf:Property ;
    rdfs:label "refinedBy"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ;
    dct:source <https://www.w3.org/TR/2017/REC-annotation-vocab-20170223/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

oa:hasSelector a rdf:Property ;
    rdfs:label "hasSelector"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ;
    rdfs:domain oa:ResourceSelection ;
    rdfs:range oa:Selector ;
    dct:source <https://www.w3.org/TR/2017/REC-annotation-vocab-20170223/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

oa:hasBody a rdf:Property ;
    rdfs:label "hasBody"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ;
    rdfs:domain oa:Annotation ;
    dct:source <https://www.w3.org/TR/2017/REC-annotation-vocab-20170223/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

oa:hasTarget a rdf:Property ;
    rdfs:label "hasTarget"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ;
    rdfs:domain oa:Annotation ;
    dct:source <https://www.w3.org/TR/2017/REC-annotation-vocab-20170223/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

oa:motivatedBy a rdf:Property ;
    rdfs:label "motivatedBy"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ;
    rdfs:domain oa:Annotation ;
    rdfs:range oa:Motivation ;
    dct:source <https://www.w3.org/TR/2017/REC-annotation-vocab-20170223/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

oa:classifying a oa:Motivation ;
    rdfs:label "classifying"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ;
    dct:source <https://www.w3.org/TR/2017/REC-annotation-vocab-20170223/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

oa:hasSource a rdf:Property ;
    rdfs:label "hasSource"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/oa#> ;
    rdfs:domain oa:SpecificResource ;
    dct:source <https://www.w3.org/TR/2017/REC-annotation-vocab-20170223/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

owl:annotatedSource a rdf:Property ;
    rdfs:label "annotated source"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2002/07/owl#> ;
    rdfs:domain rdfs:Resource ;
    rdfs:range rdfs:Resource ;
    dct:source <https://www.w3.org/TR/2012/REC-owl2-mapping-to-rdf-20121211/> ,
        <https://www.w3.org/TR/2012/REC-owl2-rdf-based-semantics-20121211/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

owl:annotatedProperty a rdf:Property ;
    rdfs:label "annotated property"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2002/07/owl#> ;
    rdfs:domain rdfs:Resource ;
    rdfs:range rdfs:Resource ;
    dct:source <https://www.w3.org/TR/2012/REC-owl2-mapping-to-rdf-20121211/> ,
        <https://www.w3.org/TR/2012/REC-owl2-rdf-based-semantics-20121211/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

owl:annotatedTarget a rdf:Property ;
    rdfs:label "annotated target"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2002/07/owl#> ;
    rdfs:domain rdfs:Resource ;
    rdfs:range rdfs:Resource ;
    dct:source <https://www.w3.org/TR/2012/REC-owl2-mapping-to-rdf-20121211/> ,
        <https://www.w3.org/TR/2012/REC-owl2-rdf-based-semantics-20121211/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

owl:deprecated a owl:AnnotationProperty ;
    rdfs:label "deprecated"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2002/07/owl#> ;
    rdfs:domain rdfs:Resource ;
    rdfs:range rdfs:Resource ;
    dct:source <https://www.w3.org/TR/2012/REC-owl2-mapping-to-rdf-20121211/> ,
        <https://www.w3.org/TR/2012/REC-owl2-rdf-based-semantics-20121211/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

sssom:mapping_justification a owl:ObjectProperty ;
    rdfs:label "mapping justification"@en ;
    rdfs:isDefinedBy <https://mapping-commons.github.io/sssom/dev/mapping_justification/> ;
    dct:source <https://github.com/mapping-commons/sssom/blob/667d3c579d92ad2e1a480503625eeef1e6af8e6d/src/sssom_schema/schema/sssom_schema.yaml> ;
    dct:license <https://spdx.org/licenses/BSD-3-Clause> .

sssom:mapping_cardinality a owl:DatatypeProperty ;
    rdfs:label "mapping cardinality"@en ;
    rdfs:isDefinedBy <https://mapping-commons.github.io/sssom/dev/mapping_cardinality/> ;
    dct:source <https://github.com/mapping-commons/sssom/blob/667d3c579d92ad2e1a480503625eeef1e6af8e6d/src/sssom_schema/schema/sssom_schema.yaml> ;
    dct:license <https://spdx.org/licenses/BSD-3-Clause> .

obo:RO_0002248 a owl:ObjectProperty ;
    rdfs:label "has active ingredient"@en ;
    rdfs:isDefinedBy <http://purl.obolibrary.org/obo/ro.owl> ;
    rdfs:seeAlso <http://snomed.info/id/127489000> , <https://www.wikidata.org/wiki/Property:P3781> ;
    dct:source <http://purl.obolibrary.org/obo/ro/releases/2026-09-04/ro.owl> ;
    dct:license <https://creativecommons.org/publicdomain/zero/1.0/> .

obo:RO_0002350 a owl:ObjectProperty ;
    rdfs:label "member of"@en ;
    rdfs:isDefinedBy <http://purl.obolibrary.org/obo/ro.owl> ;
    dct:source <http://purl.obolibrary.org/obo/ro/releases/2026-09-04/ro.owl> ;
    dct:license <https://creativecommons.org/publicdomain/zero/1.0/> .

obo:RO_0002351 a owl:ObjectProperty ;
    rdfs:label "has member"@en ;
    rdfs:isDefinedBy <http://purl.obolibrary.org/obo/ro.owl> ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/observation-definitions.html#Observation.hasMember> ;
    dct:source <http://purl.obolibrary.org/obo/ro/releases/2026-09-04/ro.owl> ;
    dct:license <https://creativecommons.org/publicdomain/zero/1.0/> .

skos:prefLabel a owl:AnnotationProperty ;
    rdfs:label "preferred label"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core> ;
    rdfs:subPropertyOf rdfs:label ;
    dct:source <https://www.w3.org/TR/2009/REC-skos-reference-20090818/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

skos:altLabel a owl:AnnotationProperty ;
    rdfs:label "alternative label"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core> ;
    rdfs:subPropertyOf rdfs:label ;
    dct:source <https://www.w3.org/TR/2009/REC-skos-reference-20090818/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

skos:notation a owl:DatatypeProperty ;
    rdfs:label "notation"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core> ;
    dct:source <https://www.w3.org/TR/2009/REC-skos-reference-20090818/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

skos:exactMatch a owl:ObjectProperty ;
    rdfs:label "has exact match"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core> ;
    dct:source <https://www.w3.org/TR/2009/REC-skos-reference-20090818/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

skos:mappingRelation a owl:ObjectProperty ;
    rdfs:label "is in mapping relation with"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core> ;
    dct:source <https://www.w3.org/TR/2009/REC-skos-reference-20090818/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

skos:relatedMatch a owl:ObjectProperty , owl:SymmetricProperty ;
    rdfs:label "has related match"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core> ;
    rdfs:subPropertyOf skos:mappingRelation ;
    dct:source <https://www.w3.org/TR/2009/REC-skos-reference-20090818/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

skos:closeMatch a owl:ObjectProperty , owl:SymmetricProperty ;
    rdfs:label "has close match"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core> ;
    rdfs:subPropertyOf skos:mappingRelation ;
    dct:source <https://www.w3.org/TR/2009/REC-skos-reference-20090818/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

dct:isReplacedBy a rdf:Property ;
    rdfs:label "Is Replaced By"@en ;
    rdfs:isDefinedBy <http://purl.org/dc/terms/> ;
    rdfs:subPropertyOf dct:relation ;
    dct:source <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/2020-01-20/> ;
    dct:license <https://creativecommons.org/licenses/by/4.0/> .

dct:identifier a owl:DatatypeProperty ;
    rdfs:label "Identifier"@en ;
    rdfs:isDefinedBy <http://purl.org/dc/terms/> ;
    rdfs:range rdfs:Literal ;
    rdfs:subPropertyOf <http://purl.org/dc/elements/1.1/identifier> ;
    dct:source <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/2020-01-20/> ;
    dct:license <https://creativecommons.org/licenses/by/4.0/> .

dct:bibliographicCitation a rdf:Property ;
    rdfs:label "Bibliographic Citation"@en ;
    rdfs:isDefinedBy <http://purl.org/dc/terms/> ;
    rdfs:range rdfs:Literal ;
    rdfs:subPropertyOf <http://purl.org/dc/elements/1.1/identifier> , dct:identifier ;
    dct:source <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/2020-01-20/> ;
    dct:license <https://creativecommons.org/licenses/by/4.0/> .

dct:conformsTo a rdf:Property ;
    rdfs:label "Conforms To"@en ;
    rdfs:isDefinedBy <http://purl.org/dc/terms/> ;
    rdfs:subPropertyOf <http://purl.org/dc/elements/1.1/relation> , dct:relation ;
    dct:source <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/2020-01-20/> ;
    dct:license <https://creativecommons.org/licenses/by/4.0/> .

dct:requires a rdf:Property ;
    rdfs:label "Requires"@en ;
    rdfs:isDefinedBy <http://purl.org/dc/terms/> ;
    rdfs:subPropertyOf <http://purl.org/dc/elements/1.1/relation> , dct:relation ;
    dct:source <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/2020-01-20/> ;
    dct:license <https://creativecommons.org/licenses/by/4.0/> .

dct:description a rdf:Property ;
    rdfs:label "Description"@en ;
    rdfs:isDefinedBy <http://purl.org/dc/terms/> ;
    rdfs:subPropertyOf <http://purl.org/dc/elements/1.1/description> ;
    dct:source <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/2020-01-20/> ;
    dct:license <https://creativecommons.org/licenses/by/4.0/> .

dct:license a rdf:Property ;
    rdfs:label "License"@en ;
    rdfs:isDefinedBy <http://purl.org/dc/terms/> ;
    rdfs:subPropertyOf <http://purl.org/dc/elements/1.1/rights> , dct:rights ;
    dct:source <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/2020-01-20/> ;
    dct:license <https://creativecommons.org/licenses/by/4.0/> .

dct:source a rdf:Property ;
    rdfs:label "Source"@en ;
    rdfs:isDefinedBy <http://purl.org/dc/terms/> ;
    rdfs:subPropertyOf <http://purl.org/dc/elements/1.1/source> , dct:relation ;
    dct:source <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/2020-01-20/> ;
    dct:license <https://creativecommons.org/licenses/by/4.0/> .

dct:title a rdf:Property ;
    rdfs:label "Title"@en ;
    rdfs:isDefinedBy <http://purl.org/dc/terms/> ;
    rdfs:range rdfs:Literal ;
    rdfs:subPropertyOf <http://purl.org/dc/elements/1.1/title> ;
    dct:source <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/2020-01-20/> ;
    dct:license <https://creativecommons.org/licenses/by/4.0/> .

semapv:ManualMappingCuration a owl:Class ;
    rdfs:label "manual mapping curation"@en ;
    rdfs:isDefinedBy <https://w3id.org/semapv/vocab/> ;
    rdfs:subClassOf semapv:Matching ;
    dct:source <http://w3id.org/semapv/vocab/releases/2026-06-10/semapv.owl> ;
    dct:license <https://creativecommons.org/publicdomain/zero/1.0/> .

semapv:MappingChaining a owl:Class ;
    rdfs:label "mapping chaining-based matching process"@en ;
    rdfs:isDefinedBy <https://w3id.org/semapv/vocab/> ;
    rdfs:subClassOf semapv:Matching ;
    dct:source <http://w3id.org/semapv/vocab/releases/2026-06-10/semapv.owl> ;
    dct:license <https://creativecommons.org/publicdomain/zero/1.0/> .

skos:broadMatch a owl:ObjectProperty ;
    rdfs:label "has broader match"@en ;
    rdfs:isDefinedBy <http://www.w3.org/2004/02/skos/core> ;
    rdfs:subPropertyOf skos:mappingRelation , skos:broader ;
    dct:source <https://www.w3.org/TR/2009/REC-skos-reference-20090818/> ;
    dct:license <https://www.w3.org/Consortium/Legal/copyright-documents> .

foaf:PersonalProfileDocument a owl:Class ;
    rdfs:label "PersonalProfileDocument"@en ;
    rdfs:isDefinedBy <http://xmlns.com/foaf/0.1/> ;
    rdfs:subClassOf foaf:Document ;
    dct:source <http://xmlns.com/foaf/spec/20140114.rdf> ;
    dct:license <http://creativecommons.org/licenses/by/1.0/> .

solid:TypeIndex a rdfs:Class ;
    rdfs:label "Type index"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/solid/terms#> ;
    dct:source <https://github.com/solid/vocab/blob/b2ec12c354ead0df5c9526479bda69f0bd4e9acd/solid-terms.ttl> ;
    dct:license <https://creativecommons.org/publicdomain/zero/1.0/> .

solid:TypeRegistration a rdfs:Class ;
    rdfs:label "Type Registration"@en ;
    rdfs:isDefinedBy <http://www.w3.org/ns/solid/terms#> ;
    dct:source <https://github.com/solid/vocab/blob/b2ec12c354ead0df5c9526479bda69f0bd4e9acd/solid-terms.ttl> ;
    dct:license <https://creativecommons.org/publicdomain/zero/1.0/> .

# Medication lifecycle

cascade:lifecycle a owl:ObjectProperty ;
    rdfs:label "lifecycle"@en ;
    rdfs:comment "Of a medication entry in its view, the concept of cascade:MedicationLifecycle that its status classifies to, so an app reads whether the medication is still taken without the status; cascade:MedicationUnknown where it states none. Of a medication dispense entry in its view, the concept of cascade:MedicationDispenseLifecycle, so an app reads whether it was handed over; cascade:MedicationDispenseUnknown where it states none."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:PrescribedOrReportedMedication cascade:MedicationDispense ) ] ;
    rdfs:range skos:Concept .

cascade:statusLifecycle a owl:ObjectProperty ;
    rdfs:label "status lifecycle"@en ;
    rdfs:comment "Derived: the lifecycle class of the status the entry shows, the cascade:currentVersionStatusLifecycle of the member it takes its status from. The medications and medication dispenses views say it as cascade:lifecycle, a name of its own because a query reading both the derived state and the view would otherwise find each triple twice."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:PrescribedOrReportedMedication cascade:MedicationDispense ) ] ;
    rdfs:range skos:Concept .

cascade:statusLifecycleStep a owl:DatatypeProperty ;
    rdfs:label "status lifecycle step"@en ;
    rdfs:comment "Derived: which step of the matching order in runtime rule L1 classified the entry: 2 for an absent or blank status, 3 for a FHIR status code, 4 for a synonym, 5 for a fragment, 6 for none of them, which leaves the class unknown and unmatched."@en ;
    rdfs:domain cascade:PrescribedOrReportedMedication ;
    rdfs:range xsd:integer .

cascade:currentVersionStatusLifecycle a owl:ObjectProperty ;
    rdfs:label "current version status lifecycle"@en ;
    rdfs:comment "Derived: of a medication record in an entry, the lifecycle class of its own current version's status, by runtime rule L1; of a medication dispense in an entry, by rule L2. A rule reads a copy's own class, never its entry's, which is the class of the one member the entry takes its status from."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:PrescribedOrReportedMedication cascade:MedicationDispense ) ] ;
    rdfs:range skos:Concept .

cascade:currentVersionStatusLifecycleStep a owl:DatatypeProperty ;
    rdfs:label "current version status lifecycle step"@en ;
    rdfs:comment "Derived: which step of the matching order in runtime rule L1 classified the record's current version's status, numbered as cascade:statusLifecycleStep."@en ;
    rdfs:domain cascade:PrescribedOrReportedMedication ;
    rdfs:range xsd:integer .

cascade:medicationExposureStart a owl:DatatypeProperty ;
    rdfs:label "medication exposure start"@en ;
    rdfs:comment "Derived: of a medication record in an entry, the first day its current version shows the medication taken, as the eCQM library CumulativeMedicationDuration starts a period: its start of use (MedicationStatement.effective[x]), else the start of its one structured dosage's bounds (Dosage.timing.repeat.boundsPeriod), else the day its prescription was written (MedicationRequest.authoredOn), else the start of its dispensing window (MedicationRequest.dispenseRequest.validityPeriod), as the derivation reads what the copy states: a rule filters cascade:medicationRequestIntent (a proposal or a plan is not an order) and status, as the library's callers do. A start given only to the year or month is its last day, so exposure is never overstated. A record whose start is not known, or whose end falls before its start, has no exposure."@en ;
    rdfs:domain cascade:PrescribedOrReportedMedication ;
    rdfs:range xsd:date ;
    rdfs:seeAlso <https://github.com/cqframework/ecqm-content-qicore-2024/blob/07c68e5e76d96d167627469f0face771c702023f/input/cql/CumulativeMedicationDuration.cql> ,
        <https://hl7.org/fhir/R4/medicationstatement-definitions.html#MedicationStatement.effective_x_> ,
        <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.authoredOn> .

cascade:medicationExposureEnd a owl:DatatypeProperty ;
    rdfs:label "medication exposure end"@en ;
    rdfs:comment "Derived: of a medication record with a cascade:medicationExposureStart, the last day its current version shows the medication taken: its end of use (MedicationStatement.effective[x]), else, as CumulativeMedicationDuration ends a request's period, its start plus its expected supply duration times one plus its number of repeats allowed, less a day, in whole days, counted from the first day its start may be, else the end of its one structured dosage's bounds; a supply under a day ends on its start. An end given only to the year or month is its first day, so exposure is never overstated. A supply end is an inner bound, as a partial date is: the supply covers the days to it, and the medication may be taken past it, so a rule asking about absence reads the record's own lifecycle and its current revision's cascade:observedAsOf, never this end."@en ;
    rdfs:domain cascade:PrescribedOrReportedMedication ;
    rdfs:range xsd:date ;
    rdfs:seeAlso <https://github.com/cqframework/ecqm-content-qicore-2024/blob/07c68e5e76d96d167627469f0face771c702023f/input/cql/CumulativeMedicationDuration.cql> ,
        <https://hl7.org/fhir/R4/medicationstatement-definitions.html#MedicationStatement.effective_x_> ,
        <https://hl7.org/fhir/R4/medicationrequest-definitions.html#MedicationRequest.dispenseRequest.expectedSupplyDuration> .

cascade:medicationExposureOngoing a owl:DatatypeProperty ;
    rdfs:label "medication exposure ongoing"@en ;
    rdfs:comment "Derived: true of a medication record with a cascade:medicationExposureStart and no end whose own cascade:currentVersionStatusLifecycle is active, so its exposure is known through its current revision's cascade:observedAsOf, the last instant a source said the copy was active; a rule closes it at the earlier of that and the day it asks. Never written false: absent means not known. A record with no end that is not active has neither an end nor this, and its exposure is not known to have lasted past its start."@en ;
    rdfs:domain cascade:PrescribedOrReportedMedication ;
    rdfs:range xsd:boolean ;
    rdfs:seeAlso <https://github.com/cqframework/ecqm-content-qicore-2024/blob/07c68e5e76d96d167627469f0face771c702023f/input/cql/CumulativeMedicationDuration.cql> .

cascade:MedicationLifecycle a skos:ConceptScheme ;
    rdfs:label "medication lifecycle"@en ;
    rdfs:comment "Whether a medication is still being taken, however its source states a status. The classes are cascade-knowledge's medication-status-lifecycle, the codes of FHIR R4's MedicationRequest.status and MedicationStatement.status each in one, so an absent status is unknown rather than ended. The form follows a FHIR ConceptMap, a table of source codes to target codes published with a specification; the rows are in derivations/medication-lifecycles.rq, because they change only with this vocabulary."@en ;
    dct:source <https://hl7.org/fhir/R4/valueset-medicationrequest-status.html> , <https://hl7.org/fhir/R4/valueset-medication-statement-status.html> ,
        <https://hl7.org/fhir/us/ccda/ConceptMap-CF-MedicationStatus.html> ;
    skos:hasTopConcept cascade:MedicationActive , cascade:MedicationStopped , cascade:MedicationPaused , cascade:MedicationUnknown ,
        cascade:MedicationEnteredInError .

cascade:MedicationActive a skos:Concept ;
    skos:inScheme cascade:MedicationLifecycle ;
    skos:prefLabel "active" ;
    skos:definition "The source states the medication is being taken now."@en .

cascade:MedicationStopped a skos:Concept ;
    skos:inScheme cascade:MedicationLifecycle ;
    skos:prefLabel "stopped" ;
    skos:definition "The source states the medication is not being taken: it ended, was withdrawn before use, or was never taken."@en .

cascade:MedicationPaused a skos:Concept ;
    skos:inScheme cascade:MedicationLifecycle ;
    skos:prefLabel "paused" ;
    skos:definition "The source states the medication is temporarily halted and expected to continue. Not being taken today, but not ended either."@en .

cascade:MedicationUnknown a skos:Concept ;
    skos:inScheme cascade:MedicationLifecycle ;
    skos:prefLabel "unknown" ;
    skos:definition "The source states neither: the status is absent, unknown, or describes an order or intention that has not started. Not evidence either way."@en .

cascade:MedicationEnteredInError a skos:Concept ;
    skos:inScheme cascade:MedicationLifecycle ;
    skos:prefLabel "entered-in-error" ;
    skos:definition "The record itself is repudiated. Not a statement about the medication at all, so not read as stopped; \"My active medications\" leaves it out."@en .

cascade:MedicationDispenseLifecycle a skos:ConceptScheme ;
    rdfs:label "medication dispense lifecycle"@en ;
    rdfs:comment "Whether a pharmacy handed a dispense over, the codes of FHIR R4's MedicationDispense.status each in one class by runtime rule L2, so an absent status is unknown rather than handed over. A dispense's classes are never a medication's: a completed dispense is a fill handed over, not a course stopped. The rows are in derivations/medication-dispense-lifecycles.rq."@en ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/valueset-medicationdispense-status.html> ;
    skos:hasTopConcept cascade:MedicationDispenseCompleted , cascade:MedicationDispenseInProgress ,
        cascade:MedicationDispenseNotCompleted , cascade:MedicationDispenseUnknown , cascade:MedicationDispenseEnteredInError .

cascade:MedicationDispenseCompleted a skos:Concept ;
    skos:inScheme cascade:MedicationDispenseLifecycle ;
    skos:prefLabel "completed" ;
    skos:definition "The source states the dispensed product was picked up: evidence the person received the medication, saying nothing about whether the course goes on."@en .

cascade:MedicationDispenseInProgress a skos:Concept ;
    skos:inScheme cascade:MedicationDispenseLifecycle ;
    skos:prefLabel "in progress" ;
    skos:definition "The source states the dispense is being prepared, is ready for pickup or is paused, and has not been handed over yet."@en .

cascade:MedicationDispenseNotCompleted a skos:Concept ;
    skos:inScheme cascade:MedicationDispenseLifecycle ;
    skos:prefLabel "not completed" ;
    skos:definition "The source states the dispense ended without being completed: cancelled and never to be picked up, declined, or stopped before all its actions occurred. Not evidence the medication was received."@en .

cascade:MedicationDispenseUnknown a skos:Concept ;
    skos:inScheme cascade:MedicationDispenseLifecycle ;
    skos:prefLabel "unknown" ;
    skos:definition "The source states no status, unknown, or one FHIR does not list. Not evidence either way."@en .

cascade:MedicationDispenseEnteredInError a skos:Concept ;
    skos:inScheme cascade:MedicationDispenseLifecycle ;
    skos:prefLabel "entered-in-error" ;
    skos:definition "The record itself is repudiated, so it is left out at source; not a statement about the medication."@en .

# Judgments

cascade:Judgment a owl:Class ;
    rdfs:label "judgment"@en ;
    rdfs:comment "A conclusion about records, made by a person at a time or by a matcher, which gives no time; its members are prov:hadMember."@en ;
    rdfs:subClassOf prov:Collection .

cascade:verdict a owl:ObjectProperty ;
    rdfs:label "verdict"@en ;
    rdfs:comment "What a judgment concludes of its members, exactly one of cascade:Same, cascade:Different, cascade:Erroneous, cascade:About, cascade:NotAbout, cascade:Before, cascade:Acknowledged and cascade:ClockDiscounted. A retraction is an activity, not a judgment, and gives none."@en ;
    rdfs:domain cascade:Judgment .

cascade:Same a owl:NamedIndividual ;
    rdfs:label "same"@en ;
    rdfs:comment "The members are one thing: a view draws one entry on every member."@en .

cascade:Different a owl:NamedIndividual ;
    rdfs:label "different"@en ;
    rdfs:comment "The members are kept apart: a person's counting Same for that pair stands over a machine's Different; among the rest a counting Different wins over any Same."@en .

cascade:Erroneous a owl:NamedIndividual ;
    rdfs:label "erroneous"@en ;
    rdfs:comment "The members, records or a whole activity, are left out of every view; a revision it names is never its record's current one."@en .

cascade:Before a owl:NamedIndividual ;
    rdfs:label "before"@en ;
    rdfs:comment "A person's judgment that of its two members, revisions of one record or of two records a Same joins, the one it names as cascade:earlierMember is a state before the other: a counting Before outranks every clock. Never two versions, and never made by a machine."@en .

cascade:earlierMember a owl:ObjectProperty ;
    rdfs:label "earlier member"@en ;
    rdfs:comment "Of a Before judgment, the member it places before its other member."@en ;
    rdfs:domain cascade:Judgment ;
    rdfs:range cascade:Revision .

cascade:Acknowledged a owl:NamedIndividual ;
    rdfs:label "acknowledged"@en ;
    rdfs:comment "A person has seen a warning and needs nothing done. The judgment names the warning's kind (cascade:answersWarningOfKind) and, as its members, what the warning is about: the records, documents or acts the kind says its targets resolve to, never the warning or anything else the pod derives. A warning of that kind leaves the review page while an Acknowledged of its kind that stands names every one of those things, and, for a warning about two records, those two and no other, however the pod works the warning out again; the warning still stands, and nothing else changes."@en .

cascade:answersWarningOfKind a owl:ObjectProperty ;
    rdfs:label "answers warning of kind"@en ;
    rdfs:comment "The kind of warning an Acknowledged judgment answers: a concept of cascade:FindingForReviewKinds, whose definition says which kept things a warning of that kind is about. Every Acknowledged names one, and no other judgment does."@en ;
    rdfs:domain cascade:Judgment ;
    rdfs:range skos:Concept .

cascade:ClockDiscounted a owl:NamedIndividual ;
    rdfs:label "clock discounted"@en ;
    rdfs:comment "A person's judgment whose one member is an act: the times its writer's clock gave are known wrong, so every revision the act generated is ranked as carrying no cascade:observedAsOf, and its picks fall to the least IRI and the review page. Nothing is rewritten, and retracting it restores the ranking. It carries no offset: a wrong clock is discounted, not corrected. Not Erroneous over the act: the content is sound, only its clock is not."@en .

cascade:observationTimeDiscountedBy a owl:ObjectProperty ;
    rdfs:label "observation time discounted by"@en ;
    rdfs:comment "Derived: a person's ClockDiscounted that stands names the act that generated this revision: no activity invalidates it, and no judgment that stands replaces it."@en ;
    rdfs:domain cascade:Revision ;
    rdfs:range cascade:Judgment .

cascade:About a owl:NamedIndividual ;
    rdfs:label "about"@en ;
    rdfs:comment "The member, a source's patient record, is about the cascade:subject: every record naming it is the subject's, while no counting cascade:NotAbout over it for that subject outranks it."@en .

cascade:NotAbout a owl:NamedIndividual ;
    rdfs:label "not about"@en ;
    rdfs:comment "A person's judgment that the member, a source's patient record, is not about the cascade:subject. While it counts, no record naming the member is the subject's, whatever About counts: they are hidden, never deleted. It outranks every About a machine made and its own maker's earlier About; an About a person makes after it, or another person's at any time, stands against it, and the profile is held back and listed for review. Only a retraction of it, or a judgment that replaces it, lifts it: an act that names it."@en .

cascade:subject a owl:ObjectProperty ;
    rdfs:label "subject"@en ;
    rdfs:comment "The person a judgment is made for, or, derived, the person whose record a record is."@en ;
    rdfs:domain [ a owl:Class ; owl:unionOf ( cascade:Judgment cascade:Record ) ] ;
    rdfs:range cascade:Subject .

cascade:basis a owl:ObjectProperty ;
    rdfs:label "basis"@en ;
    rdfs:comment "Of an About judgment, why its member is taken to be the subject's, exactly one of cascade:PortalAuthenticated, cascade:RelatedPersonConnection, cascade:SameDemographics and cascade:OwnerStatement."@en ;
    rdfs:domain cascade:Judgment .

cascade:justification a owl:ObjectProperty ;
    rdfs:label "justification"@en ;
    rdfs:comment "The rule a machine applied to conclude Same."@en ;
    rdfs:domain cascade:Judgment .

cascade:SameCode a owl:NamedIndividual ;
    rdfs:label "same code"@en ;
    rdfs:comment "Both records carry one code from one code system, as their sources supplied it."@en ;
    skos:broadMatch semapv:LexicalMatching .

cascade:SameCodeAndDate a owl:NamedIndividual ;
    rdfs:label "same code and date"@en ;
    rdfs:comment "Both records carry one code from one code system and one date."@en ;
    skos:broadMatch semapv:LexicalMatching .

cascade:SameCodeAndPeriod a owl:NamedIndividual ;
    rdfs:label "same code and period"@en ;
    rdfs:comment "Both conditions carry one code from one code system, and their periods overlap."@en ;
    skos:broadMatch semapv:LexicalMatching .

cascade:SameMappedCode a owl:NamedIndividual ;
    rdfs:label "same mapped code"@en ;
    rdfs:comment "The records carry two different codes that a reference table pairs, or maps to one concept."@en ;
    skos:broadMatch semapv:BackgroundKnowledgeBasedMatching .

cascade:SameMappedCodeAndDate a owl:NamedIndividual ;
    rdfs:label "same mapped code and date"@en ;
    rdfs:comment "The records carry two codes that a reference table puts in one group, and one date."@en ;
    skos:broadMatch semapv:BackgroundKnowledgeBasedMatching .

cascade:SameMedicationCode a owl:NamedIndividual ;
    rdfs:label "same medication code"@en ;
    rdfs:comment "Both medication records share an NDC code, whether each came from a prescription or from a list of what the person takes. Their exposure periods (cascade:medicationExposureStart) share at least one day as well; rule M15 and decisions/medication-matching.md, row \"same course\", say why."@en ;
    skos:broadMatch semapv:LexicalMatching .

cascade:SameProductCode a owl:NamedIndividual ;
    rdfs:label "same product code"@en ;
    rdfs:comment "Both medication records carry one RxNorm code that a version of a drug products table says names one drug product (SCD, SBD, GPCK or BPCK); they share no NDC. Their exposure periods (cascade:medicationExposureStart) share at least one day as well; rule M15 and decisions/medication-matching.md, row \"same course\", say why."@en ;
    skos:broadMatch semapv:BackgroundKnowledgeBasedMatching .

cascade:SameVariation a owl:NamedIndividual ;
    rdfs:label "same variation"@en ;
    rdfs:comment "Both variant records carry one ClinVar VariationID. Rule M17 and decisions/variant-identity.md say why."@en ;
    skos:broadMatch semapv:LexicalMatching .

cascade:SameVariationThroughTable a owl:NamedIndividual ;
    rdfs:label "same variation through the table"@en ;
    rdfs:comment "Both variant records find one row of a version of a variant classifications table: a version that carries a ClinVar VariationID finds the row of that variation, and one that carries none finds the row holding its HGVS expression. The classification plays no part. Rule M17 and decisions/variant-identity.md say why."@en ;
    skos:broadMatch semapv:BackgroundKnowledgeBasedMatching .

cascade:SameSelfAssertedBaseUrlAndAuthorizationEndpointOnOneHost a owl:NamedIndividual ;
    rdfs:label "same self-asserted base URL and authorization endpoint on one host"@en ;
    rdfs:comment "Both server records have a version, each written by a connect made with one client id, reporting one self-asserted base URL and one authorization endpoint, and the base URLs the client used name one host. Rule M20 and decisions/republishing-sources.md, row \"two servers are one\", say why."@en ;
    skos:broadMatch semapv:LexicalMatching .

cascade:SameBrandGeneric a owl:NamedIndividual ;
    rdfs:label "same brand generic"@en ;
    rdfs:comment "One record's branded RxNorm product and the other's generic, or two brands of one generic, by a version of a brand generics table; the records share no code. Their exposure periods (cascade:medicationExposureStart) share at least one day as well; rule M15 and decisions/medication-matching.md, row \"same course\", say why."@en ;
    skos:broadMatch semapv:BackgroundKnowledgeBasedMatching .

cascade:SameResult a owl:NamedIndividual ;
    rdfs:label "same result"@en ;
    rdfs:comment "Both lab results carry one test code, one instant, and one value of one kind in one unit, the units' UCUM annotations aside."@en ;
    skos:broadMatch semapv:LexicalMatching .

cascade:SameBusinessIdentifierAndTestCodeWithinOneOrganization a owl:NamedIndividual ;
    rdfs:label "same business identifier and test code within one organization"@en ;
    rdfs:comment "Both lab results carry one business identifier of a named system and one test code, and one clinically relevant time, or one of them none, and documents they came from name one organization record, or two currently the same organization, as custodian or author: a certain join, ahead of every other rule for lab results. Rule M22 and decisions/quantities.md, row \"matcher\", say why."@en ;
    skos:broadMatch semapv:LexicalMatching .

cascade:SameNoteTypeAndTextGrownWithinOneOrganization a owl:NamedIndividual ;
    rdfs:label "same note type and text grown within one organization"@en ;
    rdfs:comment "Both notes carry one note type, a LOINC code, or a code of another system when neither has a LOINC code, documents they came from name one organization record, or two currently the same organization, as custodian or author, and the shorter one's text, of at least 200 characters, begins or ends the longer one's as whole lines, the longer dated no earlier, and no other note of the type and organization holding the shorter grew apart from the longer: one note its source sent again as it grew. Rule M24 and decisions/reports-and-notes.md, row \"joining\", say why."@en ;
    skos:broadMatch semapv:LexicalMatching .

cascade:SameNoteTypeAndText a owl:NamedIndividual ;
    rdfs:label "same note type and text"@en ;
    rdfs:comment "Both notes carry one note type, read as cascade:SameNoteTypeAndTextGrownWithinOneOrganization reads it, and one text of at least 200 characters, every run of white space read as one space, from any sources: one note with two copies. Rule M24 and decisions/reports-and-notes.md, row \"joining\", say why."@en ;
    skos:broadMatch semapv:LexicalMatching .

cascade:SameNoteOrDocumentMasterIdentifier a owl:NamedIndividual ;
    rdfs:label "same note or document master identifier"@en ;
    rdfs:comment "Both notes carry one master identifier typed by its system, the identifier of one version of one document, from any sources, whatever their types and texts: one document reached twice. Rule M24 and decisions/reports-and-notes.md, row \"joining\", say why."@en ;
    skos:broadMatch semapv:LexicalMatching .

cascade:SameResultOnOneDay a owl:NamedIndividual ;
    rdfs:label "same result on one day"@en ;
    rdfs:comment "Both lab results carry one test code, one value of one kind in one unit, and one day, at least one of them a day with no time, so two draws that day cannot be told apart: a likely join, which the review page lists."@en ;
    skos:broadMatch semapv:LexicalMatching .

cascade:SameConvertedCode a owl:NamedIndividual ;
    rdfs:label "same converted code"@en ;
    rdfs:comment "One record carries a retired code and the other the one code its publisher converts it to."@en ;
    skos:broadMatch semapv:BackgroundKnowledgeBasedMatching .

cascade:PortalAuthenticated a owl:NamedIndividual ;
    rdfs:label "portal authenticated"@en ;
    rdfs:comment "The patient record came back from a login the person made themselves."@en .

cascade:RelatedPersonConnection a owl:NamedIndividual ;
    rdfs:label "related person connection"@en ;
    rdfs:comment "A proxy's connection to someone else's chart, whose own RelatedPerson names the proxy."@en .

cascade:SameDemographics a owl:NamedIndividual ;
    rdfs:label "same demographics"@en ;
    rdfs:comment "A matcher judged it from name, birth date, address or phone."@en .

cascade:OwnerStatement a owl:NamedIndividual ;
    rdfs:label "owner statement"@en ;
    rdfs:comment "The operator said so, at import or later."@en .

cascade:PatientRole a prov:Role ;
    rdfs:label "patient role"@en ;
    rdfs:comment "The person the pod is about, acting for themselves."@en .

cascade:ModelProposerRole a prov:Role ;
    rdfs:label "model proposer role"@en ;
    rdfs:comment "The part a model played in an act it proposed through a tool at cascade:ConsentTierAsk, which was written once the person said yes: an entry's session, the act that generated a judgment, or a retraction."@en .

dct:replaces a rdf:Property ;
    rdfs:label "Replaces"@en ;
    rdfs:isDefinedBy <http://purl.org/dc/terms/> ;
    rdfs:subPropertyOf dct:relation ;
    dct:source <https://www.dublincore.org/specifications/dublin-core/dcmi-terms/2020-01-20/> ;
    dct:license <https://creativecommons.org/licenses/by/4.0/> .

cascade:matcherRuleDeclaredWrong a owl:ObjectProperty ;
    rdfs:label "matcher rule declared wrong"@en ;
    rdfs:comment "Of a rule list version, the release, a matcher rule it declares wrong: once a pod's current rule list version is the release or a version after it, the pod's cascade:RuleListVersionMigration retracts each assertion of that rule's matcher judgments under a version the release revises, so a known-bad join is not offered back. An assertion under the release or a later version is not declared wrong: a version that ships the rule fixed, or runs it again, can join the pair again."@en ;
    rdfs:domain prov:Entity ;
    rdfs:range cascade:MatcherRule .

cascade:RuleListVersionMigration a owl:Class ;
    rdfs:label "rule list version migration"@en ;
    rdfs:comment "An act a runtime performs whenever the pod's current rule list version, or a version it revises, declares a matcher rule wrong and the pod holds an assertion of that rule's matcher judgment, under a version the declaring version revises, that no retraction invalidates: at an open, before its matcher run; at a sync's arrival; before a matcher run. It writes a retraction of each such assertion, a prov:Activity that prov:invalidated the assertion and prov:used the declaring version, named by cascade:ReleaseRetractionNamingRule with no time and no run, so two writers on one release write one file with one content, whatever order they met the versions in. It is written only when it writes a retraction."@en ;
    rdfs:subClassOf prov:Activity .

cascade:currentlySame a owl:ObjectProperty , owl:SymmetricProperty ;
    rdfs:label "currently same"@en ;
    rdfs:comment "Derived: two records that a counting Same joins, or that are of one type and id under two servers a counting Same joins (queries/derivations/same-records-under-same-servers.rq), and that no counting Different separates, a machine's Different over a pair a person's counting Same names excepted."@en .

cascade:currentlySameOrganization a owl:ObjectProperty , owl:SymmetricProperty ;
    rdfs:label "currently same organization"@en ;
    rdfs:comment "Derived: two organization records a counting Same judgment names together and no counting Different separates (queries/derivations/same-organizations.rq); never two that a join of their servers alone makes one record."@en .

cascade:currentlyDifferent a owl:ObjectProperty , owl:SymmetricProperty ;
    rdfs:label "currently different"@en ;
    rdfs:comment "Derived: two records a counting Different separates, a machine's Different over a pair a person's counting Same names excepted (queries/derivations/different-pairs.rq)."@en .

# Findings a runtime files for a person to review

cascade:FindingForReview a owl:Class ;
    rdfs:label "finding for review"@en ;
    rdfs:comment "Something a runtime noticed about what the pod holds and filed for a person to answer, a file an act wrote and named by cascade:FindingNamingRule from its own triples, so two writers that notice one thing file one file. Its kind is its oa:hasBody, a concept of cascade:FindingForReviewKinds, its oa:motivatedBy oa:classifying, since it classifies its targets as that kind, and what it is about its oa:hasTarget. Each kind says how its body reads its targets: whether it applies to each target alone, as cascade:MatcherJudgmentsNoLongerReached does, or to the targets together, as a finding of two records' differing values would. It carries no time and names no act: which act filed it is read from that act's snapshot. A person answers it with a judgment that names what it is about, never the finding, whose name the pod derives: a cascade:Acknowledged of its kind, or another answer its kind's definition names; an acknowledged finding still stands."@en ;
    rdfs:subClassOf oa:Annotation , prov:Entity .

cascade:FindingForReviewKinds a skos:ConceptScheme ;
    rdfs:label "finding for review kinds"@en ;
    rdfs:comment "The kinds of thing a cascade:FindingForReview reports, as its oa:hasBody."@en .

cascade:MatcherJudgmentsNoLongerReached a skos:Concept ;
    skos:inScheme cascade:FindingForReviewKinds ;
    skos:prefLabel "matcher judgments no longer reached"@en ;
    skos:definition "The matcher judgments a rule list version no longer reaches (cascade:noLongerReachedUnderRuleListVersion), each an oa:hasTarget: every matcher judgment nothing withdraws that is asserted, by an assertion no retraction invalidates, under a version whose row for its rule carries the cascade:queryHash of that rule's row in any version on this one's prov:wasRevisionOf line, under none whose row carries the hash of this version's row for it, and that no finding the pod holds names, the rows read as the pod describes them; so which versions the pod's runs went through does not change which matcher judgments are named. The body applies to each target alone: each is a matcher judgment no longer reached. Filed once per rule list version, by the first run that compares the whole pod under it and leaves at least one such matcher judgment, so these matcher judgments are listed together on the review page rather than pair by pair. A target is about the records that are its members: a person answers it with a Same or a Different over them, or with a cascade:Acknowledged of this kind naming exactly them, two records of a pair and no other, so one acknowledgement answers one pair. What a matcher judgment's tables did is no part of it: a matcher judgment kept or lapsed by a table version, and reached by this rule list version, is in no such finding."@en .

cascade:noLongerReachedUnderRuleListVersion a owl:ObjectProperty ;
    rdfs:label "no longer reached under rule list version"@en ;
    rdfs:comment "Of a cascade:MatcherJudgmentsNoLongerReached finding, the rule list version that reaches none of the matcher judgments it names, though the version it revises reached each."@en ;
    rdfs:domain cascade:FindingForReview ;
    rdfs:range prov:Entity .

cascade:SourceReportedOlderStates a skos:Concept ;
    skos:inScheme cascade:FindingForReviewKinds ;
    skos:prefLabel "source reported older states"@en ;
    skos:definition "A source reported, by a live pull, records at states older than it had reported by earlier live pulls: each oa:hasTarget is the revision holding the older state of one record, and each cascade:contradictedEarlierRevision a revision of a target's record, from a live pull of the same source, whose source change time is later than the target's. A live pull is a document retrieved on a date that answers as of no other instant; two are of one source when both name one transmitter, the same agent, or neither names one. The body applies to each target alone: each is a state its source reported after reporting a later one. Filed once by the import that pulled the older states, naming every record that went back and no record a finding the pod holds already names with each of the same contradicted revisions, so a repeat pull of the same states files nothing while that finding stands, acknowledged or not. A copy by another path files nothing. A target is about its record, the document it came from and the document each revision of that record the finding contradicts came from, each state named as the record and the document that gave it: a cascade:Acknowledged of this kind naming them all answers it, and one naming fewer of the contradicted documents does not, since a source that goes forward and back again contradicts a later report."@en .

cascade:contradictedEarlierRevision a owl:ObjectProperty ;
    rdfs:label "contradicted earlier revision"@en ;
    rdfs:comment "Of a cascade:SourceReportedOlderStates finding, a revision from an earlier live pull of the same source holding a later state of the record one of its targets is a revision of: the earlier report the source now contradicts. Its act is the earlier act, its record the record that went back."@en ;
    rdfs:domain cascade:FindingForReview ;
    rdfs:range cascade:Revision .

cascade:ClockBehind a skos:Concept ;
    skos:inScheme cascade:FindingForReviewKinds ;
    skos:prefLabel "clock behind"@en ;
    skos:definition "The writer whose act generated its targets had a clock at least cascade:writerClockBehindByAtLeastDays days behind: each oa:hasTarget is a revision the act generated whose observation time the writer's own clock gave, as an entry session's start, an act's start, or the retrieval time of a live pull that names no transmitter, and that precedes the cascade:observedAsOf of a head it names, or a revision of such a pull whose source change time is after the pull's own time, by at least one whole day. The second check cannot tell a writer's slow clock from a source's fast one: a source whose clock runs ahead stamps after the pull's own time too. The body applies to the targets together: the greatest whole number of days any one of them shows. Filed by an act whose revisions show it, unless an act in the first-parent ancestry of its snapshot filed one that no answer meets: a cascade:Acknowledged of this kind naming the act that filed it, or a cascade:ClockDiscounted naming that act, answers it, so a writer has one unanswered at a time, and a clock that stays wrong is found again once after each answer. It is about that act, the act that generated its targets: a person answers it with a cascade:ClockDiscounted over the act, or with a cascade:Acknowledged of this kind naming it."@en .

cascade:writerClockBehindByAtLeastDays a owl:DatatypeProperty ;
    rdfs:label "writer clock behind by at least days"@en ;
    rdfs:comment "Of a cascade:ClockBehind finding, the whole number of days its targets show the writer's clock was at least behind."@en ;
    rdfs:domain cascade:FindingForReview ;
    rdfs:range xsd:integer .

cascade:DifferentResultValuesAtOneInstant a skos:Concept ;
    skos:inScheme cascade:FindingForReviewKinds ;
    skos:prefLabel "different result values at one instant"@en ;
    skos:definition "Two lab results, each an oa:hasTarget, of one test code at one instant whose values differ: values of two kinds, or of one kind other than text, in one unit, their UCUM annotations aside and the litre written either way, that differ: two numbers, a comparator on one and not the other, a part or a bound one holds and the other lacks, or coded answers of one code system sharing no code. The finding's prov:wasDerivedFrom are the two versions whose values differ. The body applies to its targets together: neither result is wrong alone, but both cannot be the one draw, and a correction should have come as a new version. The matcher never judges such a pair the same (R6); it files this finding by rule R16 instead, which a person answers with a cascade:Acknowledged of this kind naming the two results and no other record, or by judging them the same or different."@en .

cascade:DifferentResultUnitsAtOneInstant a skos:Concept ;
    skos:inScheme cascade:FindingForReviewKinds ;
    skos:prefLabel "different result units at one instant"@en ;
    skos:definition "Two lab results, each an oa:hasTarget, of one test code at one instant whose values are of one kind that has units, where both hold a number in one place, the first or the second, in units that differ once their UCUM annotations are dropped and the litre is written one way. The finding's prov:wasDerivedFrom are the two versions compared. Two units may measure one draw, mmol/L and mg/dL, and no rule converts one into the other, so the matcher neither joins nor parts them; it files this finding by rule R17, which a person answers with a cascade:Acknowledged of this kind naming the two results and no other record, or by judging them the same or different."@en .

# Naming rules: each name a runtime or an adapter mints follows one, and a changed recipe is a new rule

cascade:NamingRule a owl:Class ;
    rdfs:label "naming rule"@en ;
    rdfs:comment "A recipe that computes the name of a record, file or other thing a runtime or an adapter mints, from what the thing is. Its IRI, not its type, is what a name is hashed over."@en .

cascade:RecordFromServerNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "record from a server naming rule"@en ;
    rdfs:comment "A record a client pulled from a FHIR server is named urn:uuid: and a version 8 UUID: the first 128 bits of SHA-256 over 90c60849-c5ef-4ca6-bfb8-8662bd07d2b5, this rule's IRI and the inputs, each with % written %25 and | written %7C, joined by |, with the version bits 1000 and the variant bits 10. Inputs in order: the base URL the client used, normalised by RFC 3986 sections 6.2.2 and 6.2.3 with every trailing / removed, its host an ASCII reg-name or a bracketed IPv6 address or IPvFuture with no zone id, its port empty (no port) or ASCII digits read as an integer with leading zeros dropped, refused above 65535, then dropped if it is the scheme's default (a URL with userinfo, a query, a fragment, a control character or space, no scheme, no host, any other host or any other port names nothing); the resource type; the resource's id."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc9562#section-5.8> , <https://www.rfc-editor.org/rfc/rfc3986#section-6.2.2> ,
        <https://www.rfc-editor.org/rfc/rfc3986#section-6.2.3> .

cascade:RecordFromDocumentNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "record from a document naming rule"@en ;
    rdfs:comment "A record named by its document and its place in it: a record of a document with no known server, one whose id repeats in its document or that has none, one with a urn:uuid fullUrl, every record of a C-CDA document whose custodian has no id that names an organization record, or that states not exactly one patient with an id, the patient's included, and any record no other rule names. A version 8 UUID as cascade:RecordFromServerNamingRule says, over this rule's IRI and, in order: the document's ni:///sha-256; name (cascade:DocumentNamingRule); the rdf:value of the oa:hasSelector of the revision that brought it, the selector of its arrival."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc9562#section-5.8> , <https://www.w3.org/TR/annotation-model/#selectors> .

cascade:RecordFromCcdaNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "record from C-CDA naming rule"@en ;
    rdfs:comment "A C-CDA statement with an id, or the patient with one, named inside its custodian's and its patient's scope. A version 8 UUID as cascade:RecordFromServerNamingRule says, over this rule's IRI and, in order: the custodian's id that names its organization record, as cascade:OrganizationNamingRule picks it, as a root and an extension (the NPI's URI as its OID, a root alone as its urn:oid: or urn:uuid: IRI's tail, a UUID root in lower case); the patient id's root, its extension; the entry id's root, its extension; an absent extension is the empty string. The patient is named with its own id as the patient scope and again as the entry id. Two entries of one document carrying one id with different content are named by cascade:RecordFromDocumentNamingRule instead. Used only in a document whose custodian has an id that names an organization record and that states exactly one patient with an id."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc9562#section-5.8> .

cascade:RecordFromCcdaWithoutIdNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "record from C-CDA without an id naming rule"@en ;
    rdfs:comment "A C-CDA statement with no id, named inside its custodian's and its patient's scope. A version 8 UUID as cascade:RecordFromServerNamingRule says, over this rule's IRI and, in order: the custodian's root and extension, as cascade:RecordFromCcdaNamingRule picks them; the patient id's root, its extension; the IRI of the class the entry's record is; its key fingerprint; its members fingerprint when it has no key fingerprint; the empty string for each it lacks. Used only in a document whose custodian has an id that names an organization record and that states exactly one patient with an id, and never for the patient."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc9562#section-5.8> .

cascade:ContainedRecordNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "contained record naming rule"@en ;
    rdfs:comment "A FHIR contained resource, named inside its container's source version. A version 8 UUID as cascade:RecordFromServerNamingRule says, over this rule's IRI and, in order: the container record's name; the container's meta.versionId, else its meta.lastUpdated as written, else the empty string; the contained resource's id."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc9562#section-5.8> .

cascade:EnteredRecordNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "entered record naming rule"@en ;
    rdfs:comment "A record a person entered. A version 8 UUID as cascade:RecordFromServerNamingRule says, over this rule's IRI and, in order: the entry session's IRI; the draft's position in its session, in decimal."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc9562#section-5.8> .

cascade:VersionNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "version naming rule"@en ;
    rdfs:comment "A version is named ni:///sha-256; and the unpadded base64url SHA-256 of the RDFC-1.0 canonical N-Quads of exactly its triples, its subject written urn:cascade:this-version and its prov:specializationOf its record among them: each line once, in code point order, no blank node, a literal's lexical form as written and a language tag in lower case."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc6920> , <https://www.w3.org/TR/rdf-canon/> .

cascade:RevisionNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "revision naming rule"@en ;
    rdfs:comment "A revision is named as cascade:VersionNamingRule names a version, over its own triples, its subject written urn:cascade:this-revision and a node inside it urn:cascade:this-revision# and the node's own fragment."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc6920> , <https://www.w3.org/TR/rdf-canon/> .

cascade:FindingNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "finding naming rule"@en ;
    rdfs:comment "A cascade:FindingForReview is named as cascade:VersionNamingRule names a version, over its own triples, its subject written urn:cascade:this-finding."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc6920> , <https://www.w3.org/TR/rdf-canon/> .

cascade:TableVersionNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "table version naming rule"@en ;
    rdfs:comment "A version of a reference table is named as cascade:VersionNamingRule names a version, over exactly these triples: urn:cascade:this-version prov:specializationOf its series, urn:cascade:this-version prov:wasRevisionOf the version it revises when there is one, and its rows."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc6920> , <https://www.w3.org/TR/rdf-canon/> .

cascade:DocumentNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "document naming rule"@en ;
    rdfs:comment "A document is named ni:///sha-256; and the unpadded base64url SHA-256 of its bytes."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc6920> .

cascade:TableRowNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "table row naming rule"@en ;
    rdfs:comment "A mapping row, its SSSOM record_id. A version 8 UUID as cascade:RecordFromServerNamingRule says, over this rule's IRI and, in order: the IRIs of its owl:annotatedSource, owl:annotatedProperty and owl:annotatedTarget; for a panel member row, the canonical lexical form of its cascade:panelSequence."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc9562#section-5.8> , <https://mapping-commons.github.io/sssom/dev/record_id/> .

cascade:ViewEntryNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "view entry naming rule"@en ;
    rdfs:comment "An entry of a view is named by a relative reference: the view's path as runtime/pod-layout.ttl places it, #, and the lower-case hexadecimal SHA-256 of the IRI of its least member in code point order. It holds no pod address, and no file writes it absolutised."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc3986#section-4.2> .

cascade:SnapshotNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "snapshot naming rule"@en ;
    rdfs:comment "The snapshot of an act. A version 8 UUID as cascade:RecordFromServerNamingRule says, over this rule's IRI and, in order: the act's IRI; the act's description, every triple of the act's file but those whose subject is the snapshot, named as cascade:VersionNamingRule names a version but with its blank nodes labelled by RDFC-1.0; its cascade:firstParentSnapshot as a list of none or one; its cascade:mergedParentSnapshot values as a list; its cascade:setHash as written. A list is its count, then its distinct items in code point order."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc9562#section-5.8> , <https://www.w3.org/TR/rdf-canon/> .

cascade:ServerNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "server naming rule"@en ;
    rdfs:comment "A server a client pulled from or connected to, as a record. A version 8 UUID as cascade:RecordFromServerNamingRule says, over this rule's IRI and the normalised base URL the client used."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc9562#section-5.8> , <https://www.rfc-editor.org/rfc/rfc3986#section-6.2.2> ,
        <https://www.rfc-editor.org/rfc/rfc3986#section-6.2.3> .

cascade:OrganizationNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "organization naming rule"@en ;
    rdfs:comment "An organization, as a record. A version 8 UUID as cascade:RecordFromServerNamingRule says, over this rule's IRI and, from a server, in order: the normalised base URL, Organization, the resource's id; from a document, in order: the IRI of the datatype and the lexical form of the org:identifier literal its version carries, so the name and the version state the identifier alike: a FHIR Organization.identifier's system and value; a C-CDA id as HL7's CDA-to-FHIR identifier mapping makes it one, a root and extension as the root's registered URI and the extension where the FHIR identifier registry gives the root one (http://hl7.org/fhir/sid/us-npi for the NPI's 2.16.840.1.113883.4.6), else as urn:oid: and the root (urn:uuid: and the root in lower case, for a UUID root) and the extension, a root alone that registers no identifier system as urn:ietf:rfc:3986 and the root's urn:oid: or urn:uuid: IRI; a FHIR system urn:oid: and a registered root is that root's URI too, so one NPI names one organization in either format."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc9562#section-5.8> .

cascade:MatcherJudgmentNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "matcher judgment naming rule"@en ;
    rdfs:comment "A matcher judgment. A version 8 UUID as cascade:RecordFromServerNamingRule says, over this rule's IRI and, in order: the maker; the matcher rule term; the justification; the members as a list; what it used as a list. A list is its count, then its distinct items in code point order."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc9562#section-5.8> .

cascade:MatcherJudgmentAssertionNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "assertion naming rule"@en ;
    rdfs:comment "A matcher judgment asserted under a version of the rule list. A version 8 UUID as cascade:RecordFromServerNamingRule says, over this rule's IRI and, in order: the rule list version; the matcher judgment."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc9562#section-5.8> .

cascade:ReleaseRetractionNamingRule a owl:NamedIndividual , cascade:NamingRule ;
    rdfs:label "retraction naming rule"@en ;
    rdfs:comment "A release's retraction of a matcher judgment's assertion. A version 8 UUID as cascade:RecordFromServerNamingRule says, over this rule's IRI and, in order: the release; the assertion; the matcher rule the release declares wrong."@en ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc9562#section-5.8> .

# Snapshots

cascade:Snapshot a owl:Class ;
    rdfs:label "snapshot"@en ;
    rdfs:comment "The set of files a writer holds as one of its acts left it, as a git commit names its tree and its parents: a node in its act's file, prov:wasGeneratedBy the act, named by cascade:SnapshotNamingRule. The set is every file named as N9 names a file in a folder runtime/pod-layout.ttl gives by solid:instanceContainer, but the views' folder, the syncs' folder, the one it gives cascade:SyncFromAnotherWriter, and the requirements' folder, the one it gives cascade:holdsRequirementsForReadingAPod: a file the layout gives by solid:instance changes in place, and is outside it, and so is any other file in those folders. A file is in the set by its path, whether a host keeps it at that path or in an archive; an archive, in the folder the layout gives cascade:holdsFilesInArchivesOfMediaType, is not."@en ;
    rdfs:subClassOf prov:Entity .

cascade:firstParentSnapshot a owl:ObjectProperty ;
    rdfs:label "first parent snapshot"@en ;
    rdfs:comment "Of a snapshot, the writer's own previous one; a writer's first snapshot has none. Its name takes it."@en ;
    rdfs:domain cascade:Snapshot ;
    rdfs:range cascade:Snapshot .

cascade:mergedParentSnapshot a owl:ObjectProperty ;
    rdfs:label "merged parent snapshot"@en ;
    rdfs:comment "Of a snapshot, each head it merges: an arrived snapshot no held snapshot names as a parent, for a sync's; every head the writer holds, for a writer's first. Its name takes them."@en ;
    rdfs:domain cascade:Snapshot ;
    rdfs:range cascade:Snapshot .

cascade:setHash a owl:DatatypeProperty ;
    rdfs:label "set hash"@en ;
    rdfs:comment "Of a snapshot, the order-free hash of the set of files the writer held when its act ended, every file of it but the act's own file, which the snapshot's name binds instead: Bitcoin Core's MuHash3072 over one member per file, the file's path relative to the pod in UTF-8, a 0x00 byte and the SHA-256 of its bytes, written as the 64 lower-case hexadecimal digits of its SHA-256 digest in byte order, where Bitcoin Core writes them reversed. Two writers hold one set when the set hashes of what each holds agree."@en ;
    rdfs:domain cascade:Snapshot ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://github.com/bitcoin/bitcoin/blob/a773e1e33b349dc819b5a0edc1c7a4839dc73b48/src/crypto/muhash.cpp> , <https://cseweb.ucsd.edu/~mihir/papers/inchash.pdf> .

cascade:fileAddedToSet a owl:DatatypeProperty ;
    rdfs:label "file added to set"@en ;
    rdfs:comment "Of a snapshot, the path relative to the pod of each file of the set its act wrote, its act's own file among them unless a sync's, and of no other, so a sync's names none: what the run that wrote a file is known from. A file of the set that no act wrote, as a new pod's, a reference version's or a person's judgment, is named by none."@en ;
    rdfs:domain cascade:Snapshot ;
    rdfs:range xsd:string .

cascade:DocumentImport a owl:Class ;
    rdfs:label "document import"@en ;
    rdfs:comment "An act: one run of the Bridge over the documents of one export, download or pull, filing the records they bring; prov:used each document it kept."@en ;
    rdfs:subClassOf prov:Activity .

cascade:HandEntrySession a owl:Class ;
    rdfs:label "hand entry session"@en ;
    rdfs:comment "An act: one session of a person entering records by hand in an app, filing each as a record with its first revision."@en ;
    rdfs:subClassOf prov:Activity .

cascade:MatcherRun a owl:Class ;
    rdfs:label "matcher run"@en ;
    rdfs:comment "An act of the matcher over the records an import, an entry session or a sync brought, or over the pod at an open or a recheck; prov:wasInformedBy the act whose records it takes."@en ;
    rdfs:subClassOf prov:Activity .

cascade:SyncFromAnotherWriter a owl:Class ;
    rdfs:label "sync from another writer"@en ;
    rdfs:comment "An act of a writer that holds acts of another writer of the pod: written whenever it holds an act, other than a sync, whose snapshot is no ancestor of its last snapshot, and prov:wasInformedBy each such act; its snapshot merges every head it holds but its first parent. Its file is in the syncs' folder, outside the set."@en ;
    rdfs:subClassOf prov:Activity .

# The matcher and its rules

cascade:CascadeMatcher a prov:SoftwareAgent ;
    rdfs:label "Cascade matcher"@en ;
    rdfs:comment "Any runtime that follows runtime/matcher.feature and the Cascade rule list, as the maker of the judgments it writes; unversioned, since the runtime that ran is on the act."@en .

cascade:MatcherJudgmentAssertion a owl:Class ;
    rdfs:label "matcher judgment assertion"@en ;
    rdfs:comment "A matcher judgment asserted under a version of the rule list, named by cascade:MatcherJudgmentAssertionNamingRule. A matcher judgment is asserted once for each query its rule has run with: a version whose row for the judgment's rule carries the cascade:queryHash of that rule's row in a version the judgment is already asserted under asserts nothing. It carries no time and names no run."@en ;
    rdfs:subClassOf prov:Entity .

cascade:assertedJudgment a owl:ObjectProperty ;
    rdfs:label "asserted judgment"@en ;
    rdfs:comment "The matcher judgment an assertion asserts."@en ;
    rdfs:domain cascade:MatcherJudgmentAssertion ;
    rdfs:range cascade:Judgment .

cascade:assertedUnderRuleListVersion a owl:ObjectProperty ;
    rdfs:label "asserted under rule list version"@en ;
    rdfs:comment "The version of the rule list an assertion asserts its matcher judgment under."@en ;
    rdfs:domain cascade:MatcherJudgmentAssertion ;
    rdfs:range prov:Entity .

cascade:SameCodeRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R1, same code"@en ;
    rdfs:comment "Rule R1 of runtime/matcher.feature; its judgments are justified cascade:SameCode."@en .

cascade:SameCodeAndDateRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R2, same code and date"@en ;
    rdfs:comment "Rule R2 of runtime/matcher.feature; its judgments are justified cascade:SameCodeAndDate."@en .

cascade:SameMappedCodeRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R3, same mapped code"@en ;
    rdfs:comment "Rule R3 of runtime/matcher.feature; its judgments are justified cascade:SameMappedCode."@en .

cascade:SameMappedCodeAndDateRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R4, same mapped code and date"@en ;
    rdfs:comment "Rule R4 of runtime/matcher.feature; its judgments are justified cascade:SameMappedCodeAndDate."@en .

cascade:SameMedicationCodeRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R5, same medication code"@en ;
    rdfs:comment "Rule R5 of runtime/matcher.feature; its judgments are justified cascade:SameMedicationCode."@en .

cascade:SameResultRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R6, same result"@en ;
    rdfs:comment "Rule R6 of runtime/matcher.feature; its judgments are justified cascade:SameResult."@en .

cascade:SameConvertedCodeRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R7, same converted code"@en ;
    rdfs:comment "Rule R7 of runtime/matcher.feature; its judgments are justified cascade:SameConvertedCode."@en .

cascade:SameCodeAndPeriodRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R8, same code and period"@en ;
    rdfs:comment "Rule R8 of runtime/matcher.feature; its judgments are justified cascade:SameCodeAndPeriod."@en .

cascade:SameBrandGenericRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R10, same brand generic"@en ;
    rdfs:comment "Rule R10 of runtime/matcher.feature; its judgments are justified cascade:SameBrandGeneric."@en .

cascade:SameProductCodeRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R11, same product code"@en ;
    rdfs:comment "Rule R11 of runtime/matcher.feature; its judgments are justified cascade:SameProductCode."@en .

cascade:SameVariationRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R12, same variation"@en ;
    rdfs:comment "Rule R12 of runtime/matcher.feature; its judgments are justified cascade:SameVariation."@en .

cascade:SameVariationThroughTableRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R13, same variation through the table"@en ;
    rdfs:comment "Rule R13 of runtime/matcher.feature; its judgments are justified cascade:SameVariationThroughTable."@en .

cascade:SameSelfAssertedBaseUrlAndAuthorizationEndpointOnOneHostRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R14, same self-asserted base URL and authorization endpoint on one host"@en ;
    rdfs:comment "Rule R14 of runtime/matcher.feature; its judgments are justified cascade:SameSelfAssertedBaseUrlAndAuthorizationEndpointOnOneHost."@en .

cascade:DifferentResultValuesRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R16, different result values"@en ;
    rdfs:comment "Rule R16 of runtime/matcher.feature; it files no judgment, but a finding for review of kind cascade:DifferentResultValuesAtOneInstant."@en .

cascade:DifferentResultUnitsRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R17, different result units"@en ;
    rdfs:comment "Rule R17 of runtime/matcher.feature; it files no judgment, but a finding for review of kind cascade:DifferentResultUnitsAtOneInstant."@en .

cascade:SameResultOnOneDayRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R15, same result on one day"@en ;
    rdfs:comment "Rule R15 of runtime/matcher.feature; its judgments are justified cascade:SameResultOnOneDay."@en .

cascade:SameBusinessIdentifierAndTestCodeWithinOneOrganizationRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R18, same business identifier and test code within one organization"@en ;
    rdfs:comment "Rule R18 of runtime/matcher.feature; its judgments are justified cascade:SameBusinessIdentifierAndTestCodeWithinOneOrganization."@en .

cascade:SameNoteTypeAndTextGrownWithinOneOrganizationRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R19, same note type and text grown within one organization"@en ;
    rdfs:comment "Rule R19 of runtime/matcher.feature; its judgments are justified cascade:SameNoteTypeAndTextGrownWithinOneOrganization."@en .

cascade:SameNoteTypeAndTextRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R20, same note type and text"@en ;
    rdfs:comment "Rule R20 of runtime/matcher.feature; its judgments are justified cascade:SameNoteTypeAndText."@en .

cascade:SameNoteOrDocumentMasterIdentifierRule a owl:NamedIndividual , cascade:MatcherRule ;
    rdfs:label "R21, same note or document master identifier"@en ;
    rdfs:comment "Rule R21 of runtime/matcher.feature; its judgments are justified cascade:SameNoteOrDocumentMasterIdentifier."@en .

# Servers and organizations

cascade:Server a owl:Class ;
    rdfs:label "server"@en ;
    rdfs:subClassOf prov:SoftwareAgent , prov:Entity ;
    rdfs:comment "A server a client pulled from or connected to, as a record named by cascade:ServerNamingRule. What the server reported about itself is on its versions; a server known only from a document's address has a record with none."@en ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/capabilitystatement.html> .

cascade:ConnectToServer a owl:Class ;
    rdfs:label "connect to a server"@en ;
    rdfs:comment "An act: an app signing in to a server, which writes a version of the server's record holding what the server reported about itself and the client id the app signed in with, and nothing else."@en ;
    rdfs:subClassOf prov:Activity ;
    rdfs:seeAlso <https://hl7.org/fhir/smart-app-launch/app-launch.html> .

cascade:selfAssertedBaseUrl a owl:DatatypeProperty ;
    rdfs:label "self-asserted base URL"@en ;
    rdfs:comment "Of a version of a server, the base URL the server said it lives at, as the server wrote it: evidence, never a name input."@en ;
    rdfs:domain cascade:Server ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/capabilitystatement-definitions.html#CapabilityStatement.implementation.url> .

cascade:authorizationEndpoint a owl:DatatypeProperty ;
    rdfs:label "authorization endpoint"@en ;
    rdfs:comment "Of a version of a server, the URL of its OAuth 2.0 authorization endpoint, as the server reported it."@en ;
    rdfs:domain cascade:Server ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc6749#section-3.1> , <https://www.rfc-editor.org/rfc/rfc8414#section-2> ,
        <https://hl7.org/fhir/smart-app-launch/conformance.html> .

cascade:serverSoftwareName a owl:DatatypeProperty ;
    rdfs:label "server software name"@en ;
    rdfs:comment "Of a version of a server, the name of the software it said it runs, as the server wrote it."@en ;
    rdfs:domain cascade:Server ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/capabilitystatement-definitions.html#CapabilityStatement.software.name> .

cascade:serverSoftwareVersion a owl:DatatypeProperty ;
    rdfs:label "server software version"@en ;
    rdfs:comment "Of a version of a server, the release of the software it said it runs, as the server wrote it."@en ;
    rdfs:domain cascade:Server ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/capabilitystatement-definitions.html#CapabilityStatement.software.version> .

cascade:connectClientId a owl:DatatypeProperty ;
    rdfs:label "client id of the connect"@en ;
    rdfs:comment "Of a version of a server, the OAuth 2.0 client identifier the connect that wrote it used with the server, since a pod holds connects from several apps."@en ;
    rdfs:domain cascade:Server ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc6749#section-2.2> .

cascade:Organization a owl:Class ;
    rdfs:label "organization"@en ;
    rdfs:subClassOf prov:Organization , org:Organization , prov:Entity ;
    rdfs:comment "An organization as a record named by cascade:OrganizationNamingRule: a provider, a custodian, a payer. Its name, addresses and identifiers are on its versions."@en ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/organization.html> .

cascade:organizationAddress a owl:DatatypeProperty ;
    rdfs:label "organization address"@en ;
    rdfs:comment "Of a version of an organization, one postal address as one string: FHIR Address.text when the source gives one, else the address lines, then city, state, postal code and country, each present part on its own line, separated by line feeds as a vCard label is."@en ;
    rdfs:domain cascade:Organization ;
    rdfs:range xsd:string ;
    rdfs:seeAlso <https://hl7.org/fhir/R4/organization-definitions.html#Organization.address> .

org:identifier a owl:DatatypeProperty ;
    rdfs:label "identifier"@en ;
    rdfs:domain org:Organization ;
    rdfs:subPropertyOf skos:notation ;
    rdfs:isDefinedBy <http://www.w3.org/ns/org> ;
    dct:source <https://www.w3.org/ns/org.ttl> ;
    dct:license <http://www.opendatacommons.org/licenses/pddl/1.0/> .

# What a document's description and the Bridge's findings carry into a pod

cascade:serverBaseUrl a owl:DatatypeProperty ;
    rdfs:label "server base URL"@en ;
    rdfs:comment "The base URL of a server as the client used it, normalised as cascade:RecordFromServerNamingRule says: of a document, the server's the client fetched it from; of a server's record, its own, which cascade:ServerNamingRule names it by."@en ;
    rdfs:range xsd:string .

cascade:sourceFormatVersion a owl:DatatypeProperty ;
    rdfs:label "source format version"@en ;
    rdfs:comment "Of a document, the version of the source format it is written in, as the container it arrived in states it."@en ;
    rdfs:range xsd:string .

cascade:authenticatedPatient a owl:DatatypeProperty ;
    rdfs:label "authenticated patient"@en ;
    rdfs:comment "Of a document, the patient the connection that fetched it authenticated as, written as a reference in the document is written."@en ;
    rdfs:range xsd:string .

cascade:authenticatedAsProxy a owl:DatatypeProperty ;
    rdfs:label "authenticated as proxy"@en ;
    rdfs:comment "Of a document, true where the connection that fetched it acted for the authenticated patient rather than as them."@en ;
    rdfs:range xsd:boolean .

cascade:BridgeFindingKinds a skos:ConceptScheme ;
    rdfs:label "Bridge finding kinds"@en ;
    rdfs:comment "The kinds of gap a Bridge finding kept with its document names as its oa:hasBody."@en .

cascade:SourcePathNotAccounted a skos:Concept ;
    skos:inScheme cascade:BridgeFindingKinds ;
    skos:prefLabel "a path of the record the adapter's source accounting does not carry"@en .

cascade:occurrenceCount a owl:DatatypeProperty ;
    rdfs:label "occurrence count"@en ;
    rdfs:comment "Of a Bridge finding, how many nodes of the record stand at the path it is about."@en ;
    rdfs:range xsd:integer .

# Consent tiers of the tools a model is offered; decisions/consent-tiers.md

cascade:ConsentTiers a skos:ConceptScheme ;
    rdfs:label "consent tiers"@en ;
    rdfs:comment "What the person's consent to a kind of act a model takes through a tool is: given when they offered the model their pods, asked for each act, or never given through a tool."@en ;
    skos:hasTopConcept cascade:ConsentTierFree , cascade:ConsentTierAsk , cascade:ConsentTierNever .

cascade:ConsentTierFree a skos:Concept ;
    skos:inScheme cascade:ConsentTiers ;
    skos:prefLabel "free"@en ;
    skos:notation "free" ;
    skos:definition "The tool runs when the model calls it: the person consented when they offered the model their pods. It writes nothing to a pod."@en ;
    skos:relatedMatch <http://www.w3.org/ns/odrl/2/Permission> .

cascade:ConsentTierAsk a skos:Concept ;
    skos:inScheme cascade:ConsentTiers ;
    skos:prefLabel "ask"@en ;
    skos:notation "ask" ;
    skos:definition "The tool runs only once the person, shown what this call will do, has said yes to it. A no, no answer, or a door that cannot ask the person, does nothing."@en ;
    skos:relatedMatch <http://www.w3.org/ns/odrl/2/obtainConsent> .

cascade:ConsentTierNever a skos:Concept ;
    skos:inScheme cascade:ConsentTiers ;
    skos:prefLabel "never"@en ;
    skos:notation "never" ;
    skos:definition "No tool takes the act, whatever the person says: they take it themselves, in the app. A tool carries free or ask, never this tier."@en ;
    skos:relatedMatch <http://www.w3.org/ns/odrl/2/Prohibition> .

cascade:ModelToolActKinds a skos:ConceptScheme ;
    rdfs:label "kinds of act a model tool takes"@en ;
    rdfs:comment "Each kind of act a tool may let a model take on the person's pods or on the app that holds them, with its cascade:consentTier. A tool takes one kind."@en ;
    skos:hasTopConcept cascade:ReadingPodsOrTables , cascade:MovingTheAppsView , cascade:WritingToAPod ,
        cascade:MakingAPodThatIsNotEncrypted , cascade:ChangingTheAppsTablesOrSettings , cascade:MakingUnlockingOrLockingAnEncryptedPod , cascade:SigningInAtASource ,
        cascade:ImportingRecordsFromASource , cascade:DeletingPods .

cascade:ReadingPodsOrTables a skos:Concept ;
    skos:inScheme cascade:ModelToolActKinds ;
    skos:prefLabel "reading pods or tables"@en ;
    skos:definition "Reads which pods there are, what a pod holds, or what the app's reference tables say, and writes nothing."@en ;
    skos:closeMatch <http://www.w3.org/ns/odrl/2/read> , <https://w3id.org/dpv#Consult> ;
    cascade:consentTier cascade:ConsentTierFree .

cascade:MovingTheAppsView a skos:Concept ;
    skos:inScheme cascade:ModelToolActKinds ;
    skos:prefLabel "moving the app's view"@en ;
    skos:definition "Changes which page, pod or entry the app shows the person, as a click does, and writes nothing."@en ;
    skos:closeMatch <http://www.w3.org/ns/odrl/2/display> , <https://w3id.org/dpv#Display> ;
    cascade:consentTier cascade:ConsentTierFree .

cascade:WritingToAPod a skos:Concept ;
    skos:inScheme cascade:ModelToolActKinds ;
    skos:prefLabel "writing to a pod"@en ;
    skos:definition "Adds to an existing pod what the person states or judges, an entry, a judgment or a retraction of one. It edits nothing a pod holds."@en ;
    skos:closeMatch <http://www.w3.org/ns/odrl/2/annotate> ;
    cascade:consentTier cascade:ConsentTierAsk .

cascade:MakingAPodThatIsNotEncrypted a skos:Concept ;
    skos:inScheme cascade:ModelToolActKinds ;
    skos:prefLabel "making a pod that is not encrypted"@en ;
    skos:definition "Makes a new pod whose files are not encrypted, with no one's words or password."@en ;
    cascade:consentTier cascade:ConsentTierAsk .

cascade:ChangingTheAppsTablesOrSettings a skos:Concept ;
    skos:inScheme cascade:ModelToolActKinds ;
    skos:prefLabel "changing the app's tables or settings"@en ;
    skos:definition "Changes what the app holds beside its pods: which reference tables it reads, or a setting of its own."@en ;
    cascade:consentTier cascade:ConsentTierAsk .

cascade:MakingUnlockingOrLockingAnEncryptedPod a skos:Concept ;
    skos:inScheme cascade:ModelToolActKinds ;
    skos:prefLabel "making, unlocking or locking an encrypted pod"@en ;
    skos:definition "Makes an encrypted pod, any step of its making included, or unlocks or locks one: each needs or ends the person's own words and password."@en ;
    cascade:consentTier cascade:ConsentTierNever .

cascade:SigningInAtASource a skos:Concept ;
    skos:inScheme cascade:ModelToolActKinds ;
    skos:prefLabel "signing in at a source"@en ;
    skos:definition "Connects to a hospital or another source of records, signing in as the person there."@en ;
    cascade:consentTier cascade:ConsentTierNever .

cascade:ImportingRecordsFromASource a skos:Concept ;
    skos:inScheme cascade:ModelToolActKinds ;
    skos:prefLabel "importing records from a source"@en ;
    skos:definition "Brings a source's records into a pod: an export, a download or a pull."@en ;
    skos:broadMatch <https://w3id.org/dpv#Collect> ;
    cascade:consentTier cascade:ConsentTierNever .

cascade:DeletingPods a skos:Concept ;
    skos:inScheme cascade:ModelToolActKinds ;
    skos:prefLabel "deleting pods"@en ;
    skos:definition "Removes a pod or every pod, a reset that makes them again included."@en ;
    skos:closeMatch <http://www.w3.org/ns/odrl/2/delete> , <https://w3id.org/dpv#Erase> ;
    cascade:consentTier cascade:ConsentTierNever .

cascade:consentTier a owl:ObjectProperty ;
    rdfs:label "consent tier"@en ;
    rdfs:comment "Of a kind of act in cascade:ModelToolActKinds, the tier every tool taking it runs at; of a tool, the tier it declares."@en ;
    rdfs:range skos:Concept .

cascade:modelToolActKind a owl:ObjectProperty ;
    rdfs:label "model tool act kind"@en ;
    rdfs:comment "Of a tool a model is offered, the one kind of act in cascade:ModelToolActKinds it takes."@en ;
    rdfs:range skos:Concept .
