{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "conceptSchema",
    "type": "object",
    "properties": {
        "conceptId": {
            "type": "string"
        },
        "effectiveTime": {
            "type": "string"
        },
        "active": {
            "type": "boolean"
        },
        "moduleId": {
            "type": "string"
        },
        "definitionStatus": {
            "type": "object",
            "properties": {
                "preferredTerm": {
                    "type": "string"
                },
                "conceptId": {
                    "type": "string"
                }
            }
        },
        "fsn": {
            "type": "string"
        },
        "preferredTerm": {
            "type": "string"
        },
        "descriptions": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "descriptionId": {
                        "type": "string"
                    },
                    "effectiveTime": {
                        "type": "string"
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "moduleId": {
                        "type": "string"
                    },
                    "languageCode": {
                        "type": "string"
                    },
                    "type": {
                        "type": "object",
                        "properties": {
                            "preferredTerm": {
                                "type": "string"
                            },
                            "conceptId": {
                                "type": "string"
                            }
                        }
                    },
                    "term": {
                        "type": "string"
                    },
                    "caseSignificance": {
                        "type": "object",
                        "properties": {
                            "preferredTerm": {
                                "type": "string"
                            },
                            "conceptId": {
                                "type": "string"
                            }
                        }
                    },
                    "acceptabilityMap": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "languageReferenceSet": {
                                    "type": "object",
                                    "properties": {
                                        "preferredTerm": {
                                            "type": "string"
                                        },
                                        "conceptId": {
                                            "type": "string"
                                        }
                                    }
                                },
                                "acceptability": {
                                    "type": "object",
                                    "properties": {
                                        "preferredTerm": {
                                            "type": "string"
                                        },
                                        "conceptId": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "required": [
                                "languageReferenceSet",
                                "acceptability"
                            ]
                        }
                    }
                },
                "required": [
                    "descriptionId",
                    "effectiveTime",
                    "active",
                    "moduleId",
                    "languageCode",
                    "type",
                    "term",
                    "caseSignificance",
                    "acceptabilityMap"
                ]
            }
        },
        "relationships": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "relationshipId": {
                        "type": "string"
                    },
                    "effectiveTime": {
                        "type": "string"
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "moduleId": {
                        "type": "string"
                    },
                    "sourceId": {
                        "type": "string"
                    },
                    "destination": {
                        "type": "object",
                        "properties": {
                            "conceptId": {
                                "type": "string"
                            },
                            "preferredTerm": {
                                "type": "string"
                            }
                        }
                    },
                    "relationshipGroup": {
                        "type": "number"
                    },
                    "type": {
                        "type": "object",
                        "properties": {
                            "conceptId": {
                                "type": "string"
                            },
                            "preferredTerm": {
                                "type": "string"
                            }
                        }
                    },
                    "characteristicTypeId": {
                        "type": "string"
                    },
                    "modifierId": {
                        "type": "string"
                    }
                },
                "required": [
                    "relationshipId",
                    "effectiveTime",
                    "active",
                    "moduleId",
                    "sourceId",
                    "destination",
                    "relationshipGroup",
                    "type",
                    "characteristicTypeId",
                    "modifierId"
                ]
            }
        }
    }
}