Skip to content

Conversation

@agaldemas
Copy link
Contributor

what has been done:

  • examples are generated after schema with the same python program "exract2ngsi.py"
  • I added some missing examples for some resources got from hl7.org

remains to do:

  • add jsonld examples
  • add normalized examples

@agaldemas
Copy link
Contributor Author

it remains to enhanced examples generation,
Need to catch basic type properties definition before getting "string" type (for properties definitions like "instant", "dateTime", "date"....,
if not "semantically" identifiable through the property name, generate a value according to "pattern" property if present

@agaldemas
Copy link
Contributor Author

Hello @albertoabellagarcia, all needed examples files are now generated with the program extract2ngsi.py

have a look

@agaldemas
Copy link
Contributor Author

fix to do in schema generation for description
"implicitRules": {
"value": "Property. Model:'https://raw.githubusercontent.com/agaldemas/incubated/master/SMARTHEALTH/HL7/FHIR-R4/FHIR-R4/uri' String of characters used to identify a name or a resource",
add a point '.' after url end quote "'"

… fix uuid for fhir "id", and fixed date time, and datetime in examples
@agaldemas
Copy link
Contributor Author

Hello @albertoabellagarcia I have done the "." fix in descriptions, and constants for generated date, time and uuid in examples.
try testing ASAP ;O)

@agaldemas
Copy link
Contributor Author

Hello @albertoabellagarcia , my last test with the smd tools to validate reported errors, but we know why: it is the validation of schemas which cause issues, in particular when validating referenced global schema containing all definiton relative to HL7 in the big hl7-schema.json
but if this file is valid, why should we try to validate it during the model validation ?
may be we can discuss about that together !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant