Release 5 FHIR CI-Build

This page is part of the Continuous Integration Build of FHIR Specification (v5.0.0: R5 - STU ). This is the current published version in it's permanent home (it will always (will be available incorrect/inconsistent at this URL). For a full list of available versions, see times).
See the Directory of published versions . Page versions: R5 R4B R4 R3

Condition.shex

Maturity Level : N/A
Responsible Owner: Patient Care Work Group Standards Status : Informative Compartments : Encounter , Group , Patient , Practitioner , RelatedPerson

Raw ShEx

ShEx statement for condition

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#> 
# ShEx Version 2.2

IMPORT <Age.shex>
IMPORT <Group.shex>
IMPORT <Range.shex>
IMPORT <Period.shex>
IMPORT <string.shex>

IMPORT <String.shex>

IMPORT <Device.shex>
IMPORT <Patient.shex>
IMPORT <dateTime.shex>
IMPORT <CareTeam.shex>

IMPORT <DateTime.shex>

IMPORT <Reference.shex>
IMPORT <Encounter.shex>
IMPORT <Identifier.shex>
IMPORT <Annotation.shex>
IMPORT <Observation.shex>
IMPORT <Organization.shex>

IMPORT <Practitioner.shex>
IMPORT <BodyStructure.shex>

IMPORT <RelatedPerson.shex>
IMPORT <DomainResource.shex>
IMPORT <CodeableConcept.shex>
IMPORT <BackboneElement.shex>
IMPORT <PractitionerRole.shex>
IMPORT <DiagnosticReport.shex>
IMPORT <CodeableReference.shex>
IMPORT <ClinicalImpression.shex>

IMPORT <ClinicalAssessment.shex>

start=@<Condition> AND {fhir:nodeRole [fhir:treeRoot]}
# Detailed information about conditions, problems or diagnoses
<Condition> EXTENDS @<DomainResource> CLOSED {   
    a [fhir:Condition]?;
    fhir:nodeRole [fhir:treeRoot]?;

    a [fhir:Condition]?;fhir:nodeRole [fhir:treeRoot]?;

    fhir:identifier @<OneOrMore_Identifier>?;  # External Ids for this condition
    fhir:clinicalStatus @<CodeableConcept>;  # active | recurrence | relapse | 
                                            # inactive | remission | resolved | 
                                            # unknown 
    fhir:verificationStatus @<CodeableConcept>?;  # unconfirmed | provisional | 
                                            # differential | confirmed | refuted 
                                            # | entered-in-error 
    fhir:category @<OneOrMore_CodeableConcept>?;  # problem-list-item | 
                                            # encounter-diagnosis 
    fhir:severity @<CodeableConcept>?;      # Subjective severity of condition
    fhir:code @<CodeableConcept>?;          # Identification of the condition, 
                                            # problem or diagnosis 
    fhir:bodySite @<OneOrMore_CodeableConcept>?;  # Anatomical location, if relevant
    fhir:subject @<Reference> AND {fhir:link 

    fhir:bodyStructure @<Reference> AND {fhir:l 
    			@<BodyStructure> ? }?;  # Anatomical body structure
    fhir:subject @<Reference> AND {fhir:l 

    			@<Group> OR 
    			@<Patient> ? };  # Who has the condition?
    fhir:encounter @<Reference> AND {fhir:link 

    fhir:encounter @<Reference> AND {fhir:l 

    			@<Encounter> ? }?;  # The Encounter during which this 
                                            # Condition was created 
    fhir:onset @<dateTime>  OR 

    fhir:onset @<DateTime>  OR 

    			@<Age>  OR 
    			@<Period>  OR 
    			@<Range>  OR 
    			@<string>  ?;  # Estimated or actual date,  

    			@<String>  ?;  # Estimated or actual date,  

                                            # date-time, or age 
    fhir:abatement @<dateTime>  OR 

    fhir:abatement @<DateTime>  OR 

    			@<Age>  OR 
    			@<Period>  OR 
    			@<Range>  OR 
    			@<string>  ?;  # When in resolution/remission
    fhir:recordedDate @<dateTime>?;         # Date condition was first recorded
    fhir:participant @<OneOrMore_Condition.participant>?;  # Who or what participated in the 
                                            # activities related to the 
                                            # condition and how they were 
                                            # involved 

    			@<String>  ?;  # When in resolution/remission
    fhir:recordedDate @<DateTime>?;         # Date condition was first recorded
    fhir:recorder @<Reference> AND {fhir:l 
    			@<Group> OR 
    			@<Patient> OR 
    			@<Practitioner> OR 
    			@<PractitionerRole> OR 
    			@<RelatedPerson> ? }?;  # Who recorded the condition
    fhir:asserter @<Reference> AND {fhir:l 
    			@<Device> OR 
    			@<Group> OR 
    			@<Patient> OR 
    			@<Practitioner> OR 
    			@<PractitionerRole> OR 
    			@<RelatedPerson> ? }?;  # Person or device that asserts this 
                                            # condition 

    fhir:stage @<OneOrMore_Condition.stage>?;  # Stage/grade, usually assessed 
                                            # formally 
    fhir:evidence @<OneOrMore_CodeableReference>?;  # Supporting evidence for the 
                                            # verification status 

                                            # condition 

    fhir:note @<OneOrMore_Annotation>?;     # Additional information about the 
                                            # Condition 
}  
# Stage/grade, usually assessed formally
<Condition.stage> EXTENDS @<BackboneElement> CLOSED {   
    fhir:summary @<CodeableConcept>?;       # Simple summary (disease specific)
    fhir:assessment @<OneOrMore_Reference_ClinicalImpression_OR_DiagnosticReport_OR_Observation>?;  # Formal record of assessment

    fhir:assessment @<OneOrMore_Reference_ClinicalAssessment_OR_DiagnosticReport_OR_Observation>?;  # Formal record of assessment

    fhir:type @<CodeableConcept>?;          # Kind of staging
}  
# Who or what participated in the activities related to the condition and how they were involved
<Condition.participant> EXTENDS @<BackboneElement> CLOSED {   
    fhir:function @<CodeableConcept>?;      # Type of involvement
    fhir:actor @<Reference> AND {fhir:link 
    			@<CareTeam> OR 
    			@<Device> OR 
    			@<Organization> OR 
    			@<Patient> OR 
    			@<Practitioner> OR 
    			@<PractitionerRole> OR 
    			@<RelatedPerson> ? };  # Who or what participated in the 
                                            # activities related to the 
                                            # condition 
}  

#---------------------- Cardinality Types (OneOrMore) -------------------
<OneOrMore_Identifier> CLOSED {
    rdf:first @<Identifier>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> 
}
<OneOrMore_CodeableConcept> CLOSED {
    rdf:first @<CodeableConcept>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept> 
}
<OneOrMore_Condition.participant> CLOSED {
    rdf:first @<Condition.participant>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Condition.participant> 
}

<OneOrMore_Condition.stage> CLOSED {
    rdf:first @<Condition.stage>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Condition.stage> 
}
<OneOrMore_CodeableReference> CLOSED {
    rdf:first @<CodeableReference>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_CodeableReference> 
}
<OneOrMore_Annotation> CLOSED {
    rdf:first @<Annotation>  ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Annotation> 
}
<OneOrMore_Reference_ClinicalImpression_OR_DiagnosticReport_OR_Observation> CLOSED {
    rdf:first @<Reference> AND {fhir:link 
			@<ClinicalImpression> OR 

<OneOrMore_Reference_ClinicalAssessment_OR_DiagnosticReport_OR_Observation> CLOSED {
    rdf:first @<Reference> AND {fhir:l 
			@<ClinicalAssessment> OR 

			@<DiagnosticReport> OR 
			@<Observation> } ;
    rdf:rest [rdf:nil] OR @<OneOrMore_Reference_ClinicalImpression_OR_DiagnosticReport_OR_Observation> 

    rdf:rest [rdf:nil] OR @<OneOrMore_Reference_ClinicalAssessment_OR_DiagnosticReport_OR_Observation> 

}

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.