Created
September 15, 2023 15:10
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "name": [{"use": "official", "family": "Smith", "given": ["Darcy"]}], "gender": "female", "": "1970-01-01", "resourceType": "Patient", } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "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