https://cacontology.projectvic.org/legal-outcomes#TreatmentOrderShape
Validation shape for treatment order instances.
Focus nodes of this shape (cacontology-legal-outcomes:TreatmentOrder) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
cacontology-legal-outcomes:complianceRequired |
sh:message Treatment order must specify if compliance is required. |
1 | 1 | xsd:boolean | |
cacontology-legal-outcomes:treatmentDuration |
sh:message Treatment duration must be between 1 and 260 weeks (5 years). |
1 | 1 | xsd:decimal |
sh:minInclusive
1.0
sh:maxInclusive
260.0
|
cacontology-legal-outcomes:treatmentProvider |
sh:message Treatment order must specify treatment provider from the allowed list. |
1 | 1 | xsd:string |
sh:in
court_approved, state_certified, private_practice, institutional, community_based
|
cacontology-legal-outcomes:treatmentType |
sh:message Treatment order must specify treatment type from the allowed list. |
1 | 1 | xsd:string |
sh:in
psychological_counseling, sex_offender_treatment, substance_abuse_treatment, anger_management, mental_health_treatment, cognitive_behavioral_therapy
|
@prefix cacontology-legal-outcomes: <https://cacontology.projectvic.org/legal-outcomes#> .
@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-legal-outcomes: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-legal-outcomes: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-legal-outcomes: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-legal-outcomes: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-legal-outcomes:complianceRequired ] ;
sh:targetClass cacontology-legal-outcomes:TreatmentOrder .