FHIR Chat · DataRequirement searchParameter example? · implementers

Stream: implementers

Topic: DataRequirement searchParameter example?


view this post on Zulip Yunwei Wang (Oct 01 2020 at 19:34):

I cannot find any example using DataRequirement.codeFilter.searchParameter. All current examples I can find are using DataRequirement.codeFilter.path.
I assume the format would be

"codeFilter": {
  "searchParameter": "status=confirmed"
}

Can someone confirm this is correct?

view this post on Zulip Lloyd McKenzie (Oct 01 2020 at 20:44):

@Bryn Rhodes

view this post on Zulip Bryn Rhodes (Oct 01 2020 at 21:31):

The searchParameter element is the name of the search parameter to be used for the code filter, the value is specified using the code element:

"codeFIlter": {
  "searchParameter": "status",
  "code": [{ "code": "confirmed" }]
}

view this post on Zulip Yunwei Wang (Oct 09 2020 at 16:03):

@Bryn Rhodes If I have more than one data requirement in Library.dataRequirement, do they form a logical AND or logical OR. For instance, I would like to say that Observation.code in either valueset A or valueset B, is this correct

"dataRequirement": [
  {
    "type": "Observation",
    "codeFilter": [
      {
        "path": "code",
        "valueSet": "valueset-A"
      }
    ]
  },
  {
    "type": "Observation",
    "codeFilter": [
      {
        "path": "code",
        "valueSet": "valueset-B"
      }
    ]
  }
]

view this post on Zulip Bryn Rhodes (Oct 10 2020 at 19:06):

Hi @Yunwei Wang , yes, data requirements are interpreted as OR at the top level.


Last updated: Apr 12 2022 at 19:14 UTC