Ontology Version: 2.2.0

cacontology-sentencing:TreatmentOrderShape leaf node


URI

https://cacontology.projectvic.org/sentencing#TreatmentOrderShape

Label

Treatment Order Shape

Description

Validation shape for treatment order instances.

Implementation

@prefix cacontology-sentencing: <https://cacontology.projectvic.org/sentencing#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-sentencing:TreatmentOrderShape a sh:NodeShape ;
    rdfs:label "Treatment Order Shape"@en ;
    rdfs:comment "Validation shape for treatment order instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "psychological_counseling" "sex_offender_treatment" "substance_abuse_treatment" "anger_management" "mental_health_treatment" "cognitive_behavioral_therapy" ) ;
            sh:maxCount 1 ;
            sh:message "Treatment order must specify treatment type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-sentencing:treatmentType ],
        [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 260.0 ;
            sh:message "Treatment duration must be between 1 and 260 weeks (5 years)."@en ;
            sh:minCount 1 ;
            sh:minInclusive 1.0 ;
            sh:path cacontology-sentencing:treatmentDuration ],
        [ sh:datatype xsd:string ;
            sh:in ( "court_approved" "state_certified" "private_practice" "institutional" "community_based" ) ;
            sh:maxCount 1 ;
            sh:message "Treatment order must specify treatment provider from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-sentencing:treatmentProvider ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:message "Treatment order must specify if compliance is required."@en ;
            sh:minCount 1 ;
            sh:path cacontology-sentencing:complianceRequired ] ;
    sh:targetClass cacontology-sentencing:TreatmentOrder .