Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

feat: add docref to capability statement #85

Merged
merged 2 commits into from
May 20, 2021

Conversation

carvantes
Copy link
Contributor

Add the operations registered in OperationDefinitionRegistry to the capability statement

I chose to add a documentation field on the implementation of the operation instead of just copying the documentation from the OperationDefinition from the IG since docs for operations are sometimes vague and it is expected that servers document the particularities of their implementation. e.g. our docref documents that it does not generate documents on demand.

The fragment of the cap statement for docref looks like this:

{
  "type": "DocumentReference",
  ...
  "supportedProfile": [
    "http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference"
  ],
  "operation": [
    {
      "name": "docref",
      "definition": "http://hl7.org/fhir/us/core/OperationDefinition/docref",
      "documentation": "This operation is used to return all the references to documents related to a patient..."
    }
  ]
}

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@carvantes carvantes requested a review from Bingjiling May 14, 2021 18:13
Copy link
Contributor

@Bingjiling Bingjiling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Base automatically changed from dev-enable-docref to feat-docref May 20, 2021 09:26
@carvantes carvantes merged commit 665ee4a into feat-docref May 20, 2021
@carvantes carvantes deleted the dev-docref-cap-statement branch May 20, 2021 10:20
carvantes added a commit that referenced this pull request May 21, 2021
* feat: add US Core $docref implementation (#78)
* feat: enable $docref based on the compiled IGs (#83)
* feat: add docref to capability statement (#85)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants