Skip to content

Instantly share code, notes, and snippets.

@LindaLawton
Created September 15, 2023 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LindaLawton/ba72bc6d32b14328a2b56d79dc71ce85 to your computer and use it in GitHub Desktop.
Save LindaLawton/ba72bc6d32b14328a2b56d79dc71ce85 to your computer and use it in GitHub Desktop.
Prompt for transforming data from two json objects Goes along with this video https://www.youtube.com/watch?v=EnyFxrE45WA
I am going to give you a source JSon object and a destination JSon object. I want you to transform the data in source object to the format of the destination JSon object. The birth date format is mm-dd-YYYY.
This is the source object '{source}'
This is the destination object '{destination}' The date format for the destination object is YYYY-mm-dd. Given is an array of given names.
Please return the destination object with the values given in the source object.
{ "name": [{"use": "official", "family": "Smith", "given": ["Darcy"]}], "gender": "female", "": "1970-01-01", "resourceType": "Patient", }
{ "name": "John Peter Mark Smith", "birthDate": "31-12-1970"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment