Custom resource future support #1558
Replies: 1 comment 8 replies
-
@FikriMilano I added the test below locally in DatabaseImplTest where I create a LocationHierarchy, save it, then read it from the DB and verify it matches the in-memory object I made and it passed:
I chose I also saved the files in the location directory to a directory in the SDK test path so they can be instantiated. I uploaded the work I did to a new branch here: https://github.com/omarismail94/android-fhir/blob/custom_resource/engine/src/androidTest/java/com/google/android/fhir/db/impl/DatabaseImplTest.kt#L101-L110 Can you either clone it to see if it works for you, or share with me an example of a LocationHierarchy that fails to get saved (I know my example was simple)? CC: @jingtang10 |
Beta Was this translation helpful? Give feedback.
-
Custom Resource is not created and showing no stacktrace/error.
I was trying to insert a custom resource called LocationHierarchy into the FHIR engine database. I know it's not supported yet and I expect to receive some stacktrace/error, but turns out nothing show up and the custom resource is not inserted as well.
https://github.com/opensrp/fhir-common-utils/blob/main/src/main/java/org/smartregister/model/location/LocationHierarchy.java
@omarismail94 this is what I found out.
Beta Was this translation helpful? Give feedback.
All reactions