Clear patient insurance entry

@adunsulag
I was trying to follow your build and add a feature to remove an insurance entry from a patient’s chart. The reason they want to clear the entry is because the patient has no insurance (self Pay). A staff person entered the data erroneously. It needs to be removed from the chart.

I can’t seem to get the button to work. I was just trying to get it to do anything. I copied your pattern but when I click the button. I can’t get the div to display the insurance removed successfully. I was trying to do that before building out the actual function. I noticed that you are using the API system to update the patient insurance information. There is no API to delete that I could see in SWAGGER.

Can you give me a little guidance? Why I can’t get the button to show the div?
Thanks!

I briefly looked it over, didn’t see any problems. I’ll have to pull it down when I get a chance to test it.

@adunsulag I opened the system where I had the code built. Everything is working as designed. Now I just need to connect the function to carry out the action to remove the insurance and refresh the page.

@adunsulag I have the whole feature working now. Just to get it working. I added a fetch call back to the server to run a script to remove the insurance from the table. A more elegant solution would be to build out an API for that.