Stream: cimpl
Topic: Documentation
Mark Kramer (Aug 14 2019 at 18:35):
Hey @here, there is a new addition to the documentation suite, a CIMPL 6 Tooling Reference Guide. It is a comprehensive guide to input files, configurations, the command line interface, exports, and production of the FHIR Implementation Guide (IG). http://standardhealthrecord.org/cimpl-doc/cimpl6ToolingReference/
May Terry (Aug 25 2019 at 21:50):
We've given our CIMPL documentation a nice makeover. Check it out! http://standardhealthrecord.org/cimpl-doc/
Brian Kaney (Aug 26 2019 at 15:22):
@May Terry -- are there any examples I could see of doing slicing with CIMPL?
May Terry (Aug 26 2019 at 20:46):
Hi @Brian Kaney - our CIMPL documentation for slicing can be found here: http://standardhealthrecord.org/cimpl-doc/#cimpl6LanguageReference/#slicing
At its most basic, it consists of 2 steps: 1) define the CIMPL element to be sliced with the cardinality of 0..* or 1..*, and 2) specifying the desired slicing strategy and discriminator.
For an example snippet, here's an example of how we sliced Practitioner
identifiers in our SHR specification...
1) in the file obf-entity.txt
, we intended to slice the Identifier element:
Entry: Practitioner
Parent: Role
// ...etc...
// at least one
// US Core preferences
Identifier 1..*
Identifier
includes NationalProviderIdentifier 0..1
includes TaxIdentificationNumber 0..1
2) in the file obf-entity-map-r4.txt
, for the Identifier
map where we're slicing by code:
Practitioner maps to http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner: Identifier maps to identifier (slice on = type.coding.code; slice strategy = includes)
Last updated: Apr 12 2022 at 19:14 UTC