FHIR CI-Build

This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions

Evidencevariable.shex

Clinical Decision Support Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: No defined compartments

Raw ShEx

ShEx statement for evidencevariable

PREFIX fhir: <http://hl7.org/fhir/> 
PREFIX fhirvs: <http://hl7.org/fhir/ValueSet/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 

IMPORT <uri.shex>
IMPORT <code.shex>
IMPORT <date.shex>
IMPORT <Range.shex>
IMPORT <Group.shex>
IMPORT <string.shex>
IMPORT <Coding.shex>
IMPORT <Period.shex>
IMPORT <boolean.shex>
IMPORT <dateTime.shex>
IMPORT <markdown.shex>
IMPORT <Quantity.shex>
IMPORT <ValueSet.shex>
IMPORT <Reference.shex>
IMPORT <Identifier.shex>
IMPORT <Annotation.shex>
IMPORT <Expression.shex>
IMPORT <unsignedInt.shex>
IMPORT <positiveInt.shex>
IMPORT <UsageContext.shex>
IMPORT <RelativeTime.shex>
IMPORT <ContactDetail.shex>
IMPORT <DomainResource.shex>
IMPORT <RelatedArtifact.shex>
IMPORT <CodeableConcept.shex>
IMPORT <BackboneElement.shex>
IMPORT <CodeableReference.shex>

start=@<EvidenceVariable> AND {fhir:nodeRole [fhir:treeRoot]}

# A definition of an exposure, outcome, or other variable
<EvidenceVariable> EXTENDS @<DomainResource> CLOSED {   
    a [fhir:EvidenceVariable]?;fhir:nodeRole [fhir:treeRoot]?;

    fhir:url @<uri>?;                       # Canonical identifier for this 
                                            # evidence variable, represented as 
                                            # a URI (globally unique) 
    fhir:identifier @<OneOrMore_Identifier>?;  # Additional identifier for the 
                                            # evidence variable 
    fhir:version @<string>?;                # Business version of the evidence 
                                            # variable 
    fhir:versionAlgorithm @<string>  OR 
    			@<Coding>  ?;  # How to compare versions
    fhir:name @<string>?;                   # Name for this evidence variable 
                                            # (computer friendly) 
    fhir:title @<string>?;                  # Name for this evidence variable 
                                            # (human friendly) 
    fhir:shortTitle @<string>?;             # Title for use in informal contexts
    fhir:status @<code> AND
    	{fhir:v @fhirvs:publication-status};  # draft | active | retired | unknown
    fhir:experimental @<boolean>?;          # For testing purposes, not real 
                                            # usage 
    fhir:date @<dateTime>?;                 # Date last changed
    fhir:publisher @<string>?;              # Name of the publisher/steward 
                                            # (organization or individual) 
    fhir:contact @<OneOrMore_ContactDetail>?;  # Contact details for the publisher
    fhir:description @<markdown>?;          # Natural language description of 
                                            # the evidence variable 
    fhir:note @<OneOrMore_Annotation>?;     # Used for footnotes or explanatory 
                                            # notes 
    fhir:useContext @<OneOrMore_UsageContext>?;  # The context that the content is 
                                            # intended to support 
    fhir:purpose @<markdown>?;              # Why this EvidenceVariable is 
                                            # defined 
    fhir:copyright @<markdown>?;            # Use and/or publishing restrictions
    fhir:copyrightLabel @<string>?;         # Copyright holder and year(s)
    fhir:approvalDate @<date>?;             # When the resource was approved by 
                                            # publisher 
    fhir:lastReviewDate @<date>?;           # When the resource was last 
                                            # reviewed by the publisher 
    fhir:effectivePeriod @<Period>?;        # When the resource is expected to 
                                            # be used 
    fhir:author @<OneOrMore_ContactDetail>?;  # Who authored the content
    fhir:editor @<OneOrMore_ContactDetail>?;  # Who edited the content
    fhir:reviewer @<OneOrMore_ContactDetail>?;  # Who reviewed the content
    fhir:endorser @<OneOrMore_ContactDetail>?;  # Who endorsed the content
    fhir:relatedArtifact @<OneOrMore_RelatedArtifact>?;  # Additional documentation, 
                                            # citations, etc 
    fhir:actual @<boolean>?;                # Actual or conceptual
    fhir:definition @<CodeableReference>?;  # Defines the variable with a 
                                            # concept and/or Reference 
    fhir:handling @<code> AND
    	{fhir:v @fhirvs:variable-handling}?;  # continuous | dichotomous | ordinal 
                                            # | polychotomous 
    fhir:category @<OneOrMore_EvidenceVariable.category>?;  # A grouping for ordinal or 
                                            # polychotomous variables 
    fhir:conditional @<Expression>?;        # Context in which the variable is 
                                            # observed 
    fhir:classifier @<OneOrMore_CodeableConcept>?;  # Classification
    fhir:dataStorage @<OneOrMore_EvidenceVariable.dataStorage>?;  # How and where the data element 
                                            # (value of the variable) is found 
    fhir:timing @<RelativeTime>?;           # When the variable is observed
    fhir:period @<Period>?;                 # Date(s) and time(s) when the 
                                            # variable is observed 
    fhir:constraint @<OneOrMore_EvidenceVariable.constraint>?;  # Limit on acceptability of data 
                                            # value 
    fhir:missingDataMeaning @<CodeableConcept>?;  # How missing data can be interpreted
    fhir:unacceptableDataHandling @<OneOrMore_CodeableConcept>?;  # How erroneous data is processed
}  

