Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To migrate a JavaScript app which is currently working with an HSPC an logicahealth DSTU implementation:

  1. If the app is using SMART on FHIR's fhir-client.js, replace it with the latest (DSTU2) fhir-client.js: https://github.com/smart-on-fhir/client-js/blob/master/dist/fhir-client.js
    The fhir-client.js will handle the changes which have be made to the conformance statement structure and the launch sequence for you.
  2. Change the FHIR service endpoint to the HSPC the logicahealth DSUT2 sandbox: https://api-v5-dstu2.hspconsortiumlogicahealth.org/hspc5/data/metadata
  3. Some FHIR Resource definitions have changes in DSTU2. You will need to make any needed changes to your queries and usage of FHIR Resources. The DSTU2 specification for the FHIR Resources can be found here: http://hl7.org/fhir/DSTU2/resourcelist.html
  4. The (DSTU2) fhir-client.js has changed in the way you search and retrieve results for FHIR Resource.

    Code Block
    languagejava
    titleSearch Example
            $.when(smart.patient.api.search({type: "Observation", query: {code: 'http://loinc.org|58941-6'}, count: 50}))
                .done(function(obsSearchResult){
                    var observations = [];
                    if (obsSearchResult.data.entry) {
                        obsSearchResult.data.entry.forEach(function(obs){
                            observations.push(obs.resource);
                        });
                    }
    				...
                });


...

The latest version of the FHIR DSTU2 specification can be found searching the directory of releases at: http://www.hl7.org/fhir/indexdirectory.html. The changes most likely to impact an existing app would be any changes to a specific FHIR Resource that an app is using. Refer to http://www.hl7.org/fhir/resourcelist.html for the directory above, then find latest dstu2 and go to resources for FHIR Resource changes. If your app loads its own data into the sandbox using FHIR transactions, the transaction specification has several changes. Refer to http://www.hl7.org/fhir/DSTU2/http.html#transaction for transaction changes.

...

The structure of the Conformance Statement's automated discovery of OAuth2 endpoints has changed. If you are using the latest (DSTU2) fhir-client.js, the client will handle this and you will not need to modify your app further. Refer to: http://fhir-docs.smarthealthit.org/argonaut-dev/authorization/conformance-statement/

New Launch Sequence

The launch sequence has changed. If you are using the latest (DSTU2) fhir-client.js, the client will handle this and you will not need to modify your app further. Refer to: http://docs.smarthealthit.org/authorization/

...