nhsconnect / FHIR-NRLS-API

NRLS API
6 stars 2 forks source link

General issue for feedback from DDC on 15/12 #24

Closed wweatherill-answer closed 6 years ago

wweatherill-answer commented 6 years ago
wilkinsm commented 6 years ago

Should the created date be used and treated as a date range, i.e. allow the inclusion of multiple (possibly limited to 2) 'created' parameters, which define lower and upper boundaries?

Or should it be an exact match, within a date's implicit range?

My assumption here is the former.

swk003 commented 6 years ago

Not sure I fully understand the Q. Are you suggesting that we extend the profile to support pointer date ranges? My understanding is that at the v least the DDC expect us to mimic the POC date range search param capability in the current API. So I would have thought (for now) we just need to include example searches with simple date range params (using prefixes) encoded in the URL.

wilkinsm commented 6 years ago

No suggestion of profile changes. Just looking for clarification on what should be allowed when a consumer/provider includes the created date as a search parameter.

I've now been through and looked at the Draft spec as I was not familiar with it. This has the created date range examples as you mentioned that needs to be replicated here. I can just follow these examples.

swk003 commented 6 years ago

ok with you. Lets go with that for now.

wilkinsm commented 6 years ago

With regards to the 'Type' comment:

When the Type element is missing I would expect and error of INVALID_RESOURCE.

When the Type exists but is 'invalid', given that it is a 'preferred' codeableconcept I would expect either INVALID_CODE_SYSTEM or INVALID_CODE_VALUE, or possibly INVALID_VALUE.

These assumptions need verifying.

swk003 commented 6 years ago

From conformance perspective we should ideally make the binding 'required'. This needs wider consensus which we haven't had to date.

wilkinsm commented 6 years ago

Discussions with Will has highlighted that the current binding and codes may not be adequately defined for this purpose. The codeable concept needs to be one of http://snomed.info/sct but within that we need to ensure we define an adequate subset.

The data model page will also require updates to reflect the decisions taken.

The assumptions around 'Type' errors mentioned above now stands, bar the mention of INVALID_VALUE.

wilkinsm commented 6 years ago

With regards to paging - it has been suggested that in the future the '_sort' parameter could of use. For now though it's inclusion may result in additional complexity we cannot afford in this release version.

swk003 commented 6 years ago

The DocRef Type element (CodeableConcept) binding has been a known issue from the outset. Type currently binds to Care Plan Type subset (SNOMED) with specified example value: 'Mental health care plan (record artifact)'. We are waiting for the requirements to catch up with the spec before we can tighten this up.

wilkinsm commented 6 years ago

This ticket now only relates to e-tag, type, and paging as described above. Changes of which have now been reviewed and we can close this ticket.