Creating notes in FHIR is actually pretty straightforward.

Essentially do a POST to DocumentReference with base64 (btoa) content

Try https://repl.it/@patientDev/docref-create