Stream: shorthand
Topic: use identifier
Jose Costa Teixeira (Mar 30 2020 at 09:15):
Hi. I must be missing something obvious - what is wrong in this example instance?
Instance: Pascale InstanceOf: Patient * identifier.system = "https://www.ehealth.fgov.be/standards/fhir/NamingSystem/ssin" * identifier.value = "81.09.17-152.35" * name.given = "Pascale" * name.family = "Patient" * birthDate = "1940-02-20" * gender = #female
Jose Costa Teixeira (Mar 30 2020 at 09:16):
I get this:
error extraneous input '* identifier.system = "https://www.ehealth.fgov.be/standards/fhir/NamingSystem/ssin"' expecting {<EOF>, KW_ALIAS, KW_PROFILE, KW_EXTENSION, KW_INSTANCE, KW_INVARIANT, KW_VALUESET, KW_CODESYSTEM, KW_RULESET, KW_MAPPING}
Jose Costa Teixeira (Mar 30 2020 at 11:04):
Yep, something obvious. I think I had a few tabs there instead of spaces. Nevermind (leaving it here in case someone else repeats my silly mistake)
Chris Moesel (Mar 30 2020 at 12:23):
Hi @Jose Costa Teixeira. I just put this in a FSH file and ran SUSHI -- and it worked fine. Maybe there is an issue in the FSH above this, but the parser isn't getting tripped up until this spot?
Jose Costa Teixeira (Mar 30 2020 at 12:23):
Yes, sorry. I had a few tabs or some other characters instead of apaces
Jose Costa Teixeira (Mar 30 2020 at 12:26):
It was my fault. OTOH, would it be a good enhancement for sushi to parse all white space characters as a space?
Chris Moesel (Mar 30 2020 at 12:36):
The intent is for it to parse all whitespace characters as space. I'll have to take a look at the grammar to see if we're missing tab or something.
Chris Moesel (Mar 30 2020 at 12:37):
This is our definition of whitespace: fragment WS: [ \t\r\n\f];
Do you notice any obviously missing characters you might have had in there?
Jose Costa Teixeira (Mar 30 2020 at 12:45):
Actually no. Let me try to see what are the characters I had initially
Jose Costa Teixeira (Mar 30 2020 at 12:48):
ah i had one of these
https://en.wikipedia.org/wiki/Non-breaking_space
Jose Costa Teixeira (Mar 30 2020 at 12:48):
C2 A0
Chris Moesel (Mar 30 2020 at 13:15):
Thanks, @Jose Costa Teixeira. I've filed a bug on SUSHI so that we can address it. https://github.com/FHIR/sushi/issues/315
Jose Costa Teixeira (Mar 30 2020 at 13:55):
Awesome, thanks
Last updated: Apr 12 2022 at 19:14 UTC