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

Allow Extensions on Date Data Type #371

Closed
hannesUlrich opened this issue Apr 21, 2021 · 5 comments
Closed

Allow Extensions on Date Data Type #371

hannesUlrich opened this issue Apr 21, 2021 · 5 comments
Assignees
Labels
bug Something isn't working module:fhir-structure
Milestone

Comments

@hannesUlrich
Copy link

Patient.birthDate can be masked due to data privacy reasons. In this case the extension DataAbsentReason is used.

<birthDate>
     <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason">
          <valueCode value="masked"></valueCode>
    </extension>
</birthDate>

But the blaze rejects the Patient due to the following reason:

{
    "issue": [
        {
            "severity": "error",
            "code": "invariant",
            "diagnostics": "Error on value `null`. Expected type is `date`, regex `([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?`."
        }
    ],
    "resourceType": "OperationOutcome"
}

I think that should not be so...

@alexanderkiel alexanderkiel self-assigned this May 3, 2021
@alexanderkiel alexanderkiel added the bug Something isn't working label May 3, 2021
@alexanderkiel
Copy link
Member

Hi @hannesUlrich. You are right. Extensions on primitive types are currently not supported in Blaze. I'll have a look into it.

@hannesUlrich
Copy link
Author

Hi @alexanderkiel, how is the status on this issue?

@alexanderkiel alexanderkiel added this to the v0.13 milestone Sep 3, 2021
@alexanderkiel
Copy link
Member

No news on this, but I've put it on the v0.13 milestone.

@alexanderkiel alexanderkiel modified the milestones: v0.14, v0.15 Nov 30, 2021
@alexanderkiel alexanderkiel modified the milestones: v0.15, v0.16 Dec 14, 2021
@alexanderkiel alexanderkiel modified the milestones: v0.16, v0.17 Feb 18, 2022
@hannesUlrich
Copy link
Author

Hey @alexanderkiel, will this issue make it into the milestone? 😇

@alexanderkiel alexanderkiel modified the milestones: v0.17, v0.18 Apr 24, 2022
@alexanderkiel alexanderkiel changed the title Patient.birthDate does not accept DataAbsentReason extension Allow Extensions on Date Data Type May 17, 2022
alexanderkiel added a commit that referenced this issue May 23, 2022
@alexanderkiel alexanderkiel modified the milestones: v0.18, v0.17.5 May 23, 2022
@hannesUlrich
Copy link
Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module:fhir-structure
Projects
None yet
Development

No branches or pull requests

2 participants