Stream: IG creation
Topic: Smart validation Error
Eric Haas (Mar 30 2021 at 22:32):
@Grahame Grieve we need some help on this error:
QA error on smart example CapabilityStatement issues to resolve:
Summary the url for the extension lives in both the Smart guide and the FHIR spec so...
this snippet from the CapabilityStatement :
security:
extension:
- extension:
- url: token
valueUri: 'https://my-server.org/token'
- url: authorize
valueUri: 'https://my-server.org/authorize'
- url: manage
valueUri: 'https://my-server.org/authorizations/manage'
- url: introspect
valueUri: 'https://my-server.org/authorizations/introspect'
- url: revoke
valueUri: 'https://my-server.org/authorizations/revoke'
url: >-
http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris
leads to the following validator error because the validator is using the SD from the core spec here : http://hl7.org/fhir/extension-oauth-uris.html instead of the updated definition from the IG:
- CapabilityStatement/smart-app-launch-example: CapabilityStatement.rest[0].security.extension[0].extension[3] Slicing Information This element does not match any known slice defined in the profile http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris Hide Reasoning
This element does not match any known slicedefined_in_the_profilehttp://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris
- CapabilityStatement.rest[0].security.extension[0].extension[3]: discriminator = true and ('authorize' in url)
- CapabilityStatement.rest[0].security.extension[0].extension[3]: discriminator = true and ('token' in url)
- CapabilityStatement.rest[0].security.extension[0].extension[3]: discriminator = true and ('register' in url)
- CapabilityStatement.rest[0].security.extension[0].extension[3]: discriminator = true and ('manage' in url)
- CapabilityStatement/smart-app-launch-example: > CapabilityStatement.rest[0].security.extension[0].extension[3][url='introspect'] error Sub-extension url 'introspect' is not defined by the Extension http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris
- CapabilityStatement/smart-app-launch-example: > > CapabilityStatement.rest[0].security.extension[0].extension[4][url='revoke'] error Sub-extension url 'revoke' is not defined by the Extension http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-URIs
What I did
As a temporary fix I appended the version which seems to redirect the validator to look in the IG package , but then get the following error (since the element is type uri not canonical):
- CapabilityStatement/smart-app-launch-example: CapabilityStatement.rest[0].security.extension[0].url error Value is 'http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris|2.0.0' but must be 'http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris'
Eric Haas (Mar 30 2021 at 22:36):
I think this is related to the renaming the package for the SMART ig that @Josh Mandel mentioned before here: https://chat.fhir.org/#narrow/stream/179252-IG-creation/topic/SMART.20and.20.22uv.22
Eric Haas (Apr 01 2021 at 17:16):
(deleted)
Eric Haas (Apr 01 2021 at 18:02):
@Grahame Grieve NM is resolved !
Last updated: Apr 12 2022 at 19:14 UTC