Skip to content

Not possible to add FHIR JSON to XDM #219

@huthomas

Description

@huthomas

In org.projecthusky.common.enums.DocumentDescriptor there is an FHIR_JSON enum defined. But after adding such a document to the XDM, on creation org.projecthusky.common.enums.DocumentDescriptor#getDocumentDescriptorForMimeType is called. In that method the FHIR_JSON is not returned for its mimetype and UNKNOWN is returned.

That leads to the following exception.

java.lang.NullPointerException: Cannot invoke "String.toUpperCase()" because "fileNameExtension" is null
	at org.projecthusky.communication.utils.XdsUtil.createXdmDocName(XdsUtil.java:75)
	at org.projecthusky.communication.xd.xdm.IndexHtm.createContents(IndexHtm.java:158)
	at org.projecthusky.communication.xd.xdm.IndexHtm.(IndexHtm.java:124)
	at org.projecthusky.communication.xd.xdm.IndexHtm.(IndexHtm.java:105)
	at org.projecthusky.communication.ConvenienceCommunication.createXdmContents(ConvenienceCommunication.java:448)

FHIR_JSON should be added to the org.projecthusky.common.enums.DocumentDescriptor#getDocumentDescriptorForMimeType method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions