Standard coding system URIs fixes

Breaking change

Various standard conding system URIs where incorrect or missing, they are now fixed:

System Old system URI New system URI
HCPCS http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets https://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets
Ub04PointOfOriginNewBorn https://www.nubc.org/CodeSystem/PointOfOrigin-NewBorn https://www.nubc.org/CodeSystem/PointOfOriginNewBorn
UBFacilityType N/A https://rosetta.careevolution.com/UBFacilityType
CDT N/A http://www.ada.org/cdt
UNII N/A http://fdasis.nlm.nih.gov

(H/5ec05d8e)

Check references when POSTing data

When validating ($validate operation) and POSTing / PUTing resources the system check also that there are no conflicting references - e.g. a Procedure referencing a Patient and an Encounter that references a different Patient.

Breaking change: FHIR POST / PUT that previously were OK (and generated conflicting references in CareEvolutionData) are now rejected.

(H/ab0b619e)

R4 Observation resource now includes data from the DeviceDataContext and DeviceDataPoints CareEvolution concepts

Previously such data - typically coming from wearable dvices like FitBit - was not visible via FHIR at all.

(H/f217f7d5)

Fix in R4 Condition.category

Breaking change

The R4 Condition.category coding system for health-concern is now (correctly) http://hl7.org/fhir/us/core/CodeSystem/condition-category instead of http://terminology.hl7.org/CodeSystem/condition-category.
See the US Core Condiiton category value set.

Also, added the 16100001 SNOMED code (Death diagnosis) to the possible category codes, in addition to problem-list-item, encounter-diagnosis and health-concern.

(H/4d617edb)

Remove the internal 'FhirCodesXXXXX' codings from CodeableConcepts

Previously CodeableConcepts (especially those in the http://careevolution.com/fhirextensions#term extension of Code elements) could contain one or more codings with systems like [Site URI]/codes/FhirCodes. . . ., e.g.:

        "gender": "female",
        "_gender": {
            "id": "gender1",
            "extension": [
                {
                    "url": "http://careevolution.com/fhirextensions#term",
                    "valueCodeableConcept": {
                        "id": "gender2",
                        "coding": [
                            {
                                "system": "http://fhir.carevolution.com/codes/FhirCodes/Gender",
                                "code": "female",
                                "display": "Female",
                                "userSelected": true
                            },
                            {
                                "system": "http://fhir.carevolution.com/codes/CareEvolution/Gender",
                                "code": "F",
                                "display": "Female",
                                "userSelected": false
                            },
                            {
                                "system": "http://fhir.carevolution.com/codes/FhirCodesAlternate1/Gender",
                                "code": "F",
                                "display": "F",
                                "userSelected": false
                            },
                            {
                                "system": "http://fhir.carevolution.com/codes/HL7Gender/Reference",
                                "code": "F",
                                "display": "Female",
                                "userSelected": false
                            }
                        ]
                    }
                }
            ]
        },

These codings are an artifact of the internal logic used to map to standard FHIR codes, and have now been removed from the output, e.g.:

        "gender": "female",
        "_gender": {
            "id": "gender1",
            "extension": [
                {
                    "url": "http://careevolution.com/fhirextensions#term",
                    "valueCodeableConcept": {
                        "id": "gender2",
                        "coding": [
                            {
                                "system": "http://fhir.carevolution.com/codes/CareEvolution/Gender",
                                "code": "F",
                                "display": "Female",
                                "userSelected": false
                            },
                            {
                                "system": "http://fhir.carevolution.com/codes/HL7Gender/Reference",
                                "code": "F",
                                "display": "Female",
                                "userSelected": false
                            }
                        ]
                    }
                }
            ]
        },

There is no loss of information because the actual standard FHIR code is available in either the code elements itself (for code elements with a http://careevolution.com/fhirextensions#term extension) or in a coding with a standard FHIR system URI (for CodeableConcept elements).

(H/6dfab04c)

No longer populate the CodeableConcept text element from existing codings.

Breaking change

The text element is populated only when there is an actual separate text in the source data, to better align with the FHIR specifications.
See the documentation on how to use text and display elements.

(H/e56568a6, H/1ad2da96)