Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
added _isClassification() for code for #32 (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkatzel-ncats authored Mar 1, 2021
1 parent b5f90f5 commit 8ae4185
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/ix/ginas/models/v1/Code.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

import com.fasterxml.jackson.annotation.JsonIgnore;

import com.fasterxml.jackson.annotation.JsonProperty;
import ix.core.models.DynamicFacet;
import ix.core.models.Indexable;
import ix.ginas.models.CommonDataElementOfCollection;
Expand Down Expand Up @@ -96,7 +97,7 @@ public boolean hasSpecialDisplay(){
return false;
}

@JsonIgnore
@JsonProperty("_isClassification")
public boolean isClassification(){
if(this.codeText!=null){
if(this.codeText.contains("|"))return true;
Expand Down

0 comments on commit 8ae4185

Please sign in to comment.