Facts
The appellant, [A.] , domiciled in Switzerland, is insured with SWICA Assurance-maladie SA (hereinafter: SWICA) for compulsory health care insurance. She gave birth on 22 December 2012 at the Centre Hospitalier [C.] in France. The insurer had previously informed her, by letter of 2 November 2012, to what extent it would cover the costs of the birth under compulsory insurance.
SWICA reimbursed 6'153 fr. 55 out of a total amount of 33'367 fr. (statement of 12 June 2013), then refused to award further benefits and to cover the child's second stay at the same centre (decision of 18 September 2013, confirmed on objection on 20 December 2013).
Seized with an appeal by the insured and her daughter, the Social Insurance Chamber of the Court of Justice of the Republic and Canton of Geneva, by judgment of 19 January 2015, held that the insurer had to cover, in addition to the amount already reimbursed, invoices of 17'290 fr. 85 and 3'495 euros. The Federal Supreme Court partially upheld the insured's appeal, dismissed the insurer's appeal and remitted the case to the cantonal authority for further investigation (judgment 9C_144/2015 and 9C_152/2015 of 17 July 2015).
After further investigation, the cantonal court dismissed the appeal for the balance of 6'720 euros claimed from SWICA, on the ground that the insured had not established that the estimate from the Centre [C.] had been transmitted to the insurer, and therefore that the insurer had not breached its duty to advise (judgment of 23 May 2016).
By way of a public law appeal, the insured principally requests that the insurer be ordered to reimburse the balance of the birth costs, namely 8'064 fr. with interest at 5% per annum from 1 January 2015, and in the alternative that the case be remitted to the previous authority. She complains in particular of a violation of her right to be heard: in her view, the cantonal court wrongly held that the parties had not filed observations after the hearings of 4 April 2016, whereas a time limit ran until 18 April 2016 and she had submitted her observations within that time limit, invoking the insurer's breach of its duty to preserve decisive documents (art. 46 GSSLA), in particular the emails and records of telephone conversations.
SWICA requests that the appeal be dismissed. The Federal Social Insurance Office has waived its right to submit observations.
Considerations
The formal complaint of violation of the right to be heard (art. 29 para. 2 Cst.) must be examined first, since its admission would lead to annulment of the contested judgment regardless of the prospects of the appeal on the merits (ATF 127 V 431 consid. 3d/aa).
The right to be heard includes the right to express oneself on relevant matters before a decision affecting the legal situation of the person concerned is rendered (ATF 141 V 557 consid. 3.1), as well as the duty to give reasons for the decision. It suffices that the judge briefly indicates the grounds that guided the decision; the judge does not have to discuss all the arguments raised and may confine itself to those it considers relevant (ATF 138 IV 81 consid. 2.2).
In this case, the insured had submitted her observations after the hearings of 4 April 2016 and had criticised the insurer's constitution of the file as well as the failure to preserve documents, invoking the violation of art. 46 GSSLA. The cantonal authority was…