@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://www.cdisc.org/cosmos/sdtm_v1.0/SDTMGroup> a sh:NodeShape ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:datatype xsd:string ;
            sh:description "The last SDTMIG version that is applicable to the BC dataset specialization" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 7 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/sdtmigEndVersion> ],
        [ sh:description "Package type (sdtm for SDTM Dataset Specializations)" ;
            sh:in ( "sdtm" ) ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:order 1 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/packageType> ],
        [ sh:datatype xsd:date ;
            sh:description "Biomedical Concept package release date indicating when the BC package was published to production" ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 0 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/packageDate> ],
        [ sh:class <https://www.cdisc.org/cosmos/sdtm_v1.0/SDTMVariable> ;
            sh:description "Variable included in the SDTM dataset specialization" ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 9 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/variables> ],
        [ sh:datatype xsd:string ;
            sh:description "Domain for the SDTM specialization group" ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 3 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/domain> ],
        [ sh:datatype xsd:string ;
            sh:description "Identifier for SDTM Value Level Metadata group" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 2 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/datasetSpecializationId> ;
            sh:pattern "^[A-Z][A-Z0-9_]*$" ],
        [ sh:datatype xsd:string ;
            sh:description "SDTM VLM Source which categorizes VLM groups by topic variable" ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 5 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/source> ],
        [ sh:datatype xsd:string ;
            sh:description "SDTM group short name which provides a user friendly and intuitive name for the vlm_group_id" ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 4 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/shortName> ],
        [ sh:datatype xsd:string ;
            sh:description "Biomedical Concept identifier foreign key" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 8 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/biomedicalConceptId> ;
            sh:pattern "^(C[0-9]+|NEW_[A-Z_]*[0-9]*)$" ],
        [ sh:datatype xsd:string ;
            sh:description "The earliest SDTMIG version applicable to the BC dataset specialization" ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 6 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/sdtmigStartVersion> ] ;
    sh:targetClass <https://www.cdisc.org/cosmos/sdtm_v1.0/SDTMGroup> .

<https://www.cdisc.org/cosmos/sdtm_v1.0/SubsetCodeList> a sh:NodeShape ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:datatype xsd:string ;
            sh:description "Subset codelist label" ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 2 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/subsetLabel> ],
        [ sh:datatype xsd:string ;
            sh:description "Subset codelist parent codelist" ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 0 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/parentCodelist> ;
            sh:pattern "^C[0-9]+$" ],
        [ sh:datatype xsd:string ;
            sh:description "Subset codelist short name" ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 1 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/subsetShortName> ;
            sh:pattern "^[A-Z][A-Z0-9_]*$" ],
        [ sh:class <https://www.cdisc.org/cosmos/sdtm_v1.0/CodeListTerm> ;
            sh:description "Term in subset codelist" ;
            sh:minCount 1 ;
            sh:nodeKind sh:BlankNodeOrIRI ;
            sh:order 3 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/codelistTerm> ] ;
    sh:targetClass <https://www.cdisc.org/cosmos/sdtm_v1.0/SubsetCodeList> .

<https://www.cdisc.org/cosmos/sdtm_v1.0/AssignedTerm> a sh:NodeShape ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:datatype xsd:string ;
            sh:description "Submission value for assigned term in NCIt if it exists, or an assigned value which will be the default value" ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 1 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/value> ],
        [ sh:datatype xsd:string ;
            sh:description "C-code for assigned term in NCIt or left blank when CDISC terminology does not apply" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 0 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/conceptId> ;
            sh:pattern "^(C[0-9]+|CNEW)$" ] ;
    sh:targetClass <https://www.cdisc.org/cosmos/sdtm_v1.0/AssignedTerm> .

<https://www.cdisc.org/cosmos/sdtm_v1.0/CodeList> a sh:NodeShape ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:description "Link to NCIt for the codelist" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 1 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/href> ],
        [ sh:datatype xsd:string ;
            sh:description "C-code for a codelist in NCIt" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 0 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/conceptId> ;
            sh:pattern "^(C[0-9]+|CNEW)$" ],
        [ sh:datatype xsd:string ;
            sh:description "CDISC submission value for the codelist" ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 2 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/submissionValue> ;
            sh:pattern "^[A-Z][A-Z0-9_]*$" ] ;
    sh:targetClass <https://www.cdisc.org/cosmos/sdtm_v1.0/CodeList> .

<https://www.cdisc.org/cosmos/sdtm_v1.0/CodeListTerm> a sh:NodeShape ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:datatype xsd:string ;
            sh:description "Submision value of term in subset codelist" ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 1 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/termValue> ],
        [ sh:datatype xsd:string ;
            sh:description "C-code term in subset codelist" ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 0 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/termId> ;
            sh:pattern "^(C[0-9]+)$" ] ;
    sh:targetClass <https://www.cdisc.org/cosmos/sdtm_v1.0/CodeListTerm> .

