Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to add FHIR JSON to XDM #219

Open
huthomas opened this issue Jan 14, 2025 · 0 comments
Open

Not possible to add FHIR JSON to XDM #219

huthomas opened this issue Jan 14, 2025 · 0 comments

Comments

@huthomas
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant