{
  "resourceType": "StructureDefinition",
  "id": "Ro-Substance",
  "meta": {
    "lastUpdated": "2017-11-22T22:08:13.294+00:00"
  },
  "url": "https://simplifier.net/SAM-TST/Ro-Substance",
  "name": "Ro-Substance",
  "status": "draft",
  "date": "2017-11-17T11:35:36.043+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Substance",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Substance",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Substance.category.coding.system",
        "path": "Substance.category.coding.system",
        "fixedUri": "http://hl7.org/fhir/ValueSet/substance-category"
      },
      {
        "id": "Substance.category.coding.code",
        "path": "Substance.category.coding.code",
        "fixedCode": "chemical"
      },
      {
        "id": "Substance.code",
        "path": "Substance.code",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SubstanceCode"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "https://ontology-services.ro.com/ROX1468229739571"
          }
        }
      },
      {
        "id": "Substance.instance",
        "path": "Substance.instance",
        "max": "0"
      },
      {
        "id": "Substance.ingredient.substance[x]",
        "path": "Substance.ingredient.substance[x]",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": "https://simplifier.net/SAM-TST/Ro-Substance"
          }
        ]
      }
    ]
  }
}