# How and where the data element (value of the variable) is found
<EvidenceVariable.dataStorage> EXTENDS @<BackboneElement> CLOSED {   
    fhir:datatype @<CodeableConcept>?;      # Type of data used to express value 
                                            # of the variable 
}  

# Limit on acceptability of data value
<EvidenceVariable.constraint> EXTENDS @<BackboneElement> CLOSED {   
    fhir:conditional @<CodeableConcept>?;   # When this constraint applies
    fhir:minimumQuantity @<Quantity>?;      # The lowest permissible value of 
                                            # the variable 
    fhir:maximumQuantity @<Quantity>?;      # The highest permissible value of 
                                            # the variable 
    fhir:earliestDateTime @<dateTime>?;     # The earliest permissible value of 
                                            # the variable 
    fhir:latestDateTime @<dateTime>?;       # The latest permissible value of 
                                            # the variable 
    fhir:minimumStringLength @<unsignedInt>?;  # The lowest number of characters 
                                            # allowed for a value of the 
                                            # variable 
    fhir:maximumStringLength @<positiveInt>?;  # The highest number of characters 
                                            # allowed for a value of the 
                                            # variable 
    fhir:code @<CodeableConcept>?;          # Rule for acceptable data values
    fhir:expression @<Expression>?;         # Rule for acceptable data values, 
                                            # as an Expression 
    fhir:expectedValueSet @<Reference> AND {fhir:link 
    			@<ValueSet> ? }?;  # List of anticipated values used to 
                                            # express value of the variable 
    fhir:expectedUnitsValueSet @<Reference> AND {fhir:link 
    			@<ValueSet> ? }?;  # List of anticipated values used to 
                                            # express units for the value of the 
                                            # variable 
    fhir:anyValueAllowed @<boolean>?;       # Permissibility of unanticipated 
                                            # value used to express value of the 
                                            # variable 
}  

# A grouping for ordinal or polychotomous variables
<EvidenceVariable.category> EXTENDS @<BackboneElement> CLOSED {   
    fhir:name @<string>?;                   # Description of the grouping
    fhir:value @<CodeableConcept>  OR 
    			@<Quantity>  OR 
    			@<Range>  OR 
    			(@<Reference>  AND {fhir:link @<Group> })  ?;  # Definition of the grouping
}  

#---------------------- Cardinality Types (OneOrMore) -------------------
<OneOrMore_Identifier> CLOSED {
    rdf:first @<Identifier>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> 
}
<OneOrMore_ContactDetail> CLOSED {
    rdf:first @<ContactDetail>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_ContactDetail> 
}
<OneOrMore_Annotation> CLOSED {
    rdf:first @<Annotation>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Annotation> 
}
<OneOrMore_UsageContext> CLOSED {
    rdf:first @<UsageContext>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_UsageContext> 
}
<OneOrMore_RelatedArtifact> CLOSED {
    rdf:first @<RelatedArtifact>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_RelatedArtifact> 
}
<OneOrMore_EvidenceVariable.category> CLOSED {
    rdf:first @<EvidenceVariable.category>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_EvidenceVariable.category> 
}
<OneOrMore_CodeableConcept> CLOSED {
    rdf:first @<CodeableConcept>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept> 
}
<OneOrMore_EvidenceVariable.dataStorage> CLOSED {
    rdf:first @<EvidenceVariable.dataStorage>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_EvidenceVariable.dataStorage> 
}
<OneOrMore_EvidenceVariable.constraint> CLOSED {
    rdf:first @<EvidenceVariable.constraint>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_EvidenceVariable.constraint> 
}

#---------------------- Value Sets ------------------------

# The lifecycle status of an artifact.
fhirvs:publication-status ["draft" "active" "retired" "unknown"]

# The handling of the variable in statistical analysis for exposures or outcomes (E.g. Dichotomous, Continuous, Descriptive).
fhirvs:variable-handling ["continuous" "dichotomous" "ordinal" "polychotomous"]


Usage note: every effort has been made to ensure that the ShEx files are correct and useful, but they are not a normative part of the specification.