<https://www.cdisc.org/cosmos/sdtm_v1.0/RelationShip> a sh:NodeShape ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:description "Short variable relationship linking phrase for programming purposes" ;
            sh:in ( "ASSESSES" "CLASSIFIES" "DECODES" "DESCRIBES" "GROUPS" "GROUPS_BY" "IDENTIFIES" "IDENTIFIES_OBSERVATION" "IDENTIFIES_PRODUCT_IN" "IDENTIFIES_TUMOR_IN" "INDICATES" "IS_ATTRIBUTE_FOR" "IS_DECODED_BY" "IS_DERIVED_FROM" "IS_EPOCH_OF" "IS_GROUPED_BY" "IS_INDICATOR_FOR" "IS_ORIGINAL_TEXT_FOR" "IS_POSITION_FOR" "IS_REASON_FOR" "IS_RESULT_OF" "IS_SPECIMEN_TESTED_IN" "IS_SUBJECT_STATE_FOR" "IS_TIMING_FOR" "IS_UNIT_FOR" "PERFORMED" "PERFORMS" "QUALIFIES" "SPECIFIES" "IS_VALUE_OF" "IS_REFERENCE_TERMINOLOGY_FOR" "IS_REFERENCE_VALUE_FOR" "IS_DEVICE_FOR" ) ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:order 2 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/predicateTerm> ],
        [ sh:description "Variable relationship descriptive linking phrase" ;
            sh:in ( "assesses seriousness of" "assesses the severity of" "associates the tumor identified in" "decodes the value in" "describes actions taken" "describes relationship of" "describes the outcome of" "further describes the test in" "further specifies the anatomical location in" "groups tumor assessments used in overall response identified by" "groups values in" "groups, within an individual subject, values in" "identifies a pattern of" "identifies an observation described by" "identifies overall response supported by tumor assessments identified by" "identifies the image from the procedure in" "identifies the reference used in the genomic test in" "identifies the tumor found by the test in" "indicates heritability of the genetic variant in" "indicates occurrence of the value in" "indicates pre-specification of the value in" "indicates severity of" "indicates the location detail for the tumor identified by" "indicates the previous irradiation status of the tumor identified by" "indicates the progression status of the previous irradiated tumor identified by" "is a dictionary-derived class code for the value in" "is a dictionary-derived class name for the value in" "is a dictionary-derived term for the value in" "is a grouping of values in" "is a reference range value for" "is an identifier for a published reference for the genetic variant in" "is an identifier for the copy, on one of two homologous chromosones, of the genetic variant in" "is an identifier for the evaluator with the role in" "is an identifier for the genetic sequence of the genetic entity represented by" "is decoded by the value in" "is original text for" "is the administered amount of the treatment in" "is the administration anatomical location for the treatment in" "is the aspect of the event used to define the date in" "is the chromosome that is the position of the result in" "is the clinical significance interpretation for" "is the clinical trial or treatment setting for" "is the code for the value in" "is the date of occurrence for" "is the date of occurrence" "is the dictionary code for the test in" "is the dictionary-derived class code for the value in" "is the dictionary-derived class name for the value in" "is the dictionary-derived term for the value in" "is the duration for" "is the end date for" "is the epoch of the performance of the test in" "is the frequency of administration of the amount in" "is the genetic sub-location of the result in" "is the identifier for the device which collected data for the test in" "is the identifier for the source data used in the performance of the test in" "is the intended disease outcome for" "is the material type of the subject of the activity in" "is the medical condition that is the reason for the treatment in" "is the method for the test in" "is the method of secondary analysis of results in" "is the name of the reference terminology for" "is the numeric location, within a chromosone, genetic entity, or genetic sub-region, of the result in" "is the object of the observation in" "is the operational objective of the test in" "is the part of the body through which is administered the treatment in" "is the period of time for the test in" "is the period of time to be considered when answering the question in" "is the physical form of the product in" "is the reason for stopping administration of" "is the reason for the status of the value in" "is the reason the lesion was not evaluable in" "is the result of the test in" "is the role of the assessor who performed the test in" "is the severity of the toxicity in" "is the specimen tested in" "is the start date for" "is the status of the value in" "is the subject position during performance of the test in" "is the subject's fasting status during the performance of the test in" "is the substance bound to the analyte in" "is the symbol for the genomic entity that is the position of the result in" "is the textual description of the intended dose regimen for" "is the type of genomic entity that is the position of the result in" "is the unit for the value in" "is the unit for" "is the value of the property identified by" "is the version of the reference terminology in" "specifies the anatomical location in" "specifies the anatomical location of the performance of the test in" "specifies the anatomical location of the tumor identified by" "specifies the anatomical location of" "specifies the severity of" "values are grouped by" "was the subject position during performance of the test in" "indicates the inclusion of non-resting time periods" "is the analytical method for the test in" "is the date of collection for" "is the device that performed the test in" "is the period of time considered for the test in" "is the value for the parameter in" ) ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:order 1 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/linkingPhrase> ],
        [ sh:datatype xsd:string ;
            sh:description "Subject in a variable relationship" ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 0 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/subject> ],
        [ sh:datatype xsd:string ;
            sh:description "Object in a variable relationship" ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 3 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/object> ] ;
    sh:targetClass <https://www.cdisc.org/cosmos/sdtm_v1.0/RelationShip> .

