{

"resourceType": "Bundle",
"id": "types",
"meta": {
  "lastUpdated": "2015-10-24T07:41:03.495+11:00"
},
"type": "collection",
"entry": [
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/markdown",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "markdown",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/markdown",
      "name": "markdown",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "constrainedType": "string",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/string",
      "snapshot": {
        "element": [
          {
            "path": "string",
            "min": 0,
            "max": "*",
            "base": {
              "path": "string",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "string.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "string.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "string.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "string.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "string"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "xs:string"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/integer",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "integer",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/integer",
      "name": "integer",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "integer",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "integer.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "integer.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "integer.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "integer.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
                    "valueString": "-?([0]|([1-9][0-9]*))"
                  }
                ],
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "number"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "int"
                    }
                  ]
                }
              }
            ],
            "minValueInteger": -2147483648,
            "maxValueInteger": 2147483647
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/dateTime",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "dateTime",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/dateTime",
      "name": "dateTime",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "dateTime",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "dateTime.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "dateTime.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "dateTime.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "dateTime.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
                    "valueString": "-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"
                  }
                ],
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "string"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "xs:gYear, xs:gYearMonth, xs:date, xs:dateTime"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/unsignedInt",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "unsignedInt",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/unsignedInt",
      "name": "unsignedInt",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "constrainedType": "integer",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/integer",
      "snapshot": {
        "element": [
          {
            "path": "integer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "integer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "integer.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "integer.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "integer.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "integer.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
                    "valueString": "[0]|([1-9][0-9]*)"
                  }
                ],
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "number"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "xs:nonNegativeInteger"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/code",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "code",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/code",
      "name": "code",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "constrainedType": "string",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/string",
      "snapshot": {
        "element": [
          {
            "path": "string",
            "min": 0,
            "max": "*",
            "base": {
              "path": "string",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "string.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "string.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "string.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "string.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
                    "valueString": "[^\\s]+([\\s][^\\s]+)*"
                  }
                ],
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "string"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "xs:token"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/date",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "date",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/date",
      "name": "date",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "date",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "date.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "date.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "date.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "date.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
                    "valueString": "-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1]))?)?"
                  }
                ],
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "string"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "xs:gYear, xs:gYearMonth, xs:date"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/decimal",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "decimal",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/decimal",
      "name": "decimal",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "decimal",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "decimal.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "decimal.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "decimal.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "decimal.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
                    "valueString": "-?([0]|([1-9][0-9]*))(\\.[0-9]+)?"
                  }
                ],
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "number"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "decimal"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/uri",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "uri",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/uri",
      "name": "uri",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "uri",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "uri.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "uri.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "uri.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "uri.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "string"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "anyURI"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/id",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "id",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/id",
      "name": "id",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "constrainedType": "string",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/string",
      "snapshot": {
        "element": [
          {
            "path": "string",
            "min": 0,
            "max": "*",
            "base": {
              "path": "string",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "string.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "string.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "string.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "string.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
                    "valueString": "[A-Za-z0-9\\-\\.]{1,64}"
                  }
                ],
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "string"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "xs:string+"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/base64Binary",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "base64Binary",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/base64Binary",
      "name": "base64Binary",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "base64Binary",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "base64Binary.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "base64Binary.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "base64Binary.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "base64Binary.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "string"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "base64Binary"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/time",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "time",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/time",
      "name": "time",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "time",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "time.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "time.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "time.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "time.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
                    "valueString": "([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?"
                  }
                ],
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "string"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "time"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/oid",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "oid",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/oid",
      "name": "oid",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "constrainedType": "uri",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/uri",
      "snapshot": {
        "element": [
          {
            "path": "uri",
            "min": 0,
            "max": "*",
            "base": {
              "path": "uri",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "uri.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "uri.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "uri.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "uri.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
                    "valueString": "urn:oid:(0|[1-9][0-9]*)(\\.(0|[1-9][0-9]*))*"
                  }
                ],
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "string"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "xs:anyURI+"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/positiveInt",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "positiveInt",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/positiveInt",
      "name": "positiveInt",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "constrainedType": "integer",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/integer",
      "snapshot": {
        "element": [
          {
            "path": "integer",
            "min": 0,
            "max": "*",
            "base": {
              "path": "integer",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "integer.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "integer.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "integer.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "integer.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
                    "valueString": "[1-9][0-9]*"
                  }
                ],
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "number"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "xs:positiveInteger"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/string",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "string",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/string",
      "name": "string",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "string",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "string.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "string.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "string.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "string.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "string"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "string"
                    }
                  ]
                }
              }
            ],
            "maxLength": 1048576
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/boolean",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "boolean",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/boolean",
      "name": "boolean",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "boolean",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "boolean.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "boolean.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "boolean.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "boolean.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "true | false"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "boolean"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/uuid",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "uuid",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/uuid",
      "name": "uuid",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "constrainedType": "uri",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/uri",
      "snapshot": {
        "element": [
          {
            "path": "uri",
            "min": 0,
            "max": "*",
            "base": {
              "path": "uri",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "uri.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "uri.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "uri.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "uri.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-regex",
                    "valueString": "urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
                  }
                ],
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "string"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "xs:anyURI+"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/instant",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "instant",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/instant",
      "name": "instant",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "instant",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "instant.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "instant.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "instant.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "instant.value",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "_code": {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
                      "valueString": "string"
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
                      "valueString": "dateTime"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Period",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Period",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Period",
      "name": "Period",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "Period",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "constraint": [
              {
                "key": "per-1",
                "severity": "error",
                "human": "If present, start SHALL have a lower value than end",
                "xpath": "not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Period.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Period.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Period.start",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "condition": [
              "per-1"
            ],
            "isSummary": true
          },
          {
            "path": "Period.end",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "condition": [
              "per-1"
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Coding",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Coding",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Coding",
      "name": "Coding",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "Coding",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Coding.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Coding.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Coding.system",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Coding.version",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Coding.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Coding.display",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Coding.userSelected",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Range",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Range",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Range",
      "name": "Range",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "Range",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "constraint": [
              {
                "key": "rng-2",
                "severity": "error",
                "human": "If present, low SHALL have a lower value than high",
                "xpath": "not(exists(f:low/f:value/@value)) or not(exists(f:high/f:value/@value)) or (number(f:low/f:value/@value) <= number(f:high/f:value/@value))"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Range.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Range.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Range.low",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "condition": [
              "rng-2"
            ],
            "isSummary": true
          },
          {
            "path": "Range.high",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "condition": [
              "rng-2"
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Quantity",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Quantity",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Quantity",
      "name": "Quantity",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "Quantity",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "constraint": [
              {
                "key": "qty-3",
                "severity": "error",
                "human": "If a code for the unit is present, the system SHALL also be present",
                "xpath": "not(exists(f:code)) or exists(f:system)"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Quantity.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Quantity.value",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.comparator",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "How the Quantity should be understood and represented.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator"
              }
            }
          },
          {
            "path": "Quantity.unit",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.system",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "qty-3"
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Attachment",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Attachment",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Attachment",
      "name": "Attachment",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "Attachment",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "constraint": [
              {
                "key": "att-1",
                "severity": "error",
                "human": "It the Attachment has data, it SHALL have a contentType",
                "xpath": "not(exists(f:data)) or exists(f:contentType)"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Attachment.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Attachment.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Attachment.contentType",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "exampleCode": "text/plain; charset=UTF-8, image/png",
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSetUri": "http://www.rfc-editor.org/bcp/bcp13.txt"
            }
          },
          {
            "path": "Attachment.language",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "exampleCode": "en-AU",
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "A human language.",
              "valueSetUri": "http://tools.ietf.org/html/bcp47"
            }
          },
          {
            "path": "Attachment.data",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "base64Binary"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Attachment.url",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "exampleUri": "http://www.acme.com/logo-small.png",
            "isSummary": true
          },
          {
            "path": "Attachment.size",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "unsignedInt"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Attachment.hash",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "base64Binary"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Attachment.title",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "exampleString": "Official Corporate Logo",
            "isSummary": true
          },
          {
            "path": "Attachment.creation",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Ratio",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Ratio",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Ratio",
      "name": "Ratio",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "Ratio",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "constraint": [
              {
                "key": "rat-1",
                "severity": "error",
                "human": "Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present",
                "xpath": "(count(f:numerator) = count(f:denominator)) and ((count(f:numerator) > 0) or (count(f:extension) > 0))"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Ratio.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Ratio.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Ratio.numerator",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Ratio.denominator",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Annotation",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Annotation",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Annotation",
      "name": "Annotation",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "Annotation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Annotation.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Annotation.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Annotation.author[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner"
                ]
              },
              {
                "code": "Reference",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              },
              {
                "code": "Reference",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              },
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Annotation.time",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Annotation.text",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/SampledData",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "SampledData",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/SampledData",
      "name": "SampledData",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "SampledData",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "isSummary": true
          },
          {
            "path": "SampledData.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "SampledData.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "SampledData.origin",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "path": "SampledData.period",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "path": "SampledData.factor",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "defaultValueDecimal": 1,
            "isSummary": true
          },
          {
            "path": "SampledData.lowerLimit",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "path": "SampledData.upperLimit",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "path": "SampledData.dimensions",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "isSummary": true
          },
          {
            "path": "SampledData.data",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Reference",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Reference",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Reference",
      "name": "Reference",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "Reference",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "constraint": [
              {
                "key": "ref-1",
                "severity": "error",
                "human": "SHALL have a local reference if the resource is provided inline",
                "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Reference.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Reference.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Reference.reference",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "ref-1"
            ],
            "isSummary": true
          },
          {
            "path": "Reference.display",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/CodeableConcept",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "CodeableConcept",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/CodeableConcept",
      "name": "CodeableConcept",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "CodeableConcept",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "isSummary": true
          },
          {
            "path": "CodeableConcept.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "CodeableConcept.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "CodeableConcept.coding",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true
          },
          {
            "path": "CodeableConcept.text",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Identifier",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Identifier",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Identifier",
      "name": "Identifier",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "Identifier",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Identifier.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Identifier.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Identifier.use",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "Identifies the purpose for this identifier, if known .",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/identifier-use"
              }
            }
          },
          {
            "path": "Identifier.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "extensible",
              "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/identifier-type"
              }
            }
          },
          {
            "path": "Identifier.system",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ],
            "exampleUri": "http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri",
            "isSummary": true
          },
          {
            "path": "Identifier.value",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "exampleString": "123456",
            "isSummary": true
          },
          {
            "path": "Identifier.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Identifier.assigner",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Reference",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Signature",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Signature",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Signature",
      "name": "Signature",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "Signature",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Signature.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Signature.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Signature.type",
            "min": 1,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "preferred",
              "description": "An indication of the reason that an entity signed the object",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/signature-type"
              }
            }
          },
          {
            "path": "Signature.when",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Signature.who[x]",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              },
              {
                "code": "Reference",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/Practitioner"
                ]
              },
              {
                "code": "Reference",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
                ]
              },
              {
                "code": "Reference",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/Patient"
                ]
              },
              {
                "code": "Reference",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              },
              {
                "code": "Reference",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "isSummary": true
          },
          {
            "path": "Signature.contentType",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSetUri": "http://www.rfc-editor.org/bcp/bcp13.txt"
            }
          },
          {
            "path": "Signature.blob",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "base64Binary"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Extension",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Extension",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Extension",
      "name": "Extension",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "Extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "Extension.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Extension.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Extension.url",
            "representation": [
              "xmlAttr"
            ],
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "uri"
              }
            ]
          },
          {
            "path": "Extension.value[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "decimal"
              },
              {
                "code": "base64Binary"
              },
              {
                "code": "instant"
              },
              {
                "code": "string"
              },
              {
                "code": "uri"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "time"
              },
              {
                "code": "code"
              },
              {
                "code": "oid"
              },
              {
                "code": "id"
              },
              {
                "code": "unsignedInt"
              },
              {
                "code": "positiveInt"
              },
              {
                "code": "markdown"
              },
              {
                "code": "Annotation"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Identifier"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Period"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "Signature"
              },
              {
                "code": "HumanName"
              },
              {
                "code": "Address"
              },
              {
                "code": "ContactPoint"
              },
              {
                "code": "Timing"
              },
              {
                "code": "Reference"
              },
              {
                "code": "Meta"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/BackboneElement",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "BackboneElement",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/BackboneElement",
      "name": "BackboneElement",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "BackboneElement",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "BackboneElement.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "BackboneElement.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "BackboneElement.modifierExtension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ],
            "isModifier": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Narrative",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Narrative",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Narrative",
      "name": "Narrative",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "Narrative",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ]
          },
          {
            "path": "Narrative.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Narrative.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Narrative.status",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "binding": {
              "strength": "required",
              "description": "The status of a resource narrative",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/narrative-status"
              }
            }
          },
          {
            "path": "Narrative.div",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "xhtml"
              }
            ],
            "constraint": [
              {
                "key": "txt-2",
                "severity": "error",
                "human": "The narrative SHALL have some non-whitespace content",
                "xpath": "descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]"
              },
              {
                "key": "txt-1",
                "severity": "error",
                "human": "The narrative SHALL contain only the basic html formatting elements described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes",
                "xpath": "not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))])"
              },
              {
                "key": "txt-3",
                "severity": "error",
                "human": "The narrative SHALL contain only the basic html formatting attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes",
                "xpath": "not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Element",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Element",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Element",
      "name": "Element",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": true,
      "snapshot": {
        "element": [
          {
            "path": "Element",
            "min": 0,
            "max": "*",
            "condition": [
              "ele-1"
            ],
            "constraint": [
              {
                "key": "ele-1",
                "severity": "error",
                "human": "All FHIR elements must have a @value or children",
                "xpath": "@value|f:*|h:div"
              }
            ]
          },
          {
            "path": "Element.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Element.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ElementDefinition",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ElementDefinition",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/ElementDefinition",
      "name": "ElementDefinition",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "ElementDefinition",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "constraint": [
              {
                "key": "eld-13",
                "severity": "error",
                "human": "Types must be unique by the combination of code and profile",
                "xpath": "not(exists(for $type in f:type return $type/preceding-sibling::f:type[f:code/@value=$type/f:code/@value and f:profile/@value = $type/f:profile/@value]))"
              },
              {
                "key": "eld-14",
                "severity": "error",
                "human": "Constraints must be unique by key",
                "xpath": "count(f:constraint) = count(distinct-values(f:constraint/f:key/@value))"
              },
              {
                "key": "eld-11",
                "severity": "error",
                "human": "Binding can only be present for coded elements, string, and uri",
                "xpath": "not(exists(f:binding)) or (count(f:type/f:code) = 0) or  f:type/f:code/@value=('code','Coding','CodeableConcept','Quantity','Extension', 'string', 'uri')"
              },
              {
                "key": "eld-8",
                "severity": "error",
                "human": "Pattern and value are mutually exclusive",
                "xpath": "not(exists(f:*[starts-with(local-name(.), 'pattern')])) or not(exists(f:*[starts-with(local-name(.), 'value')]))"
              },
              {
                "key": "eld-15",
                "severity": "error",
                "human": "default value and meaningWhenMissing are mutually exclusive",
                "xpath": "not(exists(f:*[starts-with(local-name(.), 'fixed')])) or not(exists(f:meaningWhenMissing))"
              },
              {
                "key": "eld-2",
                "severity": "error",
                "human": "Min <= Max",
                "xpath": "not(exists(f:min)) or not(exists(f:max)) or (not(f:max/@value) and not(f:min/@value)) or (f:max/@value = '*') or (number(f:max/@value) >= f:min/@value)"
              },
              {
                "key": "eld-7",
                "severity": "error",
                "human": "Pattern may only be specified if there is one type",
                "xpath": "not(exists(f:*[starts-with(local-name(.), 'pattern')])) or (count(f:type)=1)"
              },
              {
                "key": "eld-6",
                "severity": "error",
                "human": "Fixed value may only be specified if there is one type",
                "xpath": "not(exists(f:*[starts-with(local-name(.), 'fixed')])) or (count(f:type)=1)"
              },
              {
                "key": "eld-5",
                "severity": "error",
                "human": "Either a namereference or a fixed value (but not both) is permitted",
                "xpath": "not(exists(f:nameReference) and exists(f:*[starts-with(local-name(.), 'value')]))"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "ElementDefinition.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "ElementDefinition.path",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.representation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "How a property is represented on the wire.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/property-representation"
              }
            }
          },
          {
            "path": "ElementDefinition.name",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.label",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.code",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "example",
              "description": "Codes that indicate the meaning of a data element.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/observation-codes"
              }
            }
          },
          {
            "path": "ElementDefinition.slicing",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Element"
              }
            ],
            "constraint": [
              {
                "key": "eld-1",
                "severity": "error",
                "human": "If there are no discriminators, there must be a definition",
                "xpath": "(f:discriminator) or (f:description)"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.slicing.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "ElementDefinition.slicing.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "ElementDefinition.slicing.discriminator",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.slicing.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "eld-1"
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.slicing.ordered",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "defaultValueBoolean": false,
            "isSummary": true
          },
          {
            "path": "ElementDefinition.slicing.rules",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "How slices are interpreted when evaluating an instance.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/resource-slicing-rules"
              }
            }
          },
          {
            "path": "ElementDefinition.short",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.definition",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.comments",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.requirements",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.alias",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.min",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "condition": [
              "eld-2"
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.max",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "eld-3",
              "eld-2"
            ],
            "constraint": [
              {
                "key": "eld-3",
                "severity": "error",
                "human": "Max SHALL be a number or \"*\"",
                "xpath": "@value='*' or (normalize-space(@value)!='' and normalize-space(translate(@value, '0123456789',''))='')"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.base",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Element"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.base.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "ElementDefinition.base.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "ElementDefinition.base.path",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.base.min",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.base.max",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
                "valueString": "TypeRef"
              }
            ],
            "path": "ElementDefinition.type",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "condition": [
              "eld-13"
            ],
            "constraint": [
              {
                "key": "eld-4",
                "severity": "error",
                "human": "Aggregation may only be specified if one of the allowed types for the element is a resource",
                "xpath": "not(exists(f:aggregation)) or exists(f:code[@value = 'Reference'])"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.type.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "ElementDefinition.type.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "ElementDefinition.type.code",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "Either a resource or a data type.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/defined-types"
              }
            }
          },
          {
            "path": "ElementDefinition.type.profile",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.type.aggregation",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "eld-4"
            ],
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "How resource references can be aggregated.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/resource-aggregation-mode"
              }
            }
          },
          {
            "path": "ElementDefinition.nameReference",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "eld-5"
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.defaultValue[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "decimal"
              },
              {
                "code": "base64Binary"
              },
              {
                "code": "instant"
              },
              {
                "code": "string"
              },
              {
                "code": "uri"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "time"
              },
              {
                "code": "code"
              },
              {
                "code": "oid"
              },
              {
                "code": "id"
              },
              {
                "code": "unsignedInt"
              },
              {
                "code": "positiveInt"
              },
              {
                "code": "markdown"
              },
              {
                "code": "Annotation"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Identifier"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Period"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "Signature"
              },
              {
                "code": "HumanName"
              },
              {
                "code": "Address"
              },
              {
                "code": "ContactPoint"
              },
              {
                "code": "Timing"
              },
              {
                "code": "Reference"
              },
              {
                "code": "Meta"
              }
            ],
            "condition": [
              "eld-15"
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.meaningWhenMissing",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "markdown"
              }
            ],
            "condition": [
              "eld-15"
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.fixed[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "decimal"
              },
              {
                "code": "base64Binary"
              },
              {
                "code": "instant"
              },
              {
                "code": "string"
              },
              {
                "code": "uri"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "time"
              },
              {
                "code": "code"
              },
              {
                "code": "oid"
              },
              {
                "code": "id"
              },
              {
                "code": "unsignedInt"
              },
              {
                "code": "positiveInt"
              },
              {
                "code": "markdown"
              },
              {
                "code": "Annotation"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Identifier"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Period"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "Signature"
              },
              {
                "code": "HumanName"
              },
              {
                "code": "Address"
              },
              {
                "code": "ContactPoint"
              },
              {
                "code": "Timing"
              },
              {
                "code": "Reference"
              },
              {
                "code": "Meta"
              }
            ],
            "condition": [
              "eld-5",
              "eld-6",
              "eld-8"
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.pattern[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "decimal"
              },
              {
                "code": "base64Binary"
              },
              {
                "code": "instant"
              },
              {
                "code": "string"
              },
              {
                "code": "uri"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "time"
              },
              {
                "code": "code"
              },
              {
                "code": "oid"
              },
              {
                "code": "id"
              },
              {
                "code": "unsignedInt"
              },
              {
                "code": "positiveInt"
              },
              {
                "code": "markdown"
              },
              {
                "code": "Annotation"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Identifier"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Period"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "Signature"
              },
              {
                "code": "HumanName"
              },
              {
                "code": "Address"
              },
              {
                "code": "ContactPoint"
              },
              {
                "code": "Timing"
              },
              {
                "code": "Reference"
              },
              {
                "code": "Meta"
              }
            ],
            "condition": [
              "eld-5",
              "eld-7",
              "eld-8"
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.example[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "decimal"
              },
              {
                "code": "base64Binary"
              },
              {
                "code": "instant"
              },
              {
                "code": "string"
              },
              {
                "code": "uri"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "time"
              },
              {
                "code": "code"
              },
              {
                "code": "oid"
              },
              {
                "code": "id"
              },
              {
                "code": "unsignedInt"
              },
              {
                "code": "positiveInt"
              },
              {
                "code": "markdown"
              },
              {
                "code": "Annotation"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Identifier"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Period"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "Signature"
              },
              {
                "code": "HumanName"
              },
              {
                "code": "Address"
              },
              {
                "code": "ContactPoint"
              },
              {
                "code": "Timing"
              },
              {
                "code": "Reference"
              },
              {
                "code": "Meta"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.minValue[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "decimal"
              },
              {
                "code": "base64Binary"
              },
              {
                "code": "instant"
              },
              {
                "code": "string"
              },
              {
                "code": "uri"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "time"
              },
              {
                "code": "code"
              },
              {
                "code": "oid"
              },
              {
                "code": "id"
              },
              {
                "code": "unsignedInt"
              },
              {
                "code": "positiveInt"
              },
              {
                "code": "markdown"
              },
              {
                "code": "Annotation"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Identifier"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Period"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "Signature"
              },
              {
                "code": "HumanName"
              },
              {
                "code": "Address"
              },
              {
                "code": "ContactPoint"
              },
              {
                "code": "Timing"
              },
              {
                "code": "Reference"
              },
              {
                "code": "Meta"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.maxValue[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              },
              {
                "code": "integer"
              },
              {
                "code": "decimal"
              },
              {
                "code": "base64Binary"
              },
              {
                "code": "instant"
              },
              {
                "code": "string"
              },
              {
                "code": "uri"
              },
              {
                "code": "date"
              },
              {
                "code": "dateTime"
              },
              {
                "code": "time"
              },
              {
                "code": "code"
              },
              {
                "code": "oid"
              },
              {
                "code": "id"
              },
              {
                "code": "unsignedInt"
              },
              {
                "code": "positiveInt"
              },
              {
                "code": "markdown"
              },
              {
                "code": "Annotation"
              },
              {
                "code": "Attachment"
              },
              {
                "code": "Identifier"
              },
              {
                "code": "CodeableConcept"
              },
              {
                "code": "Coding"
              },
              {
                "code": "Quantity"
              },
              {
                "code": "Range"
              },
              {
                "code": "Period"
              },
              {
                "code": "Ratio"
              },
              {
                "code": "SampledData"
              },
              {
                "code": "Signature"
              },
              {
                "code": "HumanName"
              },
              {
                "code": "Address"
              },
              {
                "code": "ContactPoint"
              },
              {
                "code": "Timing"
              },
              {
                "code": "Reference"
              },
              {
                "code": "Meta"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.maxLength",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.condition",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.constraint",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.constraint.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "ElementDefinition.constraint.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "ElementDefinition.constraint.key",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "condition": [
              "eld-14"
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.constraint.requirements",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.constraint.severity",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "SHALL applications comply with this constraint?",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/constraint-severity"
              }
            }
          },
          {
            "path": "ElementDefinition.constraint.human",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.constraint.xpath",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.mustSupport",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "defaultValueBoolean": false,
            "isSummary": true
          },
          {
            "path": "ElementDefinition.isModifier",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "defaultValueBoolean": false,
            "isSummary": true
          },
          {
            "path": "ElementDefinition.isSummary",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "boolean"
              }
            ],
            "defaultValueBoolean": false,
            "isSummary": true
          },
          {
            "path": "ElementDefinition.binding",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Element"
              }
            ],
            "condition": [
              "eld-11"
            ],
            "constraint": [
              {
                "key": "eld-10",
                "severity": "error",
                "human": "provide either a reference or a description (or both)",
                "xpath": "(exists(f:valueSetUri) or exists(f:valueSetReference)) or exists(f:description)"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.binding.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "ElementDefinition.binding.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "ElementDefinition.binding.strength",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "Indication of the degree of conformance expectations associated with a binding.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/binding-strength"
              }
            }
          },
          {
            "path": "ElementDefinition.binding.description",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "condition": [
              "eld-10"
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.binding.valueSet[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "uri"
              },
              {
                "code": "Reference",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/ValueSet"
                ]
              }
            ],
            "condition": [
              "eld-10",
              "eld-12"
            ],
            "constraint": [
              {
                "key": "eld-12",
                "severity": "error",
                "human": "URI SHALL start with http:// or https://",
                "xpath": "starts-with(string(@value), 'http:') or starts-with(string(@value), 'https:')"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.mapping",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.mapping.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "ElementDefinition.mapping.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "ElementDefinition.mapping.identity",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ElementDefinition.mapping.language",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "The mime type of an attachment. Any valid mime type is allowed.",
              "valueSetUri": "http://www.rfc-editor.org/bcp/bcp13.txt"
            }
          },
          {
            "path": "ElementDefinition.mapping.map",
            "min": 1,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Timing",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Timing",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Timing",
      "name": "Timing",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "Timing",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Timing.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Timing.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Timing.event",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "dateTime"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Timing.repeat",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Element"
              }
            ],
            "constraint": [
              {
                "key": "tim-3",
                "severity": "error",
                "human": "Either frequency or when can exist, not both",
                "xpath": "not((f:period or f:frequency) and f:when)"
              },
              {
                "key": "tim-1",
                "severity": "error",
                "human": "if there's a duration, there needs to be duration units",
                "xpath": "not(exists(f:duration)) or exists(f:durationUnits)"
              },
              {
                "key": "tim-2",
                "severity": "error",
                "human": "if there's a period, there needs to be period units",
                "xpath": "not(exists(f:period)) or exists(f:periodUnits)"
              },
              {
                "key": "tim-6",
                "severity": "error",
                "human": "If there's a periodMax, there must be a period",
                "xpath": "not(exists(f:periodMax)) or exists(f:period)"
              },
              {
                "key": "tim-7",
                "severity": "error",
                "human": "If there's a durationMax, there must be a duration",
                "xpath": "not(exists(f:durationMax)) or exists(f:duration)"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Timing.repeat.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Timing.repeat.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Timing.repeat.bounds[x]",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Quantity",
                "profile": [
                  "http://hl7.org/fhir/StructureDefinition/Duration"
                ]
              },
              {
                "code": "Range"
              },
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Timing.repeat.count",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Timing.repeat.duration",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "tim-4",
                "severity": "error",
                "human": "duration SHALL be a non-negative value",
                "xpath": "@value >= 0 or not(@value)"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Timing.repeat.durationMax",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Timing.repeat.durationUnits",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "A unit of time (units from UCUM).",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/units-of-time"
              }
            }
          },
          {
            "path": "Timing.repeat.frequency",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "defaultValueInteger": 1,
            "isSummary": true
          },
          {
            "path": "Timing.repeat.frequencyMax",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "integer"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Timing.repeat.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "constraint": [
              {
                "key": "tim-5",
                "severity": "error",
                "human": "period SHALL be a non-negative value",
                "xpath": "@value >= 0 or not(@value)"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Timing.repeat.periodMax",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Timing.repeat.periodUnits",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "A unit of time (units from UCUM).",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/units-of-time"
              }
            }
          },
          {
            "path": "Timing.repeat.when",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "Real world event that the relating to the schedule.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/event-timing"
              }
            }
          },
          {
            "path": "Timing.code",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "CodeableConcept"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "preferred",
              "description": "Code for a known / defined timing pattern.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/timing-abbreviation"
              }
            }
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Address",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Address",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Address",
      "name": "Address",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "Address",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Address.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Address.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Address.use",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "exampleCode": "home",
            "isModifier": true,
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "The use of an address",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/address-use"
              }
            }
          },
          {
            "path": "Address.type",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "exampleCode": "both",
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "The type of an address (physical / postal)",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/address-type"
              }
            }
          },
          {
            "path": "Address.text",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "exampleString": "137 Nowhere Street, Erewhon 9132",
            "isSummary": true
          },
          {
            "path": "Address.line",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "exampleString": "137 Nowhere Street",
            "isSummary": true
          },
          {
            "path": "Address.city",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "exampleString": "Erewhon",
            "isSummary": true
          },
          {
            "path": "Address.district",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "exampleString": "Madison",
            "isSummary": true
          },
          {
            "path": "Address.state",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Address.postalCode",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "exampleString": "9132",
            "isSummary": true
          },
          {
            "path": "Address.country",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Address.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "examplePeriod": {
              "start": "2010-03-23",
              "end": "2010-07-01"
            },
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/HumanName",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "HumanName",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/HumanName",
      "name": "HumanName",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "HumanName",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "isSummary": true
          },
          {
            "path": "HumanName.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "HumanName.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "HumanName.use",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "The use of a human name",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/name-use"
              }
            }
          },
          {
            "path": "HumanName.text",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "HumanName.family",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "HumanName.given",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "HumanName.prefix",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "HumanName.suffix",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "HumanName.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Meta",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Meta",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Meta",
      "name": "Meta",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "Meta",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Meta.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Meta.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Meta.versionId",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Meta.lastUpdated",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "instant"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Meta.profile",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "uri"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Meta.security",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "extensible",
              "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/security-labels"
              }
            }
          },
          {
            "path": "Meta.tag",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Coding"
              }
            ],
            "isSummary": true,
            "binding": {
              "strength": "example",
              "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\""
            }
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/ContactPoint",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "ContactPoint",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/ContactPoint",
      "name": "ContactPoint",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Element",
      "snapshot": {
        "element": [
          {
            "path": "ContactPoint",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Element"
              }
            ],
            "constraint": [
              {
                "key": "cpt-2",
                "severity": "error",
                "human": "A system is required if a value is provided.",
                "xpath": "not(exists(f:value)) or exists(f:system)"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ContactPoint.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "ContactPoint.extension",
            "min": 0,
            "max": "*",
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "ContactPoint.system",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "condition": [
              "cpt-2"
            ],
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "Telecommunications form for contact point",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/contact-point-system"
              }
            }
          },
          {
            "path": "ContactPoint.value",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ContactPoint.use",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "Use of contact point",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/contact-point-use"
              }
            }
          },
          {
            "path": "ContactPoint.rank",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "positiveInt"
              }
            ],
            "isSummary": true
          },
          {
            "path": "ContactPoint.period",
            "min": 0,
            "max": "1",
            "type": [
              {
                "code": "Period"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Age",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Age",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Age",
      "name": "Age",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "constrainedType": "Quantity",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Quantity",
      "snapshot": {
        "element": [
          {
            "path": "Quantity",
            "name": "Age",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Quantity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "qty-3",
                "severity": "error",
                "human": "If a code for the unit is present, the system SHALL also be present",
                "xpath": "not(exists(f:code)) or exists(f:system)"
              },
              {
                "key": "age-1",
                "severity": "error",
                "human": "There SHALL be a code if there is a value and it SHALL be an expression of time.  If system is present, it SHALL be UCUM.  If value is present, it SHALL be positive.",
                "xpath": "(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='http://unitsofmeasure.org') and not(contains(f:value/@value, '-'))"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Quantity.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Quantity.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Quantity.value",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.comparator",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.comparator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "How the Quantity should be understood and represented.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator"
              }
            }
          },
          {
            "path": "Quantity.unit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.unit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.system",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.system",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "qty-3"
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Count",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Count",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Count",
      "name": "Count",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "constrainedType": "Quantity",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Quantity",
      "snapshot": {
        "element": [
          {
            "path": "Quantity",
            "name": "Count",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Quantity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "qty-3",
                "severity": "error",
                "human": "If a code for the unit is present, the system SHALL also be present",
                "xpath": "not(exists(f:code)) or exists(f:system)"
              },
              {
                "key": "cnt-1",
                "severity": "error",
                "human": "There SHALL be a code with a value of \"1\" if there is a value and it SHALL be an expression of length.  If system is present, it SHALL be UCUM.  If present, the value SHALL a whole number.",
                "xpath": "(f:code or not(f:value)) and (not(exists(f:system)) or (f:system/@value='http://unitsofmeasure.org' and f:code/@value='1')) and not(contains(f:value/@value, '.'))"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Quantity.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Quantity.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Quantity.value",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.comparator",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.comparator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "How the Quantity should be understood and represented.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator"
              }
            }
          },
          {
            "path": "Quantity.unit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.unit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.system",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.system",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "qty-3"
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Money",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Money",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Money",
      "name": "Money",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "constrainedType": "Quantity",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Quantity",
      "snapshot": {
        "element": [
          {
            "path": "Quantity",
            "name": "Money",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Quantity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "qty-3",
                "severity": "error",
                "human": "If a code for the unit is present, the system SHALL also be present",
                "xpath": "not(exists(f:code)) or exists(f:system)"
              },
              {
                "key": "mny-1",
                "severity": "error",
                "human": "There SHALL be a code if there is a value and it SHALL be an expression of currency.  If system is present, it SHALL be ISO 4217 (system = \"urn:iso:std:iso:4217\" - currency).",
                "xpath": "(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='urn:iso:std:iso:4217')"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Quantity.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Quantity.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Quantity.value",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.comparator",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.comparator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "How the Quantity should be understood and represented.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator"
              }
            }
          },
          {
            "path": "Quantity.unit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.unit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.system",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.system",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "qty-3"
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Distance",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Distance",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Distance",
      "name": "Distance",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "constrainedType": "Quantity",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Quantity",
      "snapshot": {
        "element": [
          {
            "path": "Quantity",
            "name": "Distance",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Quantity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "qty-3",
                "severity": "error",
                "human": "If a code for the unit is present, the system SHALL also be present",
                "xpath": "not(exists(f:code)) or exists(f:system)"
              },
              {
                "key": "dis-1",
                "severity": "error",
                "human": "There SHALL be a code if there is a value and it SHALL be an expression of length.  If system is present, it SHALL be UCUM.",
                "xpath": "(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='http://unitsofmeasure.org')"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Quantity.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Quantity.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Quantity.value",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.comparator",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.comparator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "How the Quantity should be understood and represented.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator"
              }
            }
          },
          {
            "path": "Quantity.unit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.unit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.system",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.system",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "qty-3"
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/Duration",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "Duration",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/Duration",
      "name": "Duration",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "constrainedType": "Quantity",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Quantity",
      "snapshot": {
        "element": [
          {
            "path": "Quantity",
            "name": "Duration",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Quantity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "qty-3",
                "severity": "error",
                "human": "If a code for the unit is present, the system SHALL also be present",
                "xpath": "not(exists(f:code)) or exists(f:system)"
              },
              {
                "key": "drt-1",
                "severity": "error",
                "human": "There SHALL be a code if there is a value and it SHALL be an expression of time.  If system is present, it SHALL be UCUM.",
                "xpath": "(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='http://unitsofmeasure.org')"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Quantity.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Quantity.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Quantity.value",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.comparator",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.comparator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "How the Quantity should be understood and represented.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator"
              }
            }
          },
          {
            "path": "Quantity.unit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.unit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.system",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.system",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "qty-3"
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  },
  {
    "fullUrl": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity",
    "resource": {
      "resourceType": "StructureDefinition",
      "id": "SimpleQuantity",
      "meta": {
        "lastUpdated": "2015-10-24T07:41:03.495+11:00"
      },
      "url": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity",
      "name": "SimpleQuantity",
      "status": "draft",
      "date": "2015-10-24T07:41:03+11:00",
      "fhirVersion": "1.0.2",
      "kind": "datatype",
      "constrainedType": "Quantity",
      "abstract": false,
      "base": "http://hl7.org/fhir/StructureDefinition/Quantity",
      "snapshot": {
        "element": [
          {
            "path": "Quantity",
            "name": "SimpleQuantity",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Quantity",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Quantity"
              }
            ],
            "constraint": [
              {
                "key": "qty-3",
                "severity": "error",
                "human": "If a code for the unit is present, the system SHALL also be present",
                "xpath": "not(exists(f:code)) or exists(f:system)"
              },
              {
                "key": "sqty-1",
                "severity": "error",
                "human": "The comparator is not used on a SimpleQuantity",
                "xpath": "not(exists(f:comparator))"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.id",
            "representation": [
              "xmlAttr"
            ],
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.id",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "id"
              }
            ]
          },
          {
            "path": "Quantity.extension",
            "min": 0,
            "max": "*",
            "base": {
              "path": "Quantity.extension",
              "min": 0,
              "max": "*"
            },
            "type": [
              {
                "code": "Extension"
              }
            ]
          },
          {
            "path": "Quantity.value",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.value",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "decimal"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.comparator",
            "min": 0,
            "max": "0",
            "base": {
              "path": "Quantity.comparator",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "isModifier": true,
            "isSummary": true,
            "binding": {
              "strength": "required",
              "description": "How the Quantity should be understood and represented.",
              "valueSetReference": {
                "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator"
              }
            }
          },
          {
            "path": "Quantity.unit",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.unit",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "string"
              }
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.system",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.system",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "uri"
              }
            ],
            "condition": [
              "qty-3"
            ],
            "isSummary": true
          },
          {
            "path": "Quantity.code",
            "min": 0,
            "max": "1",
            "base": {
              "path": "Quantity.code",
              "min": 0,
              "max": "1"
            },
            "type": [
              {
                "code": "code"
              }
            ],
            "isSummary": true
          }
        ]
      }
    }
  }
]

}