Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support cqf expressions during validation #377

Open
mmsmits opened this issue Oct 11, 2024 · 0 comments
Open

Support cqf expressions during validation #377

mmsmits opened this issue Oct 11, 2024 · 0 comments

Comments

@mmsmits
Copy link
Member

mmsmits commented Oct 11, 2024

US-core 5 contains a profile (http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library) which has an ElementDefinition like this:

      <path value="Demographics.dob"/>
      <label value="What is this person&#39;s date of birth?"/>
      <definition value="n/a"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Demographics.dob"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="date"/>
      </type>
      <minValueDate value="1900-01-01"/>
      <maxValueDate>
        <extension url="http://hl7.org/fhir/StructureDefinition/cqf-expression">
          <valueExpression>
            <language value="text/fhirpath"/>
            <expression value="now() as date + 1 day"/>
          </valueExpression>
        </extension>
      </maxValueDate>
    </element> 

I would be nice if we support the cqf extension for validation. This could be done in the schemabuilder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant