-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Context:
FHIR resources have mixed namespaces:
- outer resource 'fhir'
- narratives - which should be edited - 'tei'.
<Composition xmlns="http://hl7.org/fhir">
...
<text xmlns="http://www.tei-c.org/ns/1.0">
...
<div>
<p>a snippet to be edited</p>
</div>
...
</text>
...
</Composition>
The text narrative is quite complicated so I would like to present the user not the whole document but smaller snippets (div).
A setup with jinn-codemirror works fine but I have to hide the complexity of TEI structure for a nicer user experience.
Problems:
- interfaces of jinn-codemirror (as='node') and jinn-tap (as='xml') are different.
jinn-codemirror accepts a node: instance()//:tei/:div. This does not work with jinn-tap. - perhaps in correlation of the first, jinn-tap insists on a body element as a wrapper (//:body/:div).
With a sole 'div' nothing is displayed . The complete TEI and header structure seems not needed but the body element.
I have looked into the code of fx-control and also into schema.json of jinn-tap but I have no idea.
<div>
<!-- works
<fx-control ref="." as="node" update-event="leave">
<jinn-codemirror mode="xml" class="widget"/>
</fx-control>
-->
<!-- works with the complete example.xml file from the Fore demo -->
<div class="jinn-tap-container">
<fx-control ref="instance('example')" as="xml" value-prop="xml" update-event="content-change" listen-on="jinn-tap">
<jinn-tap class="widget" sidebar=".sidebar"/>
</fx-control>
<div class="sidebar"/>
</div>
</div>
Metadata
Metadata
Assignees
Labels
No labels