@ismailo the JSON payload you are posting with curl is wrong, its meant for posting while using the rest module as seen here
Have a look at this for posting Encounter fhir data