FHIR / vscode-fsh

A Visual Studio Code language extension for FHIR Shorthand (FSH)
Apache License 2.0
18 stars 3 forks source link

Support autocomplete for Context keyword values #85

Open mint-thompson opened 4 months ago

mint-thompson commented 4 months ago

Transferred from internal JIRA issue originally created 2023-09-13.

Include autocomplete features when a Path is used after Context.

Below are examples of Context from the FSH Spec. You can use this FSH to see how things look/feel when working on this task if you’d like. There may be other cases not covered by that FSH.

Alias: $COMBINATION = http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination

Extension: MyExtension
Context: "(Condition | Observation).code"

Extension: MyExtension
Context: Patient.contact.telecom

Extension: MyExtension
Context: MyPatient.contact.telecom

Extension: MyExtension
Context: USCoreCarePlanProfile.category[AssessPlan].coding
Context: us-core-careplan.category[AssessPlan].coding
Context: http://hl7.org/fhir/us/core/StructureDefinition/us-core-careplan#category[AssessPlan].coding

Extension: MyExtension
Context: http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination
Context: CSSearchParameterCombination
Context: capabilitystatement-search-parameter-combination

Extension: MyExtension
Context: CSSearchParameterCombination.extension[required]
Context: capabilitystatement-search-parameter-combination.extension[required]

Extension: MyExtension
Context: http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination#extension[required]

Extension: MyExtension
Context: $COMBINATION#extension[required], $COMBINATION#extension[optional], "(Condition | Observation).code"