FHIR Chat · Mapping inherited property · shorthand

Stream: shorthand

Topic: Mapping inherited property


view this post on Zulip Pétur Valdimarsson (Apr 20 2020 at 08:02):

Was testing some mappings out and got an error when trying to add mapping on a property inherited from Resource. Don't know if this is as expected, but here is my test profile:

Profile: MappingTestProfile
Parent: Patient
Id: test-resource

* id 0..1 MS
* text 0..1 MS

Mapping:    MappingTestMapping
Source:     MappingTestProfile
Target:     "test_target"
Title:      "Mapping test"
Id:         test-mapping

* name -> "Patient.name"
* text -> "DomainResource.text works"
* id -> "Resource.id fails"

And the error :

error Cannot read property 'push' of undefined
  File: /.../profiles/Test.fsh
  Line: 16

view this post on Zulip Nick Freiter (Apr 20 2020 at 11:56):

It looks like SUSHI is failing on the id element because it does not have a mapping field already defined on it, but the name and text fields already have some existing mapping. So this looks to be a bug, I added this issue https://github.com/FHIR/sushi/issues/372 to track it.


Last updated: Apr 12 2022 at 19:14 UTC