<https://www.cdisc.org/cosmos/sdtm_v1.0/SDTMVariable> a sh:NodeShape ;
    sh:closed true ;
    sh:ignoredProperties ( rdf:type ) ;
    sh:property [ sh:description "Variable origin type (define-XML v21)" ;
            sh:in ( <http://purl.obolibrary.org/obo/NCIT_C170547> <http://purl.obolibrary.org/obo/NCIT_C170548> <http://purl.obolibrary.org/obo/NCIT_C170549> <http://purl.obolibrary.org/obo/NCIT_C170550> <http://purl.obolibrary.org/obo/NCIT_C170551> ) ;
            sh:maxCount 1 ;
            sh:order 15 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/originType> ],
        [ sh:description "SDTM variable role" ;
            sh:in ( "Identifier" "Qualifier" "Timing" "Topic" ) ;
            sh:maxCount 1 ;
            sh:order 7 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/role> ],
        [ sh:datatype xsd:integer ;
            sh:description "Variable significant_digits" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 12 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/significantDigits> ],
        [ sh:description "Variable origin source (define-XML v21)" ;
            sh:in ( <http://purl.obolibrary.org/obo/NCIT_C25936> <http://purl.obolibrary.org/obo/NCIT_C70793> <http://purl.obolibrary.org/obo/NCIT_C41189> <http://purl.obolibrary.org/obo/NCIT_C68608> ) ;
            sh:maxCount 1 ;
            sh:order 16 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/originSource> ],
        [ sh:datatype xsd:boolean ;
            sh:description "Target variable for VLM" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 18 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/vlmTarget> ],
        [ sh:datatype xsd:boolean ;
            sh:description "Flag that indicates if the variable is a non-standard variable" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 2 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/isNonStandard> ],
        [ sh:datatype xsd:boolean ;
            sh:description "Indicator that variable must be populated within the SDTM group" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 14 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/mandatoryValue> ],
        [ sh:description "Variable data type" ;
            sh:in ( "datetime" "durationDatetime" "float" "integer" "text" ) ;
            sh:maxCount 1 ;
            sh:order 9 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/dataType> ],
        [ sh:description "Comparison operator for SDTM group variables included in VLM" ;
            sh:in ( "EQ" "IN" ) ;
            sh:maxCount 1 ;
            sh:order 17 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/comparator> ],
        [ sh:datatype xsd:integer ;
            sh:description "Variable length" ;
            sh:maxCount 1 ;
            sh:minInclusive 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 10 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/length> ],
        [ sh:datatype xsd:string ;
            sh:description "List of SDTM submission values used if subset codelist is not applicable" ;
            sh:nodeKind sh:Literal ;
            sh:order 5 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/valueList> ],
        [ sh:datatype xsd:boolean ;
            sh:description "Indicator that variable must be present within the SDTM group" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 13 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/mandatoryVariable> ],
        [ sh:datatype xsd:string ;
            sh:description "Variable display format" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 11 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/format> ],
        [ sh:class <https://www.cdisc.org/cosmos/sdtm_v1.0/AssignedTerm> ;
            sh:description "Assigned term" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:BlankNodeOrIRI ;
            sh:order 6 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/assignedTerm> ],
        [ sh:class <https://www.cdisc.org/cosmos/sdtm_v1.0/RelationShip> ;
            sh:description "Relationship between variables" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:BlankNodeOrIRI ;
            sh:order 8 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/relationship> ],
        [ sh:datatype xsd:string ;
            sh:description "Variable included in the SDTM dataset specialization" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 0 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/name> ;
            sh:pattern "^[A-Z][A-Z0-9_]*$" ],
        [ sh:datatype xsd:string ;
            sh:description "Subset codelist short name" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 4 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/subsetCodelist> ;
            sh:pattern "^[A-Z][A-Z0-9_]*$" ],
        [ sh:datatype xsd:string ;
            sh:description "Biomedical Concept Data Element Concept identifier foreign key" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:order 1 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/dataElementConceptId> ;
            sh:pattern "^(C[0-9]+|NEW_[A-Z_]*[0-9]*)$" ],
        [ sh:class <https://www.cdisc.org/cosmos/sdtm_v1.0/CodeList> ;
            sh:description "Codelist" ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:order 3 ;
            sh:path <https://www.cdisc.org/cosmos/sdtm_v1.0/codelist> ] ;
    sh:targetClass <https://www.cdisc.org/cosmos/sdtm_v1.0/SDTMVariable> .

