Describe peppol mapping to DD-json schemas
If we assume an API structure where an entity can be resolved with a GET-request to /api/entity/:UniqueId
the mapping could be as follows:
Peppol | DD-JSON schema | Example |
---|---|---|
cbc:id | https://schemas.infopack.io/ivl/xtdroot.1.schema.json#/properties/UniqueId | 165f8554-00cd-43ad-aeb7-ba769854554a |
cbc:ID@schemeID | https://schemas.infopack.io/ivl/xtdproperty.1.schema.json |
Define:SwedishDataDictionary |
cbc:ID@schemeDataURI | https://example.com/api/entity/165f8554-00cd-43ad-aeb7-ba769854554a | |
cbc:ID@schemeVersionID |
https://schemas.infopack.io/ivl/xtdobject.1.schema.json#/properties/MajorVersion + https://schemas.infopack.io/ivl/xtdobject.1.schema.json#/properties/MinorVersion
|
1.0 |
cbc:Name | https://schemas.infopack.io/ivl/xtdobject.1.schema.json#/properties/Names/0/Texts/0/Text | Strength Class |
cbc:Value | C25/30 | |
cbc:NameCode | 165f8554-00cd-43ad-aeb7-ba769854554a | |
cbc:ValueQuantity@unitCode | MMT |
TBD
-
What is a proper value for cbc:ID@schemeID
. Define:SwedishDataDictionary is propably unneccesary narrow since all data dictionary follows the same pattern
Noteringar
*cbc:NameCode Används i de fall ID inte finns.
cbc:NameCode@listID
Används i de fall ID inte finns
Define:SwedishDataDictionary#1.0
cbc:Value
Värde utan enhet
C25/30
cbc:ValueQuantity
Värde med enhet
16
Cbc:ValueQuantity@unitCode
Enhet
MMT
Edited by Johan Asplund