# A synthetic example: three linked Cascade records and the caregiver who wrote one of them.
# Maya, her clinic and her dad Sam are fictional. This is the full file behind the
# annotated excerpt on https://cascadeprotocol.org/.
#
# 1. The clinic's medication record (clinical vocabulary), provenance ClinicalGenerated.
# 2. The family-facing summary, carrying the brand name from the RxNorm brand mapping
#    (Ritalin, RxNorm 224917, is a tradename of methylphenidate, RxNorm 6901).
# 3. Sam's evening note (health:SelfReport). It is not linked to the medication:
#    an observation is recorded as an observation, never attributed to a treatment.
# 4. Sam himself, as a cascade:ProxyAgent acting for Maya.
#
# Validate it:  cascade validate maya-record.ttl

@prefix cascade:  <https://ns.cascadeprotocol.org/core/v1#> .
@prefix clinical: <https://ns.cascadeprotocol.org/clinical/v1#> .
@prefix checkup:  <https://ns.cascadeprotocol.org/checkup/v1#> .
@prefix health:   <https://ns.cascadeprotocol.org/health/v1#> .
@prefix prov:     <http://www.w3.org/ns/prov#> .
@prefix xsd:      <http://www.w3.org/2001/XMLSchema#> .

<urn:uuid:7c1e2a40-0000-4000-8000-000000000001> a clinical:Medication ;
    clinical:drugName "methylphenidate hydrochloride 10 MG" ;
    clinical:rxNormCode "1091136" ;
    clinical:status "active" ;
    cascade:dataProvenance cascade:ClinicalGenerated ;
    cascade:schemaVersion "1.3" .

<urn:uuid:d2040000-0000-4000-8000-000000000002> a checkup:MedicationSummary ;
    checkup:sourceRecord "urn:uuid:7c1e2a40-0000-4000-8000-000000000001"^^xsd:anyURI ;
    checkup:medicationName "Methylphenidate" ;
    checkup:brandName "Ritalin" .

<urn:uuid:e9b10000-0000-4000-8000-000000000005> a health:SelfReport ;
    health:reportDate "2026-10-14T20:30:00-04:00"^^xsd:dateTime ;
    health:reportType "symptom_tracking" ;
    health:completionStatus "complete" ;
    health:reportNotes "Took an hour to fall asleep" ;
    cascade:dataProvenance cascade:SelfReported ;
    prov:wasAttributedTo <urn:uuid:5a770000-0000-4000-8000-000000000003> .

<urn:uuid:5a770000-0000-4000-8000-000000000003> a cascade:ProxyAgent ;
    cascade:actsForPatient <urn:uuid:aa000000-0000-4000-8000-000000000004> ;
    cascade:proxyRelationship "parent" ;
    cascade:proxyGrantedAt "2026-10-01T09:00:00Z"^^xsd:dateTime .
