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

Update generateCapabilityStatement permit FHIR v4 formatting #343

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ let generateCapabilityStatement = ({
let deprecatedLogger = deprecate(
container.get('default'),
'Using the logger this way is deprecated. Please see the documentation on ' +
'BREAKING CHANGES in version 2.0.0 for instructions on how to upgrade.'
'BREAKING CHANGES in version 2.0.0 for instructions on how to upgrade.'
);

// Get the necessary functions to generate statements
Expand All @@ -78,13 +78,14 @@ let generateCapabilityStatement = ({
const opsInProfile = profiles[profile_name].operation;
if (opsInProfile && opsInProfile.length) {
opsInProfile.forEach((opInProfile) => {
const op = {
const op = opInProfile.definition ? opInProfile : {
name: opInProfile.name,
definition: {
definition: opInProfile.definition ? opInprofile.definition : ({
reference: opInProfile.reference
? opInProfile.reference
: `/OperationOutcome/${opInProfile.name}`,
},

}),
};
ops.push(op);
});
Expand Down