Last active
June 26, 2024 03:14
-
-
Save erangaeb/1d5b1d67a901d6ffba5fa6c426706493 to your computer and use it in GitHub Desktop.
w-528 nft schema to represent medicine recipe
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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"title": "Medical Recipe NFT", | |
"type": "object", | |
"properties": { | |
"tokenId": { | |
"type": "string", | |
"description": "Unique identifier for the NFT" | |
}, | |
"recipeName": { | |
"type": "string", | |
"description": "Name of the medical recipe" | |
}, | |
"ingredients": { | |
"type": "array", | |
"description": "List of ingredients with quantities", | |
"items": { | |
"type": "object", | |
"properties": { | |
"ingredientName": { | |
"type": "string", | |
"description": "Name of the ingredient" | |
}, | |
"quantity": { | |
"type": "string", | |
"description": "Quantity of the ingredient" | |
} | |
}, | |
"required": ["ingredientName", "quantity"] | |
} | |
}, | |
"preparationInstructions": { | |
"type": "string", | |
"description": "Step-by-step instructions to prepare the medicine" | |
}, | |
"intendedUse": { | |
"type": "string", | |
"description": "Intended use or treatment purpose of the medicine" | |
}, | |
"practitionerInfo": { | |
"type": "object", | |
"description": "Details of the medical practitioner who formulated the recipe", | |
"properties": { | |
"practitionerName": { | |
"type": "string", | |
"description": "Name of the practitioner" | |
}, | |
"licenseNumber": { | |
"type": "string", | |
"description": "License number of the practitioner" | |
}, | |
"contactInfo": { | |
"type": "string", | |
"description": "Contact information for the practitioner" | |
} | |
}, | |
"required": ["practitionerName", "licenseNumber"] | |
}, | |
"createdAt": { | |
"type": "string", | |
"format": "date-time", | |
"description": "The date and time when the NFT was created" | |
}, | |
}, | |
"required": ["tokenId", "recipeName", "ingredients", "preparationInstructions", "intendedUse", "practitionerInfo", "createdAt"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment